# Re: \[PATCH v2\] ata: libahci\_platform: fix IRQ check

- From: Jens Axboe \<axboe@kernel.dk\>
- Date: 2021-03-31 02:25:30 
- List: linux-ide
- Page: https://ratatoskr.run/linux-ide/2021/03/16727690
- Thread: https://ratatoskr.run/linux-ide/2021/03/16727668/t.md

```text
On 3/15/21 2:15 PM, Sergey Shtylyov wrote:
> Iff platform_get_irq() returns 0, ahci_platform_init_host() would return 0
> early (as if the call was successful). Override IRQ0 with -EINVAL instead
> as the 'libata' regards 0 as "no IRQ" (thus polling) anyway...

Applied, thanks.

-- 
Jens Axboe

```
