From patchwork Wed Jan 25 15:12:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 92458 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2253645qgi; Wed, 25 Jan 2017 07:12:32 -0800 (PST) X-Received: by 10.46.75.1 with SMTP id y1mr16020137lja.65.1485357152158; Wed, 25 Jan 2017 07:12:32 -0800 (PST) Return-Path: Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com. [2a00:1450:4010:c07::235]) by mx.google.com with ESMTPS id 18si14869886ljh.32.2017.01.25.07.12.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 07:12:32 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::235 as permitted sender) client-ip=2a00:1450:4010:c07::235; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::235 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x235.google.com with SMTP id z134so130469487lff.3 for ; Wed, 25 Jan 2017 07:12:31 -0800 (PST) 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=36UUnrlWweKthQBn0pAl0zZk9EbJmzeciJ+9jupVVLE=; b=EfIkrUPBosFQhCNFfiC4GgEcsnL0wU1FCLz7pXwiDeZlRK9yV21aORYpZLD+Kw1hWP R8XNsX+uDl7gGrk/imqixnwF+hNvT99WAjH0v6WfS2Qxm6a2wAOW5mPF51zEhM61yGis B5kn7VoUb4qNoLMim4RNOEUfTXbvGYn/lS6Xg= 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=36UUnrlWweKthQBn0pAl0zZk9EbJmzeciJ+9jupVVLE=; b=SLs7DsTGZP4C09hl3cfLSKH3uwY7S9/Yv20QRDgYdk5MRQs4/O6KOCiEncC5xIUFHJ wACC8CwTTh5BfE5VoLLBbVMgJMHosfaNyC2aceqFIivqZ0k3n3O7vwER4UKemnAhfDrU bosta7s9JXkp30hEH6Kw1tBOgnSBfFiJOh/Vf9Pg36d2irYRnYs4TdRe3a89Ic+yFcJY HFZf8b8F3iMb5xyjEufSAIyDoSIv6fNYULBKxKVM8A7CfWaXxtW+bm1vnrmliTSPCP9Y ZS1IWpfM+iDgYEIJhRPcnG6+ftk1SqYUGBetoG9PethbcGHXuSSPojGECozm+C+WNz4C FSpA== X-Gm-Message-State: AIkVDXJrXtlMuKVXTkhMuEyZuaE5ew0zXsV/FDLnBiDHHs1rrFQvHZXEDngWlRHccNFpM9FcwwI= X-Received: by 10.25.159.144 with SMTP id i138mr11876340lfe.148.1485357151721; Wed, 25 Jan 2017 07:12:31 -0800 (PST) Return-Path: Received: from uffe-Latitude-E6430s.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id u126sm8397687lja.25.2017.01.25.07.12.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 07:12:30 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Shawn Lin , Stefan Wahren , Fabio Estevam , Jan Glauber Subject: [PATCH 1/6] mmc: core: Remove redundant code in mmc_set_signal_voltage() Date: Wed, 25 Jan 2017 16:12:18 +0100 Message-Id: <1485357143-23280-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485357143-23280-1-git-send-email-ulf.hansson@linaro.org> References: <1485357143-23280-1-git-send-email-ulf.hansson@linaro.org> The mmc_set_signal_voltage() function is used for SD/SDIO when switching to 1.8V for UHS mode. Therefore let's remove the redundant code dealing with MMC_SIGNAL_VOLTAGE_330. Signed-off-by: Ulf Hansson --- drivers/mmc/core/core.c | 7 ------- 1 file changed, 7 deletions(-) -- 1.9.1 diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 8c45825..bb819d4 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1654,13 +1654,6 @@ int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr) u32 clock; /* - * Send CMD11 only if the request is to switch the card to - * 1.8V signalling. - */ - if (signal_voltage == MMC_SIGNAL_VOLTAGE_330) - return __mmc_set_signal_voltage(host, signal_voltage); - - /* * If we cannot switch voltages, return failure so the caller * can continue without UHS mode */