Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2575545rwb; Fri, 9 Dec 2022 04:02:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5F7QB7CL3wPm8RtZOqVg7HX/pOsaBK4sDJYMX9dHm66EuLXFidIbPMfc6tV/AFtQGlazxl X-Received: by 2002:a17:903:2349:b0:189:9311:d1fc with SMTP id c9-20020a170903234900b001899311d1fcmr6676842plh.9.1670587328108; Fri, 09 Dec 2022 04:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670587328; cv=none; d=google.com; s=arc-20160816; b=yGo32yDmRTbtIc403siMa2HHKxORsgIjMzEYKCey9MxndF5FfMafVPSgJgU/H0Hpkk WNru62Ue6Bfo5WFsfAR1IcnkzX2dz/Ix7668YiBhe97XjSMDCH6MRzXnL9YWKpj8tiEM 7F/f2cMfgeyMBOPzyBkStzhacYgiv1CHfKl69QhswPbonr0KlN/LnZTDGzZlLQG89iHN cHB5W7hnyYew3t61W0U1ntukkKhGGKHh5oA66pkd67x2gF/PtCxVPiCf3mD+cky5I3an dUbctMp22KP8W7KeHkVBm0yeA2MHBDRzEiRmxGDr6vuxe3LdyacW8RTjAXUTcI6spxkP +jZQ== 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=cJlz98NagWGiwh6J0uQok+89JrN5r++jPNZooDOCu0E=; b=pzkNXSFQ+bTxzAeV4UFrLzbIXLnRo1XnpOnT3IFZArLA2/xmS1bm1jVe+5PWLGxqfZ AOiS9lt0QMsCF3nSnvrIszmnksHA4bBp2GfzqVfFFC5/MBYOyqzW5b9rjDXpzf0uQ4Ez mhwYCGEnDqwc0M9W+MntpAg28q8uJ4Kqyjd5JDmSeiIs513YhfDjZU0GO5lmbv2y76SI fB3pSNLTnRyZQbT3JL3cLLtoUAxWQlc9/uxsF8fYZjYCqzRuW4sVo0OZ0/kA+FKUxSEU emBKRudAI10SF+Hoq6xyWrZCRlAQygZdaQSVAAyon+sP5Kuz9mBWEQk7NQQVLQEJhW4Q QjEg== 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 mq16-20020a17090b381000b00219846484cbsi1704528pjb.176.2022.12.09.04.01.57; Fri, 09 Dec 2022 04:02:08 -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 S229976AbiLILbc (ORCPT + 75 others); Fri, 9 Dec 2022 06:31:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbiLILbO (ORCPT ); Fri, 9 Dec 2022 06:31:14 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6483773F41; Fri, 9 Dec 2022 03:31:10 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1E28F24E234; Fri, 9 Dec 2022 19:31:09 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 9 Dec 2022 19:31:09 +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; Fri, 9 Dec 2022 19:31:08 +0800 Message-ID: <8c40646b-3422-c2f5-49c3-60a2beefbcff@starfivetech.com> Date: Fri, 9 Dec 2022 19:31:07 +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 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 EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.2 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/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 will use #define in code instead in device tree. Thank you for taking time to review and provide helpful comments for this patch. Best Regards, William Qiu > Yours, > Linus Walleij