Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3054903rwb; Mon, 16 Jan 2023 03:09:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtxKj66IZ31FD5RMCiQzv9PKgHAXZT1jj9LVH649FmWVo6zYIVGDmeFg4rKflzuUAmUu/Fb X-Received: by 2002:a17:906:28d9:b0:86f:5375:9f5d with SMTP id p25-20020a17090628d900b0086f53759f5dmr5072319ejd.1.1673867359475; Mon, 16 Jan 2023 03:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673867359; cv=none; d=google.com; s=arc-20160816; b=qNrJfWWswV5NNy0FMg0uzMpzSku1cVksBHJwq6xCHHD5kuoVeM7QwqR1sQXtC1FmO4 4VksArkutaDAxjBvimmykwbXi4G4QNMz9PuYBI6oz4phX3lYU7E77SwUEMqV2j8JABId fTC8ADxzNK1uSlJE3YC2rnwtt6mTXUd4TcEPk9BlM424K2gyckahK8j83JrZofb+mCuR 9nVVJW9MV+C/92GaiTWLtHMG0dA32E//S2BqUUiKJ80gKUhHBrjtSqGhQZK8lVLo1MaQ 5x3yiIpp4FsaIyej3pAVUluGH4QN7Qm11jXb59yK9OPgXKU3YZCYkuTjO5V41IvRB82k JwZA== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=pxWlqGZoKdbydRiQ7JxHPFYX/7SeG77EiU4aJJ3TIXs=; b=bfMYJlvkLAGAS6sn7WI+Ak+BIrLwpjmhybxj3/WjtiWBWb2c03wLvcsg4LZ7rUytXm LW3pZS4uG7y3JCaeZPs1WX0n7cbkbiMd9J3aWa/tJoWk5mW5+7FoxHvAl8qaqVZAZ54y v3gdacxMmgoQtnMyNJGRzH/o3snQzshxxAEF+xWUhY3fY1GrzHEy2rspGr1NKfaETkhZ 9UQJvFb01wQqyfpO1W2rE1hmCUZmFnxDBRPtSUr1huujqEX5KkgPDuO2vJHdjeZFTO1F 6JdCABY7c83qc1ZEApuBurnXe278opk6dBgM0Uv8wR7Hb++lKcqMKN3KL3RjJyPIs3Vb M6GQ== 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 sd42-20020a1709076e2a00b007be97d37b29si8368060ejc.104.2023.01.16.03.09.03; Mon, 16 Jan 2023 03:09:19 -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 S230179AbjAPKPH (ORCPT + 51 others); Mon, 16 Jan 2023 05:15:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjAPKOc (ORCPT ); Mon, 16 Jan 2023 05:14:32 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D66AD1C30B; Mon, 16 Jan 2023 02:13:26 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 51ECD24E02F; Mon, 16 Jan 2023 18:13:24 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 16 Jan 2023 18:13:24 +0800 Received: from [192.168.120.55] (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 16 Jan 2023 18:13:23 +0800 Message-ID: <899cbd21-1ac9-682e-7d07-f8a3c49d4504@starfivetech.com> Date: Mon, 16 Jan 2023 18:13:20 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v1 3/3] riscv: dts: starfive: Add mmc node Content-Language: en-US To: Linus Walleij CC: , , , Rob Herring , "Krzysztof Kozlowski" , Jaehoon Chung , Ulf Hansson , References: <20221207131731.1291517-1-william.qiu@starfivetech.com> <20221207131731.1291517-4-william.qiu@starfivetech.com> From: William Qiu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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/9 5:15, Linus Walleij wrote: > Hi William, > > thanks for your patch! > > On Wed, Dec 7, 2022 at 2:17 PM William Qiu wrote: > >> + starfive,sys-syscon = <&sys_syscon 0x14 0x1a 0x7c000000>; > (...) >> + starfive,sys-syscon = <&sys_syscon 0x9c 0x1 0x3e>; > > These are registster offsets and shifts. Don't define such stuff in your device > tree, use #defines in the code and just provide the phandle. > Hi Linus, I'm sorry to bother you, but as for the definition of syscon, after discussing with my colleagues, we think it is easier to distinguish SDIO0 and SDIO1 by defining it in the device tree, and the code compatibility is better. I expected to discuss this issue with you in V2,, but I am not sure whether you have seen V2, so I can only ask for your advice in V1. Best Regards William Qiu > Yours, > Linus Walleij