Re: [PATCH] i2c: highlander: add IRQ check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 30, 2021 at 10:13:45PM +0300, Sergey Shtylyov wrote:
> The driver is written as if platform_get_irq() returns 0 on errors (while
> actually it returns a negative error code), blithely passing these error
> codes to request_irq() (which takes *unsigned* IRQ #) -- which fails with
> -EINVAL. Add the necessary error check to the pre-existing *if* statement
> forcing the driver into the polling mode...
> 
> Fixes: 4ad48e6ab18c ("i2c: Renesas Highlander FPGA SMBus support")
> Signed-off-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
> 

Applied to for-next, thanks!

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux