1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-26 04:15:21 +01:00
Files
u-boot-megous/drivers
Bin Meng 4b06000395 dm: spi: Change cs_info op to return -EINVAL for invalid cs num
We need distinguish the following two situations in various SPI APIs:

- given chip select num is invalid
- given chip select num is valid, but no device is attached

Currently -ENODEV is returned for both cases.

For the first case, it's more reasonable to return -EINVAL instead of
-ENODEV for invalid chip select numbers.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # SoPine
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2019-10-25 00:48:31 +05:30
..
2019-05-21 08:03:38 +02:00
2019-10-18 14:26:59 +02:00
2019-08-11 16:43:41 -04:00
2019-05-18 08:15:35 -04:00
2019-08-11 16:43:41 -04:00
2019-10-14 09:31:41 +02:00
2019-08-11 16:43:41 -04:00
2019-10-25 00:48:31 +05:30
2019-08-07 15:31:04 -04:00
2019-07-19 20:14:50 +02:00
2019-09-19 12:18:53 -04:00
2018-07-19 16:31:38 -04:00
2019-05-24 10:14:10 -07:00
2019-08-11 16:43:41 -04:00
2019-07-19 15:17:05 +02:00