Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1113530imm; Wed, 1 Aug 2018 10:24:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdQVh3LxWSj9bU9E0CZIw+QuPKZRtGfjeXYw944Q45ArCW2Wf37RkK1+mZ3jRnhNhs01kLa X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr3046410pgt.164.1533144245070; Wed, 01 Aug 2018 10:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144245; cv=none; d=google.com; s=arc-20160816; b=OqqzOa2RnFcfUg/BISXvn39bgJjMYdWOJH30H+c9zJRr2ICDnwo/yBrbAxqUIWAJqy VHfGw2RXFoLtwLqwvqOcOgrqu/orEVM8TdXUwHw/3IR0PF0iQcpvY0AuOwhGVvrvKmdq uMG4rw+tur79iNyQ57HNZ9zhXv9d5qAFbkJLeRhkK6Gtc9DB51WX0Np0uBbUk18Yal0C c/4xa0E3B7QECIbQ89sOAMb2z+NWrshOCabJJs+QIc8nGqeInwJc7zQCaslLKcEWajpQ yI3PsRho1nkCQz6LVX9CstBTcTcCWEfTkAlfAHHfP5soxpsX5HEgyT5/azIR1OR9uSsy ehCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vZSZLdYsc3vUdFu+WVpMA21MovKBsqTtrJLbPlcaC+8=; b=h5eWP825linDAjlel8KKZzes7/KjfrltX6N5Tw5MKxThxseJMBC7yxbHzce3y9tJKF 6vL9rCExbt9LNjCdTvmY31sj7jkT2b1ElFjg9rZo8PBjkNTGy76OWoyTMiWddwdyFqop Q3cbj0ieEh3g6XzWO/XSP65Ee/o8vGX1bpxXymiz2r5yfPzeXMvOFjWgp4GIcU519Cjf 4oEzPfh+8mAaFPTwWecu9vj2VhWek1AyYc0gG1NW5EHaE0o/OUPvppPswczo7Zyjry76 jTATV/wMcx/b8F/pA10nPsXnP9RRTVcLU3p92rsdv0KnYDa5sVpAqz6NNf3IyWSxhu8U bFDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y63-v6si15978043pgb.5.2018.08.01.10.23.50; Wed, 01 Aug 2018 10:24:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406195AbeHATIy (ORCPT + 99 others); Wed, 1 Aug 2018 15:08:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50638 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405310AbeHATIx (ORCPT ); Wed, 1 Aug 2018 15:08:53 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 52B3ACC9; Wed, 1 Aug 2018 17:22:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Siva Rebbagondla , Amitkumar Karwar , Kalle Valo , Sasha Levin Subject: [PATCH 4.14 190/246] rsi: Fix invalid vdd warning in mmc Date: Wed, 1 Aug 2018 18:51:40 +0200 Message-Id: <20180801165020.806981953@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Siva Rebbagondla [ 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 Signed-off-by: Amitkumar Karwar Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/rsi/rsi_91x_sdio.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/net/wireless/rsi/rsi_91x_sdio.c +++ b/drivers/net/wireless/rsi/rsi_91x_sdio.c @@ -161,7 +161,6 @@ static void rsi_reset_card(struct sdio_f int err; struct mmc_card *card = pfunction->card; struct mmc_host *host = card->host; - s32 bit = (fls(host->ocr_avail) - 1); u8 cmd52_resp; u32 clock, resp, i; u16 rca; @@ -181,7 +180,6 @@ static void rsi_reset_card(struct sdio_f msleep(20); /* Initialize the SDIO card */ - host->ios.vdd = bit; host->ios.chip_select = MMC_CS_DONTCARE; host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; host->ios.power_mode = MMC_POWER_UP;