Adam Ford
90d76f812b
spi: nxp_fspi: Fix error reporting
...
On the i.MX8M Mini, ret = clk_set_rate() sets ret to the value of the
rate the clock was able to set. When checking for errors, it only
checks that it is not NULL. Since positive numbers are not errors,
only check for negative numbers when handling errors.
Fixes: 383fded70c4f ("spi: nxp_fspi: new driver for the FlexSPI controller")
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2021-02-26 15:09:38 +05:30
..
2020-12-18 20:32:21 -07:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-06-11 15:14:04 +05:30
2020-12-13 08:00:25 -07:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-01-05 12:24:40 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 22:34:43 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-15 10:16:45 -05:00
2021-01-05 12:24:41 -07:00
2021-01-05 12:24:41 -07:00
2021-01-29 10:35:14 -05:00
2020-12-13 16:51:09 -07:00
2021-01-29 10:35:14 -05:00
2020-12-13 08:00:25 -07:00
2020-05-18 21:19:23 -04:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-01-24 21:39:26 +01:00
2020-12-13 08:00:25 -07:00
2020-12-13 08:00:25 -07:00
2021-01-29 10:35:14 -05:00
2021-02-02 15:33:42 -05:00
2021-02-26 13:25:21 +05:30
2021-01-05 12:26:35 -07:00
2021-02-26 15:09:38 +05:30
2020-12-18 20:32:21 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 12:26:35 -07:00
2018-05-07 09:34:12 -04:00
2020-12-22 20:39:26 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:18 -04:00
2020-08-03 22:19:54 -04:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2018-05-07 09:34:12 -04:00
2021-01-13 09:52:58 +01:00
2021-01-13 09:52:58 +01:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 12:24:40 -07:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-12-18 20:32:21 -07:00
2021-02-23 10:45:55 -05:00
2021-02-23 10:45:55 -05:00
2021-02-23 10:45:55 -05:00