From patchwork Tue Jun 18 15:34:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 167174 Delivered-To: patches@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4375271ilk; Tue, 18 Jun 2019 08:35:01 -0700 (PDT) X-Received: by 2002:ac2:494f:: with SMTP id o15mr29979365lfi.84.1560872101707; Tue, 18 Jun 2019 08:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560872101; cv=none; d=google.com; s=arc-20160816; b=0h37ZBpjS04T44ZRTm3JxrJr071C50Y5Kxp7At1dQOdBhQJAbRCBshs1hUfdMZ05+P mSUjmsdnztYPnncirnsp+Ms6r2ttA2hhpOWBFdF7FjqeIJN788jE3p2Oe6QBWiUS62Za ZmcZ8BfURJV9d/bVJ5q2xHhtwHh11EcOuOhJD8hvHcRnpasypSTu/qxq6R3WKJMcEWND OI7XT2PrmM/76lGeViRMIX+IXfZ91o0gY3vDK9cK2J7ALUOaxXyqBRm3uoVb24gW4l8G vj6vCJ1zKi9vvQcUfFdlyBU4lj2sDWkZRRIXXeeZk/AdwT/tbMBtanaB75or0uVWL573 LfMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DYh01G4YOAJJOYFXYzW1f6GX4EFwB2UrYsYuTpn+ycI=; b=YsUeFDLF/AIFHxJF3TiZehlYYwZs/tYGj9h+sZ1TPrAH9R2yCmbUCs4vrCHFr6ackU makOhP/DTrgT0I8Zw84PnZ+bOO022oEJZOzqBaWSn6P1GQyEtMAJz3g3koYkLRBNPlQp pTGt3XU2oQNlkooLiZgYlRcyERgSfbTeUy1t4okIErxVdLqYtxZLXuR8lQHqgYX6Omdn eReg8zdgYx92CtegzA3CcL6XL8tN+Eqsht0KehQsc3KCUOZgPSowaQdpJ1iU8WOju9Cm 8u6J/IN994D1tnpVppixGy3FO3Vn+Ryj2psS7tNdl7pqd/9W4Ar3YOWdpstmdkXX46Ry kKvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J/MtpnCD"; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y17sor8353456lji.23.2019.06.18.08.35.01 for (Google Transport Security); Tue, 18 Jun 2019 08:35:01 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J/MtpnCD"; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DYh01G4YOAJJOYFXYzW1f6GX4EFwB2UrYsYuTpn+ycI=; b=J/MtpnCDLrtQ7KxlyDUgTAqGs3KuQ/4fJwmuU8bU6mB5r9cAat/xZ/DKkI0M65UMB9 rVcQ5kQBHCpqxA7pFi8Hmq9WF9Gc2q8U72goWwgVUjYR+tHFCwaeCZc5eqrZjnyTwpRT HER9nQ5mOeTG0OvpVhqWZE3hf2FRoRbytTwWhMuNamB6rZ4htlVyPNtZGy4viwbHYAep pA95TU5DbmdQDKXLH4BfELfKI6DGVW0dB2YOzhcNy6BE41rEl+NNPmmrnHbqfl3cOvMG uvzzgko4/X+koH4dR/TvAzwwshOh4rP6+cY5dTximIpVpbFfRAQ/lwMDWV4N7OAKzHk3 miJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DYh01G4YOAJJOYFXYzW1f6GX4EFwB2UrYsYuTpn+ycI=; b=Rnckubfzw/LmRhtvaHDjFDCpoCogHFoVYCApX47vQ9CSZ4KPy0MBPNXi9LR6HOLHnR PtHjbEYtCXu801lZzSV7qUUaFkaVeia82RrY2FtcUYkzbTb0nQO9a9GBnVlKBiiMlpPx SI/hOuaZ2tiyR7ooEKb/EKMNxNZ9HU/KQ4y/aqKCXm8oftFYwOLI1Th9w4zsPlmsI/E2 LgjktC4tXeZ4i2ZH7Ww77qXvPEt8OGImY+35MRcoWuuC+szfFY2ZU4yRhiJvSZB+usES q7ER3Me0xPEwnxQCOQCqdsfmd7KlcNKVIXxdoCULmAswQWBz2p/YhWecRA1Y8Ka8YSoe tiHw== X-Gm-Message-State: APjAAAXXVUrjzZo4CqNBJesODsKdmqGsreRJ8ZGdokMK2CF+0Ro5WpBR v5d5Y3D+cKyBU50dLIOpQu5x21PV X-Google-Smtp-Source: APXvYqw5trtqABkhMNMmqPOkzUYmnAODdHE+SClNusmc+GT7Oc0Wvq4MM6vIfnYuKJBTztnp3HM2fA== X-Received: by 2002:a2e:8650:: with SMTP id i16mr14898729ljj.178.1560872101420; Tue, 18 Jun 2019 08:35:01 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id d15sm2203121lfq.76.2019.06.18.08.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 08:35:00 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter , Douglas Anderson Cc: Brian Norris , Shawn Lin , Guenter Roeck , Heiko Stuebner , Kalle Valo , Arend Van Spriel , linux-wireless@vger.kernel.org Subject: [PATCH 2/7] mmc: sdio: Drop mmc_claim|release_host() in mmc_sdio_power_restore() Date: Tue, 18 Jun 2019 17:34:43 +0200 Message-Id: <20190618153448.27145-3-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190618153448.27145-1-ulf.hansson@linaro.org> References: <20190618153448.27145-1-ulf.hansson@linaro.org> The function mmc_sdio_power_restore() is called either from mmc_sdio_runtime_resume() or from mmc_sdio_hw_reset(). Both callers either claims/releases the host or require its callers to do so. Therefore let's drop the redundant calls to mmc_claim|release_host() in mmc_sdio_power_restore(). Signed-off-by: Ulf Hansson --- drivers/mmc/core/sdio.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.17.1 Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index 712a7742765e..b3303b7d9956 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -1030,14 +1030,10 @@ static int mmc_sdio_power_restore(struct mmc_host *host) * */ - mmc_claim_host(host); - ret = mmc_sdio_reinit_card(host, mmc_card_keep_power(host)); if (!ret && host->sdio_irqs) mmc_signal_sdio_irq(host); - mmc_release_host(host); - return ret; }