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:30 +02:00
2021-03-04 09:39:46 +01:00
2020-10-29 09:54:56 +01:00
2021-05-22 10:59:33 +02:00
2021-03-30 14:36:58 +02:00
2021-03-04 09:39:45 +01:00
2021-05-22 10:59:28 +02:00
2021-03-30 14:37:03 +02:00
2021-03-07 12:18:57 +01:00
2021-05-22 10:59:29 +02:00
2021-05-22 10:59:32 +02:00
2021-05-22 10:59:31 +02:00
2021-03-04 09:39:44 +01:00
2021-05-22 10:59:31 +02:00
2020-09-09 19:04:23 +02:00
2021-05-22 10:59:30 +02:00
2020-10-01 13:14:26 +02:00
2021-04-28 13:16:48 +02:00
2020-10-01 13:14:24 +02:00
2020-12-30 11:26:10 +01:00
2021-05-22 10:59:16 +02:00
2021-04-07 12:48:50 +02:00
2021-05-22 10:59:32 +02:00
2020-07-29 10:16:48 +02:00
2020-06-22 09:05:28 +02:00
2021-04-28 13:16:48 +02:00
2021-05-22 10:59:33 +02:00
2021-04-28 13:16:52 +02:00
2020-12-30 11:25:57 +01:00
2021-05-22 10:59:32 +02:00
2021-03-17 16:43:51 +01:00
2021-05-22 10:59:20 +02:00
2021-04-14 08:22:34 +02:00
2021-03-11 14:04:59 +01:00
2021-05-22 10:59:24 +02:00
2021-04-14 08:22:36 +02:00
2021-04-28 13:16:50 +02:00
2021-03-11 14:05:01 +01:00
2020-05-27 17:37:43 +02:00
2021-05-22 10:59:30 +02:00
2021-04-10 13:21:18 +02:00
2021-02-03 23:23:25 +01:00
2021-01-17 14:04:22 +01:00
2020-06-22 09:05:29 +02:00
2020-10-30 10:38:21 +01:00
2021-05-22 10:59:25 +02:00
2021-05-22 10:59:33 +02:00
2021-05-22 10:59:27 +02:00
2021-03-11 14:04:59 +01:00
2020-11-05 11:08:47 +01:00
2021-03-04 09:39:46 +01:00
2021-05-22 10:59:32 +02:00
2021-05-22 10:59:13 +02:00
2021-05-22 10:59:30 +02:00
2021-05-22 10:59:25 +02:00
2020-12-30 11:26:04 +01:00
2020-10-30 10:38:25 +01:00
2021-03-11 14:04:59 +01:00
2021-03-24 11:07:34 +01:00
2020-06-10 21:35:00 +02:00
2021-03-04 09:39:43 +01:00
2020-08-19 08:15:07 +02:00
2021-05-22 10:59:15 +02:00
2021-05-22 10:59:15 +02:00
2021-05-22 10:59:29 +02:00
2021-04-28 13:16:52 +02:00
2021-05-22 10:59:32 +02:00
2021-05-22 10:59:17 +02:00
2020-11-10 21:11:27 +01:00
2020-12-30 11:26:04 +01:00
2021-03-04 09:39:48 +01:00
2020-10-30 10:38:21 +01:00
2021-04-14 08:22:34 +02:00
2021-02-13 13:51:14 +01:00
2020-11-05 11:08:43 +01:00
2021-03-04 09:39:44 +01:00
2021-03-17 16:43:47 +01:00
2021-05-22 10:59:18 +02:00
2020-12-30 11:25:57 +01:00
2021-05-22 10:59:30 +02:00
2021-05-22 10:59:30 +02:00
2021-05-22 10:59:30 +02:00
2021-05-22 10:59:32 +02:00
2021-05-22 10:59:16 +02:00
2021-05-22 10:59:15 +02:00
2021-04-07 12:48:48 +02:00
2020-11-18 19:18:49 +01:00
2021-05-22 10:59:31 +02:00
2020-11-18 19:18:49 +01:00
2021-05-22 10:59:32 +02:00
2021-01-06 14:44:59 +01:00
2021-04-07 12:48:48 +02:00
2021-05-22 10:59:14 +02:00
2020-10-29 09:55:09 +01:00
2020-08-26 10:31:01 +02:00
2020-11-05 11:08:47 +01:00
2021-03-04 09:39:55 +01:00
2021-04-16 11:49:31 +02:00