diff options
author | Sergey Shtylyov <s.shtylyov@omprussia.ru> | 2021-03-25 23:51:10 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-26 17:13:02 -0600 |
commit | e379b40cc0f179403ce0b82b7e539f635a568da5 (patch) | |
tree | 5b780f6b64c6d4044e1e929a67911dc2202725b8 /drivers/ata/pata_pdc202xx_old.c | |
parent | c7e8f404d56b99c80990b19a402c3f640d74be05 (diff) | |
download | lwn-e379b40cc0f179403ce0b82b7e539f635a568da5.tar.gz lwn-e379b40cc0f179403ce0b82b7e539f635a568da5.zip |
pata_ipx4xx_cf: fix IRQ check
The driver's probe() method is written as if platform_get_irq() returns 0
on error, while actually it returns a negative error code (with all the
other values considered valid IRQs). Rewrite the driver's IRQ checking
code to pass the positive IRQ #s to ata_host_activate(), propagate errors
upstream, and treat IRQ0 as error, returning -EINVAL, as the libata code
treats 0 as an indication that polling should be used anyway...
Fixes: 0df0d0a0ea9f ("[libata] ARM: add ixp4xx PATA driver")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata/pata_pdc202xx_old.c')
0 files changed, 0 insertions, 0 deletions