linux_dsm_epyc7002/drivers/power/supply
Dmitry Osipenko 87f6600119 power: supply: smb347-charger: Fix interrupt usage if interrupt is unavailable
[ Upstream commit 6996312642d2dad3070c3d276c7621f35e721f30 ]

The IRQ=0 could be a valid interrupt number in kernel because interrupt
numbers are virtual in a modern kernel. Hence fix the interrupt usage in
a case if interrupt is unavailable by not overriding the interrupt number
which is used by the driver.

Note that currently Nexus 7 is the only know device which uses SMB347
kernel diver and it has a properly working interrupt, hence this patch
doesn't fix any real problems, it's a minor cleanup/improvement.

Fixes: 99298de5df ("power: supply: smb347-charger: Replace mutex with IRQ disable/enable")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:59 +01:00
..
88pm860x_battery.c power: supply: check if calc_soc succeeded in pm860x_init_battery 2020-07-28 02:13:21 +02:00
88pm860x_charger.c
ab8500_bmdata.c
ab8500_btemp.c
ab8500_charger.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
ab8500_fg.c power supply and reset changes for the v5.10 series 2020-10-20 10:56:34 -07:00
abx500_chargalg.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
act8945a_charger.c
adp5061.c
apm_power.c
axp20x_ac_power.c
axp20x_battery.c
axp20x_usb_power.c power: supply: axp20x_usb_power: Init work before enabling IRQs 2021-03-04 11:37:59 +01:00
axp288_charger.c power: supply: axp288_charger: Fix HP Pavilion x2 10 DMI matching 2020-12-30 11:53:25 +01:00
axp288_fuel_gauge.c
bd70528-charger.c
bd99954-charger.c
bd99954-charger.h
bq27xxx_battery_hdq.c power supply and reset changes for the v5.10 series 2020-10-20 10:56:34 -07:00
bq27xxx_battery_i2c.c power: supply: bq27xxx: add support for TI bq34z100 2020-10-02 00:01:42 +02:00
bq27xxx_battery.c power: supply: bq27xxx: add support for TI bq34z100 2020-10-02 00:01:42 +02:00
bq2415x_charger.c power: supply: bq2xxxx: Replace HTTP links with HTTPS ones 2020-07-28 02:07:35 +02:00
bq2515x_charger.c power: supply: bq2515x: fix kerneldoc 2020-10-03 22:17:50 +02:00
bq24190_charger.c power: supply: bq24190_charger: fix reference leak 2020-12-30 11:53:25 +01:00
bq24257_charger.c power: supply: bq24257: skip 'struct acpi_device_id' when !CONFIG_ACPI 2020-10-03 22:17:50 +02:00
bq24735-charger.c
bq25890_charger.c power: supply: bq25890: Use the correct range for IILIM register 2020-12-30 11:53:25 +01:00
bq25980_charger.c power: supply: bq25980: Fix uninitialized wd_reg_val and overrun 2020-10-13 23:24:10 +02:00
bq25980_charger.h power: supply: bq25980: Add support for the BQ259xx family 2020-10-04 01:54:35 +02:00
charger-manager.c power: supply: charger-manager: fix incorrect check on charging_duration_ms 2020-10-09 00:33:09 +02:00
collie_battery.c
cpcap-battery.c power: supply: cpcap-battery: Fix missing power_supply_put() 2021-03-04 11:37:55 +01:00
cpcap-charger.c power: supply: cpcap-charger: Fix power_supply_put on null battery pointer 2021-03-04 11:37:55 +01:00
cros_usbpd-charger.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
cw2015_battery.c power: supply: cw2015: Attach OF ID table to the driver 2020-06-06 01:13:56 +02:00
da9030_battery.c power: Convert to DEFINE_SHOW_ATTRIBUTE 2020-07-27 00:05:56 +02:00
da9052-battery.c
da9150-charger.c
da9150-fg.c
ds2760_battery.c power: supply: Constify static w1_family_ops structs 2020-10-05 13:21:49 +02:00
ds2780_battery.c power: supply: ds278x: fix spelling typo 2020-09-30 01:12:04 +02:00
ds2781_battery.c power: supply: ds278x: fix spelling typo 2020-09-30 01:12:04 +02:00
ds2782_battery.c
generic-adc-battery.c
goldfish_battery.c power: supply: goldfish: skip 'struct acpi_device_id' when !CONFIG_ACPI 2020-10-03 22:17:50 +02:00
gpio-charger.c power: supply: gpio-charger: add charge-current-limit feature 2020-08-27 21:13:23 +02:00
ingenic-battery.c power: supply: ingenic: Simplify with dev_err_probe() 2020-08-26 17:25:42 +02:00
ipaq_micro_battery.c
isp1704_charger.c
Kconfig power: supply: fix sbs-charger build, needs REGMAP_I2C 2021-03-04 11:37:57 +01:00
lego_ev3_battery.c power: supply: lego_ev3: Simplify with dev_err_probe() 2020-08-26 17:25:45 +02:00
lp8727_charger.c
lp8788-charger.c
lt3651-charger.c
ltc2941-battery-gauge.c power: supply: ltc2941: Fix ptr to enum cast 2020-10-10 22:16:43 +02:00
Makefile power: supply: bq25980: Add support for the BQ259xx family 2020-10-04 01:54:35 +02:00
max1721x_battery.c power: supply: Constify static w1_family_ops structs 2020-10-05 13:21:49 +02:00
max8903_charger.c
max8925_power.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
max8997_charger.c
max8998_charger.c power: supply: max8998_charger: Correct ONLINE and add STATUS props 2020-06-19 19:58:23 +02:00
max14577_charger.c
max14656_charger_detector.c
max17040_battery.c power: supply: max17040: Fix ptr to enum cast 2020-10-09 00:10:32 +02:00
max17042_battery.c power: supply: max17042_battery: Fix current_{avg,now} hiding with no current sense 2020-12-30 11:53:25 +01:00
max77650-charger.c
max77693_charger.c
mp2629_charger.c
olpc_battery.c
pcf50633-charger.c
pda_power.c
pm2301_charger.c power: supply: pm2301: drop duplicated i2c_device_id 2020-10-03 22:17:50 +02:00
pm2301_charger.h
pmu_battery.c
power_supply_core.c power: supply: Support battery temperature device-tree properties 2020-08-25 19:24:37 +02:00
power_supply_hwmon.c
power_supply_leds.c
power_supply_sysfs.c power: supply: add wireless type 2020-08-26 16:53:26 +02:00
power_supply.h
qcom_smbb.c
rn5t618_power.c power: supply: fix spelling mistake "unprecise" -> "imprecise" 2020-10-03 23:45:02 +02:00
rt5033_battery.c power: supply: rt5033_battery: Fix error code in rt5033_battery_probe() 2020-07-28 02:18:24 +02:00
rt9455_charger.c power: supply: rt9455: skip 'struct acpi_device_id' when !CONFIG_ACPI 2020-10-03 22:17:50 +02:00
rx51_battery.c
s3c_adc_battery.c ARM: s3c: adc: move header to linux/soc/samsung 2020-08-19 21:44:11 +02:00
sbs-battery.c power supply and reset changes for the v5.10 series 2020-10-20 10:56:34 -07:00
sbs-charger.c
sbs-manager.c
sc27xx_fuel_gauge.c power: supply: sc27xx: prevent adc * 1000 from overflow 2020-07-28 00:49:26 +02:00
sc2731_charger.c
smb347-charger.c power: supply: smb347-charger: Fix interrupt usage if interrupt is unavailable 2021-03-04 11:37:59 +01:00
test_power.c power: supply: test-power: revise parameter printing to use sprintf 2020-10-09 01:02:30 +02:00
tosa_battery.c
tps65090-charger.c
tps65217_charger.c
twl4030_charger.c
twl4030_madc_battery.c
ucs1002_power.c power: supply: ucs1002: fix some health status issues 2020-10-01 00:18:05 +02:00
wilco-charger.c power: supply: wilco_ec: Add long life charging mode 2020-07-31 14:33:56 +02:00
wm97xx_battery.c
wm831x_backup.c
wm831x_power.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
wm8350_power.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
z2_battery.c