From patchwork Thu Jun 8 13:27:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103392 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2439554qgd; Thu, 8 Jun 2017 06:28:01 -0700 (PDT) X-Received: by 10.25.158.78 with SMTP id h75mr496332lfe.178.1496928481043; Thu, 08 Jun 2017 06:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496928481; cv=none; d=google.com; s=arc-20160816; b=D9xFICZHtKV5Yg2k6o/ssh15iQftsmv9Da1okjNWRsira3uE+3UGOUS9oMskUwJeZX 0rZ+53kkHeHeFIeCljxFjUHMFLMdHWOVYRF9g6vFb16JifcPj8ny4FGqj/tcQ1RRcv0Q 9k0Jdh4HoMzOlO/q+42RYlts4cL7oQj9Vpt1Q3nTxZAs1fJQ0Z1eOYPIVlL+3UH9YCxj mghT2h4SJe38iTIlP2BaiCfjvwdpTEyrigjymqHBTluPpBd01IOg6j1sopXyQ7cfyMMI 0pWdl5828nqnPcDhZDJoGGw6VcAP30suuiK384QXZv60ruIIn4tPk5rNx1PCE68apBPM VDtQ== 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:arc-authentication-results; bh=8vrJ8JNp015h+FcjlglTh2tZ1Qqp3j3yOCYXRc/XfPk=; b=DfxMW/v3kCiLIyhSDsZdyd49+QG0qyBufwBjGUWQi89GdpruPOAbuVamdupEhSyb52 eClnjWiJgz5/mzv+zuVq3VnrCpjx99L1bFnCL+DpmPGFCFhKGHzD/xzirsDhwrLf6BjV 7MutLxgq5nwnN2rVedjRCMpboyDdOveW/4nRgXGvi+znvuaRom6IxkswxvB6xNmAFBv2 APljWZVOGBmsHQGUAgKeWyrWO1B6iJ+M7RT4P69OwmTng1vJJduCrx3gTtGjDub4oOva UGql1aCVtQsfX97x/0gl3L+80RhoCsoUx9J9LLYney8D9i4aP/EHghBpUNkDAJWlQQKk 9/Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 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-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232]) by mx.google.com with ESMTPS id w8si694765ljd.282.2017.06.08.06.28.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 06:28:01 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232; 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::232 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-x232.google.com with SMTP id p189so18039135lfe.2 for ; Thu, 08 Jun 2017 06:28:00 -0700 (PDT) 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=8vrJ8JNp015h+FcjlglTh2tZ1Qqp3j3yOCYXRc/XfPk=; b=SOYBWx6sPgLN24gUL4zM+zABqvyIzcboKUxixybXkvcws5QFVgxg4odlA+2I8DJetl k4mO480hS9aZui6L+TykEoe0TT2RT+m2N3R+VrnhTin9j3gyb7RMui356wrC/2Da2vYJ pp4wrBf9YvW0iH4pFH0YYMTF0iwvPMEAEKhhA= 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=8vrJ8JNp015h+FcjlglTh2tZ1Qqp3j3yOCYXRc/XfPk=; b=P62DCfkP8o3LWji+zUhqRGXIJ1IKbQnGvr08A1X3RfVm6n/DOuvj+zhuQhDZwWDbpZ qS71nj5hWztRvTluolIDAgRgiJ9nrvjBWLLdDaL/zY12cYnJ/IyDACh+GBE7e5tDzW2v Q2LK4XO0gciDmMZ7sRdF3quu+s/SgwyojHgKPY3MY6Q0vLOtr3+9667cTBYMZWSc3oWy 9YITTtTMvzvPAOvdlwg5XmHpc6ISAKJCEZObj24ewk2uhLJxnEajle+EfArhEgvINFxX ZATEnO1wlTN/3Sih/Jlta+CnsrbcxKPR/iZo5ufp2HkS4FRImE6o8P/T8rMRZKdBbIU+ tTVg== X-Gm-Message-State: AODbwcAdes54ie2uwViX9AgVCcUYz7BSuKtbJxIILUEsupbqHLxSRBzn fWLS19/eCWDJ7hN6fso= X-Received: by 10.46.88.29 with SMTP id m29mr5009344ljb.138.1496928480706; Thu, 08 Jun 2017 06:28:00 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id i8sm1025178ljb.55.2017.06.08.06.27.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 06:28:00 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Linus Walleij Subject: [PATCH 8/9] mmc: core: Drop mmc_all_send_cid() and use mmc_send_cxd_native() instead Date: Thu, 8 Jun 2017 15:27:44 +0200 Message-Id: <1496928465-25004-9-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496928465-25004-1-git-send-email-ulf.hansson@linaro.org> References: <1496928465-25004-1-git-send-email-ulf.hansson@linaro.org> Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc_ops.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) -- 2.7.4 Reviewed-by: Linus Walleij diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 50571a6..b60b4da 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -207,24 +207,6 @@ int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) return err; } -static int mmc_all_send_cid(struct mmc_host *host, u32 *cid) -{ - int err; - struct mmc_command cmd = {}; - - cmd.opcode = MMC_ALL_SEND_CID; - cmd.arg = 0; - cmd.flags = MMC_RSP_R2 | MMC_CMD_BCR; - - err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); - if (err) - return err; - - memcpy(cid, cmd.resp, sizeof(u32) * 4); - - return 0; -} - int mmc_set_relative_addr(struct mmc_card *card) { struct mmc_command cmd = {}; @@ -360,7 +342,7 @@ int mmc_send_cid(struct mmc_host *host, u32 *cid) if (mmc_host_is_spi(host)) return mmc_spi_send_cid(host, cid); - return mmc_all_send_cid(host, cid); + return mmc_send_cxd_native(host, 0, cid, MMC_ALL_SEND_CID); } int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)