Files
linux/drivers
Sergey Shtylyov e82c6e0cad pata_ipx4xx_cf: fix IRQ check
[ Upstream commit e379b40cc0 ]

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: 0df0d0a0ea ("[libata] ARM: add ixp4xx PATA driver")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:59:33 +02:00
..
2021-05-22 10:59:33 +02:00
2021-05-22 10:59:32 +02:00
2020-09-09 19:04:23 +02:00
2021-04-28 13:16:48 +02:00
2021-04-10 13:21:18 +02:00
2021-01-17 14:04:22 +01:00
2020-12-30 11:26:04 +01:00
2021-03-04 09:39:44 +01:00
2021-05-22 10:59:18 +02:00
2021-04-07 12:48:48 +02:00
2021-04-16 11:49:31 +02:00