Re: [PATCH] pci: fix unavailable irq number 255 reported by BIOS

From: Rafael J. Wysocki
Date: Thu Jan 21 2016 - 17:58:59 EST


On Thu, Jan 21, 2016 at 3:41 PM, Cao jin <caoj.fnst@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> IMHO, I think maybe modification on i801_smbus driver is easier.
>
> Because when i801_smbus request_irq using pci_dev->irq, this
> pci_dev->irq seems still holds the value read from register(
> pci_setup_device->pci_read_irq), if the value is 255, it is invalid in
> register,

Right.

Which is why the PCI core should not leak it into the driver's ->probe callback.

Thanks,
Rafael