]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: designware: Use polling by default when there is no irq resource
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 1 Jul 2025 12:22:48 +0000 (15:22 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 10 Jul 2025 14:18:47 +0000 (10:18 -0400)
commit22290cc904d9f5b882748573a16ccf8c6d632d92
tree92b66b9fe8722d4feeffa31e3564a060d8398316
parent621a4220793b6d7bf29c66e2d82b9290225b2cf6
i2c: designware: Use polling by default when there is no irq resource

The irq resource itself can be used as a generic way to
determine when polling is needed.

This not only removes the need for special additional device
properties that would soon be needed when the platform may
or may not have the irq, but it also removes the need to
check the platform in the first place in order to determine
is polling needed or not.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250701122252.2590230-2-heikki.krogerus@linux.intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/i2c/busses/i2c-designware-platdrv.c