android_kernel_motorola_sm6225/drivers/i2c
Sergey Shtylyov d009f519e5 i2c: mt65xx: fix IRQ check
[ Upstream commit 58fb7c643d346e2364404554f531cfa6a1a3917c ]

Iff platform_get_irq() returns 0, the driver's probe() method will return 0
early (as if the method's call was successful).  Let's consider IRQ0 valid
for simplicity -- devm_request_irq() can always override that decision...

Fixes: ce38815d39 ("I2C: mediatek: Add driver for MediaTek I2C controller")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Reviewed-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 11:47:54 +02:00
..
algos i2c: algo: pca: Reapply i2c bus settings after reset 2020-09-23 12:10:59 +02:00
busses i2c: mt65xx: fix IRQ check 2021-09-22 11:47:54 +02:00
muxes i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()' 2020-05-27 17:37:30 +02:00
i2c-boardinfo.c i2c: i2c-boardinfo: fix memory leaks on devinfo 2017-11-27 19:14:29 +01:00
i2c-core-acpi.c i2c: core: Restore acpi_walk_dep_device_list() getting called after registering the ACPI i2c devs 2020-10-30 10:38:26 +01:00
i2c-core-base.c i2c: core: Disable client irq on reboot/shutdown 2021-07-20 16:16:10 +02:00
i2c-core-of.c i2c: core: fix use after free in of_i2c_notify 2019-12-13 08:51:07 +01:00
i2c-core-slave.c i2c: slave: add sanity check when unregistering 2020-08-11 15:32:33 +02:00
i2c-core-smbus.c i2c: core: check returned size of emulated smbus block read 2020-06-30 23:17:13 -04:00
i2c-core.h i2c: make i2c_check_addr_validity() static 2018-03-24 14:07:23 +01:00
i2c-dev.c i2c: dev: zero out array used for i2c reads from userspace 2021-08-26 08:36:36 -04:00
i2c-mux.c Merge branch 'i2c/for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2018-08-21 17:40:46 -07:00
i2c-slave-eeprom.c
i2c-smbus.c i2c: i2c-smbus: add of_i2c_setup_smbus_alert 2017-10-28 23:42:47 +02:00
i2c-stub.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
Kconfig
Makefile i2c: don't use any __deprecated handling anymore 2018-08-24 17:26:43 +02:00