Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7966204rwb; Mon, 12 Dec 2022 23:40:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4VtqhNeTN5JCztuuykWmPioxanblAglI6L1SJbokxSvWEGHEOdMfKgBoUMMI/xh2TRYSVI X-Received: by 2002:a17:90b:3689:b0:219:c890:abda with SMTP id mj9-20020a17090b368900b00219c890abdamr19985041pjb.40.1670917202601; Mon, 12 Dec 2022 23:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670917202; cv=none; d=google.com; s=arc-20160816; b=x1/RQVT3vOjqtqdTFBM19S46FNTfB+7N1SxbwwQApqgiXM2ERpnoTf+n0QVbJwJ64m wpk/p3rHu/uOggp6i2HRSjRCzYg5Diekd7WoIzNgDHF7yZh5PrNkAYSXNLdCuC+AK+u1 lTTxmUIBIbfe9Y+AkunHhDyrcNpAiIO1el1HbDWHoeXZZ9J94af9e00lPq/VVMUfFQnv SnXm3auWZxx3KMTmQQHWtYXZkOG5Ll7AxqV4obFS4mmTP0kJztUFHOD3bGZFytBLQtqx OXQysvsl63atA4J+1VNbKJsTMGMD/wcJ9kMLJXrxD9pptx03lGyzd6gzVsMTw/t9m+eh HgVA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=0mhzueMB3kAAc0j4vMv+AKuMR89nYBTXh/gc3NFw760=; b=gkpgSExC6H28tS6mlaw0XWNp142o2SbBjs/kmhLyUnssYn8pflwXpSJ/9SseoNyXe2 m+J/EJ8pAuGfEvSPZeOezds8iWKH7OUDShWvdSxSA9yl+Z/B+C+0+yjJQ7uW5TIpP8Ws OBw3CKUYPT8JicoshbzJ57lIOJfNC43tuBnikTrPOTQCTGLEeSkFvcrLzz7ZgjO8T/ja 6aU+S2/Z8xQPeVMe+wFlbGIFI9YPg0vi26Dw5HuXZ7bghkS0dY7q2moi1Wyh2XG8kxIA TFIApj7xbBEr1h324D0stepnkhL25Ms9rR/uCgIVUO22yIrfEBe44rJePoDqBY6/LjCJ b1vQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mu18-20020a17090b389200b0020dbb8f3695si13235258pjb.172.2022.12.12.23.39.52; Mon, 12 Dec 2022 23:40:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234646AbiLMHVr convert rfc822-to-8bit (ORCPT + 74 others); Tue, 13 Dec 2022 02:21:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbiLMHVp (ORCPT ); Tue, 13 Dec 2022 02:21:45 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC60517E20; Mon, 12 Dec 2022 23:21:39 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 3101E24E0D8; Tue, 13 Dec 2022 15:21:38 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 13 Dec 2022 15:21:38 +0800 Received: from [192.168.120.55] (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 13 Dec 2022 15:21:37 +0800 Message-ID: <26e9c3eb-aaeb-8cbd-dda0-20f28331dbeb@starfivetech.com> Date: Tue, 13 Dec 2022 15:21:36 +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 Subject: Re: [PATCH v1 2/3] mmc: starfive: Add sdio/emmc driver support To: Shawn Lin CC: Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , , , , References: <20221207131731.1291517-1-william.qiu@starfivetech.com> <20221207131731.1291517-3-william.qiu@starfivetech.com> Content-Language: en-US From: William Qiu In-Reply-To: Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 2022/12/13 10:24, Shawn Lin wrote: > 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. > Hi Shawn, Thank you for taking time to review. The .common_caps is not defined in dw_mci_drv_data. And .num_caps is also used in dw_mci-rockchip.c. Best regards, William Qiu >> +    .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[] = { >