* [PATCH] rsi: Suppress sdhci warnings in mmc
@ 2019-01-18 9:18 Siva Rebbagondla
2019-02-01 12:27 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Siva Rebbagondla @ 2019-01-18 9:18 UTC (permalink / raw)
To: Kalle Valo
Cc: linux-wireless, Rishikesh Basu, Siva Rebbagondla, Ganapathi Kondraju
From: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
while inserting and removing sdio module multiple times, we are getting
sdhci warnings. This is because, improper assignment of ocr_avail value.
Fixed this by assigning proper value.
This patch is enhancement for commit 78e450719c702 ("rsi: Fix 'invalid
vdd' warning in mmc").
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
---
drivers/net/wireless/rsi/rsi_91x_sdio.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/drivers/net/wireless/rsi/rsi_91x_sdio.c b/drivers/net/wireless/rsi/rsi_91x_sdio.c
index 5733e44..b412b65e 100644
--- a/drivers/net/wireless/rsi/rsi_91x_sdio.c
+++ b/drivers/net/wireless/rsi/rsi_91x_sdio.c
@@ -230,16 +230,19 @@ static void rsi_reset_card(struct sdio_func *pfunction)
rsi_dbg(ERR_ZONE, "%s: CMD0 failed : %d\n", __func__, err);
/* Issue CMD5, arg = 0 */
- err = rsi_issue_sdiocommand(pfunction, SD_IO_SEND_OP_COND, 0,
- (MMC_RSP_R4 | MMC_CMD_BCR), &resp);
- if (err)
- rsi_dbg(ERR_ZONE, "%s: CMD5 failed : %d\n", __func__, err);
- card->ocr = resp;
+ if (!host->ocr_avail) {
+ err = rsi_issue_sdiocommand(pfunction, SD_IO_SEND_OP_COND, 0,
+ (MMC_RSP_R4 | MMC_CMD_BCR), &resp);
+ if (err)
+ rsi_dbg(ERR_ZONE, "%s: CMD5 failed : %d\n",
+ __func__, err);
+ host->ocr_avail = resp;
+ }
/* Issue CMD5, arg = ocr. Wait till card is ready */
for (i = 0; i < 100; i++) {
err = rsi_issue_sdiocommand(pfunction, SD_IO_SEND_OP_COND,
- card->ocr,
+ host->ocr_avail,
(MMC_RSP_R4 | MMC_CMD_BCR), &resp);
if (err) {
rsi_dbg(ERR_ZONE, "%s: CMD5 failed : %d\n",
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rsi: Suppress sdhci warnings in mmc
2019-01-18 9:18 [PATCH] rsi: Suppress sdhci warnings in mmc Siva Rebbagondla
@ 2019-02-01 12:27 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-02-01 12:27 UTC (permalink / raw)
To: Siva Rebbagondla
Cc: linux-wireless, Rishikesh Basu, Siva Rebbagondla, Ganapathi Kondraju
Siva Rebbagondla <siva8118@gmail.com> wrote:
> From: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
>
> while inserting and removing sdio module multiple times, we are getting
> sdhci warnings. This is because, improper assignment of ocr_avail value.
> Fixed this by assigning proper value.
>
> This patch is enhancement for commit 78e450719c702 ("rsi: Fix 'invalid
> vdd' warning in mmc").
>
> Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Patch applied to wireless-drivers-next.git, thanks.
1e1b4161e859 rsi: Suppress sdhci warnings in mmc
--
https://patchwork.kernel.org/patch/10769587/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-01 12:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-18 9:18 [PATCH] rsi: Suppress sdhci warnings in mmc Siva Rebbagondla
2019-02-01 12:27 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).