]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: cpcap: Add missing IRQF_ONESHOT to fix regression
authorTony Lindgren <tony@atomide.com>
Wed, 30 Dec 2020 10:19:11 +0000 (12:19 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 2 Jan 2021 22:57:44 +0000 (23:57 +0100)
commit67c0a16216cbec157e92c831427e6bb2a8696a89
treec4e790e168068244f39bce12bc411f18259c025f
parentc4ee14780b971eb83a831df752086c1f63db22c6
power: supply: cpcap: Add missing IRQF_ONESHOT to fix regression

Commit 7bf02c8222e0 ("phy: cpcap-usb: Use IRQF_ONESHOT") started causing
errors loading phy-cpcap-usb driver:

cpcap_battery cpcap_battery.0: failed to register power supply
genirq: Flags mismatch irq 211. 00002080 (se0conn) vs. 00000080 (se0conn)
cpcap-usb-phy cpcap-usb-phy.0: could not get irq se0conn: -16

Let's fix this by adding the missing IRQF_ONESHOT to also cpcap-battery
and cpcap-charger drivers.

Fixes: 7bf02c8222e0 ("phy: cpcap-usb: Use IRQF_ONESHOT")
Reported-by: Merlijn Wajer <merlijn@wizzup.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-battery.c
drivers/power/supply/cpcap-charger.c