android_kernel_oneplus_msm8998/drivers/net/wireless/rsi
Siva Rebbagondla 7315e0d38a rsi: Fix 'invalid vdd' warning in mmc
[ Upstream commit 78e450719c702784e42af6da912d3692fd3da0cb ]

While performing cleanup, driver is messing with card->ocr
value by not masking rocr against ocr_avail. Below panic
is observed with some of the SDIO host controllers due to
this. Issue is resolved by reverting incorrect modifications
to vdd.

[  927.423821] mmc1: Invalid vdd 0x1f
[  927.423925] Modules linked in: rsi_sdio(+) cmac bnep arc4 rsi_91x
	       mac80211 cfg80211 btrsi rfcomm bluetooth ecdh_generic
[  927.424073] CPU: 0 PID: 1624 Comm: insmod Tainted: G		W        4.15.0-1000-caracalla #1
[  927.424075] Hardware name: Dell Inc. Edge Gateway	3003/      , BIOS 01.00.06 01/22/2018
[  927.424082] RIP: 0010:sdhci_set_power_noreg+0xdd/0x190[sdhci]
[  927.424085] RSP: 0018:ffffac3fc064b930 EFLAGS:  00010282
[  927.424107] Call Trace:
[  927.424118]  sdhci_set_power+0x5a/0x60 [sdhci]
[  927.424125]  sdhci_set_ios+0x360/0x3b0 [sdhci]
[  927.424133]  mmc_set_initial_state+0x92/0x120
[  927.424137]  mmc_power_up.part.34+0x33/0x1d0
[  927.424141]  mmc_power_up+0x17/0x20
[  927.424147]  mmc_sdio_runtime_resume+0x2d/0x50
[  927.424151]  mmc_runtime_resume+0x17/0x20
[  927.424156]  __rpm_callback+0xc4/0x200
[  927.424161]  ? idr_alloc_cyclic+0x57/0xd0
[  927.424165]  ? mmc_runtime_suspend+0x20/0x20
[  927.424169]  rpm_callback+0x24/0x80
[  927.424172]  ? mmc_runtime_suspend+0x20/0x20
[  927.424176]  rpm_resume+0x4b3/0x6c0
[  927.424181]  __pm_runtime_resume+0x4e/0x80
[  927.424188]  driver_probe_device+0x41/0x490
[  927.424192]  __driver_attach+0xdf/0xf0
[  927.424196]  ? driver_probe_device+0x490/0x490
[  927.424201]  bus_for_each_dev+0x6c/0xc0
[  927.424205]  driver_attach+0x1e/0x20
[  927.424209]  bus_add_driver+0x1f4/0x270
[  927.424217]  ? rsi_sdio_ack_intr+0x50/0x50 [rsi_sdio]
[  927.424221]  driver_register+0x60/0xe0
[  927.424227]  ? rsi_sdio_ack_intr+0x50/0x50 [rsi_sdio]
[  927.424231]  sdio_register_driver+0x20/0x30
[  927.424237]  rsi_module_init+0x16/0x40 [rsi_sdio]

Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-06 16:24:38 +02:00
..
Kconfig
Makefile
rsi_91x_core.c rsi: Fixed warnings reported by static code analyzers. 2014-06-25 15:40:41 -04:00
rsi_91x_debugfs.c rsi: Mapping the debugfs stats to the correct s/w queues. 2014-06-19 15:49:21 -04:00
rsi_91x_mac80211.c mac80211: pass block ack session timeout to to driver 2017-05-20 14:27:03 +02:00
rsi_91x_main.c rsi: Add pr_fmt,__printf, fix format & arg mismatch 2014-03-19 15:15:47 -04:00
rsi_91x_mgmt.c rsi: Fixed errors and warnings reported by static code analyzers. 2014-06-25 15:40:40 -04:00
rsi_91x_pkt.c rsi: Changes for 40MHz 2014-06-19 15:49:23 -04:00
rsi_91x_sdio.c rsi: Fix 'invalid vdd' warning in mmc 2018-08-06 16:24:38 +02:00
rsi_91x_sdio_ops.c rsi: Fix possible leak when loading firmware 2015-08-25 15:37:41 +03:00
rsi_91x_usb.c rsi: fix memory leaks and error handling in rsi_91x_usb 2014-07-01 14:26:26 -04:00
rsi_91x_usb_ops.c rsi: Fix possible leak when loading firmware 2015-08-25 15:37:41 +03:00
rsi_boot_params.h
rsi_common.h rsi: avoid format string leak to thread name 2014-05-29 13:08:10 -04:00
rsi_debugfs.h
rsi_main.h rsi: Adding support for host based bgscan. 2014-06-19 15:49:23 -04:00
rsi_mgmt.h rsi: Adding support for host based bgscan. 2014-06-19 15:49:23 -04:00
rsi_sdio.h rsi: Changed the SDIO interrupt variables and some clean up. 2014-06-19 15:49:22 -04:00
rsi_usb.h