Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2646622rdb; Tue, 12 Sep 2023 08:06:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwTRzDrPKxrcqf6KTsUG6wPmQr+mD0r/5BBeXljvhmdMRzEbk2YxXomvJ0/JlGw/7CjMy8 X-Received: by 2002:a05:6a00:811:b0:682:4c1c:a0fc with SMTP id m17-20020a056a00081100b006824c1ca0fcmr15820pfk.19.1694531176317; Tue, 12 Sep 2023 08:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694531176; cv=none; d=google.com; s=arc-20160816; b=oqPVA5VKCH8ryWDE8D/5IwZReXR4p//QuHAuE74hdKCndZe8CCi7EIQSL7HbZemjKj 6pfvRxW2SPzIGTFxf4oA8JWSVb4rpbs1eehMRotiT29y/TVZ27+QkaC318korJQ6V1AX /CRNoVKaF5fPnd4GZFaiwMum32AN2gKFbQC2t+ur4AEJCEGgYhvNsnSubXdpps58jImx KryLjunlXGrZqgIyX3G4j1igyQOf6yh0Tqvfuef2yaCFkIzWI14v0HkpZQLlDKB2wshg lPPYER2zfJVaT9qN4yLShctbPgk8iMs4XS0OM+YhzCNFlJgBfu92OY1bttl5whMS2RR5 N4oQ== 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=qt0bH6qGYM6gqPtL9duqzvd+l+mtuxsxYBJLc9QLA1I=; fh=kknoixreiexkqO6PNC1RRFLPwMnKtd1ZfMwBb1jNuFc=; b=FwdOEX+KGJEDOuWaRkiz2nAJXYZKnUvE3bD2I9Syj1bTECGAoEhudT6isMXe3DcZIk Ru6IZg2OfBbx5cluq4QJ/YtZV1IqcKIUD67uLrFbL/ZEDFNR2VF4gzq8dGAR9Y48qDlX yMMwZnwsHU+xCBzpvCZq5H5IG47nnVNXt6nxqPmVO5wBwfWVaJNgDbVFKeYg9H2CoYva FCnmhNHHSxhe0McbbJcmjB/XTHoLBlsrC2qj4uZ37iw7MnlhLmnjiDbpI46mnZC2FT8p /qFA5wEdgL9JaW7+ttWOMdnXODUn32zmBTYxgKHvnQxRBq8uNGBzZSzchSuTK/Y2+lGZ vOCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id e23-20020a63db17000000b00553ced07cf8si4611507pgg.215.2023.09.12.08.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 08:06:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B91FC867F1F0; Mon, 11 Sep 2023 21:50:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232181AbjILEWE convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Sep 2023 00:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233019AbjILEVz (ORCPT ); Tue, 12 Sep 2023 00:21:55 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645F645A83; Mon, 11 Sep 2023 19:00:31 -0700 (PDT) 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 0D38324E267; Tue, 12 Sep 2023 10:00:23 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 12 Sep 2023 10:00:23 +0800 Received: from [192.168.120.76] (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 12 Sep 2023 10:00:22 +0800 Message-ID: <5e7b00c2-7579-04b5-2d37-249ed30ca668@starfivetech.com> Date: Tue, 12 Sep 2023 10:00:20 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v1 1/3] dt-bindings: mmc: Drop unused properties To: Conor Dooley , Emil Renner Berthing CC: Jessica Clarke , Conor Dooley , Krzysztof Kozlowski , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-riscv , , "Emil Renner Berthing" , Rob Herring , Jaehoon Chung , Ulf Hansson , "Krzysztof Kozlowski" , Conor Dooley , Paul Walmsley , "Palmer Dabbelt" , Albert Ou References: <20230830031846.127957-2-william.qiu@starfivetech.com> <20230830-commence-trickery-40eaa193cb15@wendy> <20230830-procedure-frostbite-56c751f7c276@wendy> <20230901-remold-sublease-a1ddb1fc6348@spud> <9EF26965-10E5-4BCA-AC5E-93C5AA55A0DF@jrtc27.com> <20230901-affected-wanting-ab517791a870@spud> <20230911-implosive-shrill-506d18d9bde2@spud> Content-Language: en-US From: William Qiu In-Reply-To: <20230911-implosive-shrill-506d18d9bde2@spud> Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:50:53 -0700 (PDT) On 2023/9/12 0:14, Conor Dooley wrote: > On Fri, Sep 08, 2023 at 03:32:36PM +0200, Emil Renner Berthing wrote: >> On Fri, 8 Sept 2023 at 12:03, William Qiu wrote: >> > On 2023/9/2 1:43, Conor Dooley wrote: >> > > On Fri, Sep 01, 2023 at 06:20:38PM +0100, Jessica Clarke wrote: >> > >> On 1 Sep 2023, at 16:42, Conor Dooley wrote: >> > >> > >> > >> > On Fri, Sep 01, 2023 at 10:33:13AM +0800, William Qiu wrote: >> > >> >> >> > >> >> >> > >> >> On 2023/8/30 16:34, Conor Dooley wrote: >> > >> >>> On Wed, Aug 30, 2023 at 09:29:20AM +0200, Krzysztof Kozlowski wrote: >> > >> >>>> On 30/08/2023 08:50, Conor Dooley wrote: >> > >> >>>>> On Wed, Aug 30, 2023 at 11:18:44AM +0800, William Qiu wrote: >> > >> >>>>>> Due to the change of tuning implementation, it's no longer necessary to >> > >> >>>>>> use the "starfive,sysreg" property in dts, so drop the relevant >> > >> >>>>>> description in dt-bindings here. >> > >> >>>>> >> > >> >>>>> How does changing your software implantation invalidate a description of >> > >> >>>>> the hardware? >> > >> >>>>> >> > >> >>>> >> > >> >>>> Which is kind of proof that this syscon was just to substitute >> > >> >>>> incomplete hardware description (e.g. missing clocks and phys). We >> > >> >>>> should have rejected it. Just like we should reject them in the future. >> > >> >>> >> > >> >>> :s I dunno what to do with this... I'm inclined to say not to remove it >> > >> >>> from the binding or dts at all & only change the software. >> > >> >>> >> > >> >>>> There are just few cases where syscon is reasonable. All others is just >> > >> >>>> laziness. It's not only starfivetech, of course. Several other >> > >> >>>> contributors do the same. >> > >> >>> >> > >> >>> I'm not sure if laziness is fair, lack of understanding is usually more >> > >> >>> likely. >> > >> >> >> > >> >> For this, I tend to keep it in binding, but remove it from required. Because >> > >> >> we only modify the tuning implementation, it doesn't mean that this property >> > >> >> need to be removed, it's just no longer be the required one. >> > >> > >> > >> > Please only remove it from required if the current driver doesn't break >> > >> > if the regmap is removed. >> > >> >> > >> Either way please make sure the documentation clearly states “never use >> > >> this, if you’re using it you’re doing it wrong, this only exists >> > >> because it was wrongly used in the past”. Otherwise people writing >> > >> drivers for other OSes will probably use it too thinking they need to. >> > > >> > > Maybe we should just delete it if the impact is going to be negligible, >> > > sounds like you're not using it in FreeBSD, which was part of what I was >> > > worried about. Guess it depends on what Emil & the distro heads think. >> > Hi Conor, >> > >> > After discussing it with our colleagues, we decided that deleting it was the best >> > course of action. Since there will no longer be a related implementation of >> > "starfive,sysreg" in future drivers, even if the dt-binding is described, it will >> > be "never use", so I think it should be deleted. >> > >> > What do you think? >> >> The device tree should be a description of the hardware and there >> really is a 'u0_sdio_data_strobe_phase_ctrl' field in the sysreg >> registers[1] on the JH7110 that seems to do _something_ related to the >> sdio interface. So I don't think the fact that the Linux driver no >> longer uses it is a good reason to remove it, but if there are some >> other pragmatic reasons to do so then I'm fine with it. Removing it >> from the list of required properties should be fine though. > > SGTM. Can you update the patch to do that please William? > > Thanks, > Conor. OK, I will update the patch as suggested by Emil. Best Regards, William