Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3950741pxb; Mon, 8 Feb 2021 04:26:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtUeReNvKCZbCDtNcZJYiPyCzKHQRkX2wN8w5oxYjUQUY8KNNTQ6sUcTiy794uQHvyqGqJ X-Received: by 2002:a05:6402:524f:: with SMTP id t15mr16637571edd.158.1612787216997; Mon, 08 Feb 2021 04:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612787216; cv=none; d=google.com; s=arc-20160816; b=IAnWtANXT9RV7OxvE7TjHhqJ7UvuHmxPKojmzlY3vKvdYlc/EkXhsSdZXl9eLK22KZ f59xa+Zm3WuhyOWqQDpiLG0yBvQR46LPA7tkGlHTrsZeTXFcoBKBjmVEHwRXuhZ/DI9X heP2lsU7Q1gZp6LCNsXeLkCbytIB9SkF7fIQ9oSWj8OU/UiVq9wvYpjvF1beHelKHZ5s 9OyI6R9HLFpW0SK6Z88sp4uYIZbqHeBbB+B5QbDujXdGDK2XR/3ao73HBgqqlNUyCmb4 OYTYxpiRlhmKA/ZN4Zx7pCAZYsAJTg23l4nOYoXv3KdfBfPX+oCTHkAyeklyZ6glm1zz 8dnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ImspA1BSqvczZ+MWUWIRyfcIF1TY4t53ZG9PfWvHtxQ=; b=D2b5xuR/pteggeK3SMVGVt4drlSXc4LnGCFyuShXTn1JXFhrbPhSv3uOrv2zAR/fsM ct/X1HwHgRxgBBr773Mi5fWAzWnsQLJV5D2+O3q5fPlQCYSIuteEgOMUJ05Ug2wWqrtX IRUaFmhEpUflVL1wPGaJVlpOZqjt9OCQbFjP9BPSq/riSlnq+/0x7kJbSSirJ1Mq69Tr /8FTCtkCbH6tSRy+uqe/WtLBvGLJ1YBmVKgbJG+5XFbV4WiAmyYbUpsCfgI7crTNfJY3 LQj/esZSJd/74J3+AKb7BRmgYRw6TumknbCdnQmt4cKPhcXVlR9Xh5qS55ntte3yp0tm zf1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AV4fYeCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si10676434eja.76.2021.02.08.04.26.33; Mon, 08 Feb 2021 04:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AV4fYeCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbhBHMZr (ORCPT + 99 others); Mon, 8 Feb 2021 07:25:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231816AbhBHMIj (ORCPT ); Mon, 8 Feb 2021 07:08:39 -0500 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61106C06178C for ; Mon, 8 Feb 2021 04:07:26 -0800 (PST) Received: by mail-vs1-xe2d.google.com with SMTP id x13so400953vsl.8 for ; Mon, 08 Feb 2021 04:07:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ImspA1BSqvczZ+MWUWIRyfcIF1TY4t53ZG9PfWvHtxQ=; b=AV4fYeCBmYOLfiveuetMK91m+CKQCbIxlcsrEIPQCA/hUQqSTxDqGXDoCivvhmyGRK 2rnBAi8pTtT3PmrhPm2jPFeTDjvMztmOBLwjNWKa2/prHJvTNuarzTrO4SRrDNGFODvp F1RmtTiaqyIRXXAUJwGfHz6a3shk6EucHp98b84kHpi7mYaIs6O465KaUYg/7oE54dFD 7d0ioAKO0OJjOzcXb0m+kCzhxhgWB0HOP6xeoSvcXARVfzsw8g0Mk2QOZxjzQs4jVBpF By3BMLPSRdeIFtH3LZJ/QpkxVUsUFIaKu2FH7it7M3H/+V76no3eKPTvQlybwOEwqeME o0AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ImspA1BSqvczZ+MWUWIRyfcIF1TY4t53ZG9PfWvHtxQ=; b=fNNJDv7N+RpnyEvRo0Ec3ilzy2pn48X/0Wkl36xVW98omKScMiblhOyQcNFTqXjDAi 4WOXlFtV7QCKZwudvnFNGFUpHPsEG1fItns3ix5Tt9WB4goV2oY2AsZIVj8Msupn4USY gTpkHldv1lDVbDvywNDeNkQTeUtT+13KmR6jiveXSA07yZRLY7/Q0BjCHJWQdONSrNPt NNmtoL0lVYQUaOyLXhKFVEyU50vetBCmdygKV0S3Hu8qoe63+ggHL1bpwKvOkpCzXELa ULBlnDhGWktTOj4aUw5EHwTjsNp39DzsvwulPVvdQpIsx7djcU28269azNDMj0wmJSQ2 zmwA== X-Gm-Message-State: AOAM533VQnYdmN2BlVKTCnrOJ6h47Eq7xh0tLaaayRHPgDY6xdYyEftg rXYjidMTK5VYw9GGhBDjUo0Vibpsh2rlC0T8h6MmbA== X-Received: by 2002:a67:2c82:: with SMTP id s124mr9892311vss.34.1612786045588; Mon, 08 Feb 2021 04:07:25 -0800 (PST) MIME-Version: 1.0 References: <20210201055507.542-1-zbestahu@gmail.com> In-Reply-To: <20210201055507.542-1-zbestahu@gmail.com> From: Ulf Hansson Date: Mon, 8 Feb 2021 13:06:49 +0100 Message-ID: Subject: Re: [PATCH] mmc: core: Use host instead of card argument to mmc_spi_send_csd() To: Yue Hu Cc: "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Yue Hu , zhangwen@yulong.com, zbestahu@163.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Feb 2021 at 06:57, Yue Hu wrote: > > From: Yue Hu > > Since mmc_send_cxd_data() does not care card if opcode is MMC_SEND_CSD. > > Signed-off-by: Yue Hu Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/core/mmc_ops.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c > index baa6314..265d95e 100644 > --- a/drivers/mmc/core/mmc_ops.c > +++ b/drivers/mmc/core/mmc_ops.c > @@ -296,7 +296,7 @@ int mmc_set_relative_addr(struct mmc_card *card) > return 0; > } > > -static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd) > +static int mmc_spi_send_csd(struct mmc_host *host, u32 *csd) > { > int ret, i; > __be32 *csd_tmp; > @@ -305,7 +305,7 @@ static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd) > if (!csd_tmp) > return -ENOMEM; > > - ret = mmc_send_cxd_data(card, card->host, MMC_SEND_CSD, csd_tmp, 16); > + ret = mmc_send_cxd_data(NULL, host, MMC_SEND_CSD, csd_tmp, 16); > if (ret) > goto err; > > @@ -320,7 +320,7 @@ static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd) > int mmc_send_csd(struct mmc_card *card, u32 *csd) > { > if (mmc_host_is_spi(card->host)) > - return mmc_spi_send_csd(card, csd); > + return mmc_spi_send_csd(card->host, csd); > > return mmc_send_cxd_native(card->host, card->rca << 16, csd, > MMC_SEND_CSD); > -- > 1.9.1 >