Re: [PATCH v2 3/5] i2c: pmcmsp: fix IRQ check
From: Wolfram Sang <wsa@kernel.org>
Date: 2021-08-17 20:08:19
Attachments
- signature.asc [application/pgp-signature] 833 bytes
From: Wolfram Sang <wsa@kernel.org>
Date: 2021-08-17 20:08:19
On Sun, Jul 04, 2021 at 05:41:50PM +0300, Sergey Shtylyov wrote:
The driver's probe() method is written as if platform_get_irq() returns 0
on error, while actually it returns a negative error code (with all the
other values considered valid IRQs). Rewrite the driver's IRQ checking
code to pass the positive IRQ #s to request_irq() and use polling mode
when platform_get_irq() returns negative error code (or IRQ0)...
Fixes: 1b144df1d7d6 ("i2c: New PMC MSP71xx TWI bus driver")
Signed-off-by: Sergey Shtylyov <redacted>The driver has been removed meanwhile.