diff options
author | Tom Rini <trini@konsulko.com> | 2021-02-26 12:41:19 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-26 12:41:19 -0500 |
commit | b839fc9d47bbfc4ab4f0817a03e0e0e25b93e925 (patch) | |
tree | f55e07d4642e0fa931842268c5b000cbb7bcd7e8 /drivers/spi/nxp_fspi.c | |
parent | a3c6d287bae38c6b342d6c0940df1f45b5c766a6 (diff) | |
parent | 783a15b35131abc599ec6deca55cf841d2e7c208 (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi
- new GigaDevice flash ids
- fixes for imx, nxp_spi drivers
Diffstat (limited to 'drivers/spi/nxp_fspi.c')
-rw-r--r-- | drivers/spi/nxp_fspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index 012f3045958..6c5bad4c2ca 100644 --- a/drivers/spi/nxp_fspi.c +++ b/drivers/spi/nxp_fspi.c @@ -823,7 +823,7 @@ static int nxp_fspi_default_setup(struct nxp_fspi *f) /* the default frequency, we will change it later if necessary. */ ret = clk_set_rate(&f->clk, 20000000); - if (ret) + if (ret < 0) return ret; ret = nxp_fspi_clk_prep_enable(f); @@ -914,7 +914,7 @@ static int nxp_fspi_set_speed(struct udevice *bus, uint speed) nxp_fspi_clk_disable_unprep(f); ret = clk_set_rate(&f->clk, speed); - if (ret) + if (ret < 0) return ret; ret = nxp_fspi_clk_prep_enable(f); |