Re: [PATCH] sata_mv: add IRQ checks

From
Jens Axboe <axboe@kernel.dk>
Date
2021-03-31 02:24:24
Also in
lkml
Reply to
Sergey Shtylyov, 2021-03-27
On 3/27/21 3:13 PM, Sergey Shtylyov wrote:
The function mv_platform_probe() neglects to check the results of the
calls to platform_get_irq() and irq_of_parse_and_map() and blithely
passes them to ata_host_activate() -- while the latter only checks
for IRQ0 (treating it as a polling mode indicattion) and passes the
negative values to devm_request_irq() causing it to fail as it takes
unsigned values for the IRQ #...

Add to mv_platform_probe() the proper IRQ checks to pass the positive IRQ
#s to ata_host_activate(), propagate upstream the negative error codes,
and override the IRQ0 with -EINVAL (as we don't want the polling mode).
Applied, thanks.

-- 
Jens Axboe
Thread (2 messages) 2 messages, 2 authors, last reply 2021-03-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help