Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7665663rwb; Mon, 12 Dec 2022 18:42:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sf5mhSO7DpRcfTchZeohwSESRx9Dh8wpMYYj1TpDrvP/tmE7g6JYIPcxNZn4kkoqdeBtM X-Received: by 2002:a17:90a:4e09:b0:20d:bd60:c30d with SMTP id n9-20020a17090a4e0900b0020dbd60c30dmr19027342pjh.10.1670899355610; Mon, 12 Dec 2022 18:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670899355; cv=none; d=google.com; s=arc-20160816; b=mX+zYWNd9lYOYR9n4Bxlv0E7mKpOAeTc9SgCtR4YvB7gqs9NYvBHtXn0/6Z+aaYHnG 9mM3f+nagXSLoGjMuTegDB11699kiTxE2MSYl1tNR4brEN2M5hj80TYcHyH6pxiKfkH2 XTy9dRjp+CUXjdTC+H+zE47mRzwwLLXyVdO9N+22dBRx2xpA+oj7RmHyYUecypPDzf0Y B6EmYdhlo36pn8cnP+K9DtRH5Lr/0RRyLNl9mzWWBlbj2umxTFiARN+geY6A+V59YTqN IB2fsAJkYQj1jON4zEPp6WgPkBiJ7OGfta3BRdd0sDrOm2wcm+j6gcZNSqYtuBOv1jkx zGLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id; bh=GAZN6tz/6pUIWCSd2KhBI9FZfagK5T33NqhWW0IvO4w=; b=KG2p3mWw2z0Pgvy7KyPVqPA9WDj9euuAlZYLm+FnOigecpNpeXiqoE3q1dPeklLn8P jEPrXRxSNThvxlzOz6bcxuJn1/v6J8mSpnABdwJalhmwsWqmgCgdWFWAnSPuvnl/4qPL JtDbefUEVK+QqoYp5QDZ9Em9swqN0n8ivbjIsH5uY2oVHHrE2/i1NCREAaIquBU1fQHF kXmrLi+CL+PCHqsN6gnpCGY4Rx76q5oBxCDYUBfKkRkaqIHsm0b1m9aNVktjW0KdGDpi tJ4Sbk7x/3YwVufssfhKyiKV3y62klZexDLBsakpvFerBYXaYlw9tHMQiOI5JWJgID7C gMiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a17090acf0200b0021322320f17si10466509pju.17.2022.12.12.18.42.25; Mon, 12 Dec 2022 18:42:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233450AbiLMCe2 (ORCPT + 75 others); Mon, 12 Dec 2022 21:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbiLMCe0 (ORCPT ); Mon, 12 Dec 2022 21:34:26 -0500 X-Greylist: delayed 573 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 12 Dec 2022 18:34:25 PST Received: from mail-m11880.qiye.163.com (mail-m11880.qiye.163.com [115.236.118.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54099BF40; Mon, 12 Dec 2022 18:34:25 -0800 (PST) Received: from [172.16.12.69] (unknown [58.22.7.114]) by mail-m11880.qiye.163.com (Hmail) with ESMTPA id 9E6AA2020F; Tue, 13 Dec 2022 10:24:43 +0800 (CST) Message-ID: Date: Tue, 13 Dec 2022 10:24:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Cc: shawn.lin@rock-chips.com, Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v1 2/3] mmc: starfive: Add sdio/emmc driver support Content-Language: en-GB To: William Qiu References: <20221207131731.1291517-1-william.qiu@starfivetech.com> <20221207131731.1291517-3-william.qiu@starfivetech.com> From: Shawn Lin In-Reply-To: <20221207131731.1291517-3-william.qiu@starfivetech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJSktLSjdXWS1ZQUlXWQ8JGhUIEh9ZQVkaTENCVh5DHUgdTRlCHUMdQ1UTARMWGhIXJB QOD1lXWRgSC1lBWU5DVUlJVUxVSkpPWVdZFhoPEhUdFFlBWU9LSFVKSktISkxVSktLVUtZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Oj46Shw*Vj0vAk4OGTgeIiw5 LUsaCzRVSlVKTUxLQ0JDSUNPSElIVTMWGhIXVQgTGgwVVRcSFTsJFBgQVhgTEgsIVRgUFkVZV1kS C1lBWU5DVUlJVUxVSkpPWVdZCAFZQUlCQ0g3Bg++ X-HM-Tid: 0a85094c758b2eb6kusn9e6aa2020f X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_WEB,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 2022/12/7 21:17, William Qiu wrote: > Add sdio/emmc driver support for StarFive JH7110 soc. > > Signed-off-by: William Qiu > --- > MAINTAINERS | 6 + > drivers/mmc/host/Kconfig | 10 ++ > drivers/mmc/host/Makefile | 1 + > drivers/mmc/host/dw_mmc-starfive.c | 197 +++++++++++++++++++++++++++++ > 4 files changed, 214 insertions(+) > create mode 100644 drivers/mmc/host/dw_mmc-starfive.c > ... > + > +static unsigned long dw_mci_starfive_caps[] = { > + MMC_CAP_CMD23, > + MMC_CAP_CMD23, > + MMC_CAP_CMD23 > +}; > + .... > + host->priv = priv; > + > + return 0; > +} > + > +static const struct dw_mci_drv_data starfive_data = { > + .caps = dw_mci_starfive_caps, > + .num_caps = ARRAY_SIZE(dw_mci_starfive_caps), use ".common_caps = MMC_CAP_CMD23" instead. > + .set_ios = dw_mci_starfive_set_ios, > + .parse_dt = dw_mci_starfive_parse_dt, > + .execute_tuning = dw_mci_starfive_execute_tuning, > +}; > + > +static const struct of_device_id dw_mci_starfive_match[] = {