# Re: \[PATCH\] pata\_octeon\_cf: avoid WARN\_ON() in ata\_host\_activate()

- From: Jens Axboe \<axboe@kernel.dk\>
- Date: 2021-05-18 21:23:50 
- List: linux-ide
- Page: https://ratatoskr.run/linux-ide/2021/05/16727705
- Thread: https://ratatoskr.run/linux-ide/2021/05/16727702/t.md

```text
On 5/18/21 2:38 PM, Sergey Shtylyov wrote:
> Iff platform_get_irq() fails (or returns IRQ0) and thus the polling mode
> has to be used, ata_host_activate() hits the WARN_ON() due to 'irq_handler'
> parameter being non-NULL if the polling mode is selected.  Let's only set
> the pointer to the driver's IRQ handler if platform_get_irq() returns a
> valid IRQ # -- this should avoid the unnecessary WARN_ON()...

Applied, thanks.

-- 
Jens Axboe

```
