Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1695526imw; Tue, 5 Jul 2022 13:56:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uuz+6/YXXwAi2BznnnBLyXukqUEg3+i/F/BH2rm4SlbF23zrg3Un4yo1JrV2Rf0xTrwYnT X-Received: by 2002:a17:90b:3846:b0:1ef:791:efcd with SMTP id nl6-20020a17090b384600b001ef0791efcdmr45098407pjb.125.1657054585369; Tue, 05 Jul 2022 13:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657054585; cv=none; d=google.com; s=arc-20160816; b=FSL1SOEEW60ox8oXxy0kLclFbB3vyDcz7X/XeFpmxabUvehYXHR2QN43utEWNeeqJP LDuUXwyrzMObknvOqN1IcJPLBjeUZ6XazLW+KXLkANNiwFkrxPmUnEg9mqQhHUEea5r/ rGm6pZze2Llw9qSrZ0Gsm1iCJkG4KjiKaM0svjfv6Smpw1VvUEDLVor9LjoDtDH7gF1K 7Qo6L2z88isy7k8Zh7wagI5KLhoquddejZ/yzeZ3cF3j2e5sKAqRV2rFlWSslJkHeK8v g4mqplmRXTRSyBRyYnld4d6D4KWYN7ePluPDYsq00kx71spScTK6nKH/rLH3hy4yo4k4 bcKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CY9QZWDz8mKr/KSwcG9vTrjgFevFm37opIghkqWKem0=; b=YllIsyGaehRuEn3L/uqdCbdoEA3M8ORDLmpNhExIZeKIT4AYI21y0YK4S6VIEcS3ae HnGhZwtsD/cCz5wgCbVbpE70Rm4EpMBJl8YK+9+0ncspfthVI7b+N2lU4t3Sgn/H2E80 yemCuyFENLDSvuPt5y7Wzn5d91jXxKYEcz3cRHmY5BNb4Xz6Y1KDFbr8xW7aU9wDQy/c IgZtiWIcCsDXroNLqRKQFBEI5oVYKh5NS3AAa4XdJCzDznYjYXPkPURInj2nDpqY0l/2 kQUHKjV/cqno+tBkwLHLkaoedJmJV5y/XCqZW/dxz1C4dzKwiO3is6Mo031SbifeRq65 Dizw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="lwmHEE/r"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji9-20020a170903324900b00168b2d83958si4309369plb.133.2022.07.05.13.56.13; Tue, 05 Jul 2022 13:56:25 -0700 (PDT) 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; dkim=pass header.i=@collabora.com header.s=mail header.b="lwmHEE/r"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230391AbiGEUge (ORCPT + 99 others); Tue, 5 Jul 2022 16:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231715AbiGEUgb (ORCPT ); Tue, 5 Jul 2022 16:36:31 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231821C12D; Tue, 5 Jul 2022 13:36:29 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0AC7B660180F; Tue, 5 Jul 2022 21:36:25 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657053387; bh=OrwB8qOVDqFzOmPNBZc6oHWmrOYIVjhvGlY/DI5Fmbk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lwmHEE/rRolwWUxTzRAtTvFqraneOsrTub3hjYLXaYUxiqQYrpdmBj+MUr4E5kfbV elmrfnZhaM09/ZMNfJ3hs+xT3nx9DgjMZPklZIp2l+bJCUJ2iBR2YSiAAcE/FEQcy3 j0/S0tKcRLHASd1Adsa/qfkAZyPRiuEOzW8WOHP8O1g8vlkew1/E5mIIpYPdWgCyKp u7J/UHsDpavuRqlwAg4GOpnBWlVYS5nTT/qen3z3vRnxxtW3BMvvqCbWtPY00On4ka sY7J+WcNHBCEltQdD7sc1FWNRFLsHF9WypC9Of9jPxTA8cNr3RM3iznimFj3IyaNMI g1d0jZSQ5gQBw== Date: Tue, 5 Jul 2022 16:36:21 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Chunfeng Yun Cc: Rob Herring , Greg Kroah-Hartman , Matthias Brugger , AngeloGioacchino Del Regno , kernel@collabora.com, Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v2 2/4] dt-bindings: usb: mtk-xhci: Make all clocks required Message-ID: <20220705203621.hunczzwfhiwpcrhy@notapiano> References: <20220623193702.817996-1-nfraprado@collabora.com> <20220623193702.817996-3-nfraprado@collabora.com> <93c6b7201533325cf7758637dd194a372f3c00c6.camel@mediatek.com> <20220629185546.z6rn7xp3ejpmaupi@notapiano> <20220701213702.GA1591697-robh@kernel.org> <5f85280ea5fd0d4b445307a13a70c3e3fe552ccf.camel@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5f85280ea5fd0d4b445307a13a70c3e3fe552ccf.camel@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sat, Jul 02, 2022 at 04:24:12PM +0800, Chunfeng Yun wrote: > On Fri, 2022-07-01 at 15:37 -0600, Rob Herring wrote: > > On Wed, Jun 29, 2022 at 02:55:46PM -0400, N?colas F. R. A. Prado > > wrote: > > > On Tue, Jun 28, 2022 at 08:57:45AM +0800, Chunfeng Yun wrote: > > > > Hi N?colas, > > > > > > > > On Thu, 2022-06-23 at 15:37 -0400, N?colas F. R. A. Prado wrote: > > > > > All of the clocks listed in the binding are always wired to the > > > > > XHCI > > > > > controller hardware blocks on all SoCs. The reason some clocks > > > > > were > > > > > made > > > > > optional in the binding was to account for the fact that > > > > > depending on > > > > > the SoC, some of the clocks might be fixed (ie not controlled > > > > > by > > > > > software). > > > > > > > > > > Given that the devicetree should represent the hardware, make > > > > > all > > > > > clocks > > > > > required in the binding. Subsequent patches will make the DTS > > > > > changes > > > > > to > > > > > specify fixed-clocks for the clocks that aren't controllable. > > > > > > > > > > Signed-off-by: N?colas F. R. A. Prado > > > > > > > > > > --- > > > > > > > > > > Changes in v2: > > > > > - Undid clock list changes that allowed middle clocks to be > > > > > missing > > > > > from > > > > > v1 and made all clocks required instead > > > > > - Rewrote commit message and title > > > > > > > > > > Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | > > > > > 4 + > > > > > --- > > > > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > > > > > > > diff --git > > > > > a/Documentation/devicetree/bindings/usb/mediatek,mtk- > > > > > xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk- > > > > > xhci.yaml > > > > > index 63cbc2b62d18..1444d18ef9bc 100644 > > > > > --- a/Documentation/devicetree/bindings/usb/mediatek,mtk- > > > > > xhci.yaml > > > > > +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk- > > > > > xhci.yaml > > > > > @@ -67,7 +67,6 @@ properties: > > > > > maxItems: 1 > > > > > > > > > > clocks: > > > > > - minItems: 1 > > > > > items: > > > > > - description: Controller clock used by normal mode > > > > > - description: Reference clock used by low power mode > > > > > etc > > > > > @@ -76,9 +75,8 @@ properties: > > > > > - description: controller clock > > > > > > > > > > clock-names: > > > > > - minItems: 1 > > > > > items: > > > > > - - const: sys_ck # required, the following ones are > > > > > optional > > > > > + - const: sys_ck > > > > > - const: ref_ck > > > > > - const: mcu_ck > > > > > - const: dma_ck > > > > > > > > This patch causes more check warning, I prefer to leave dt- > > > > bindings > > > > unchanged, but just fix mt8195's dts warning instead, thanks a > > > > lot > > > > > > Hi Chunfeng, > > > > > > the warnings reported by Rob's bot only happen if patches 3 and 4 > > > aren't applied > > > to adapt the devicetrees. They are ABI breaking changes, but I > > > understood this > > > as the desired solution from the discussion we had with Krzysztof > > > on v1 [1]. > > > > The warnings have nothing to do with patches 3 and 4 as those are > > for > > dts files. It's examples in bindings that are the problem. Sorry, you're right, I misread the errors. > Yes, I mean almost all existing dts supporting mtk-xhci will also cause > similar warnings, as changes in patches 3, 4; > > It seems less flexible to make all clock required, not only changes all > existing ones but also need more changes if additional clock is added. Yes, that's a valid concern. I must have misunderstood the discussion in v1 then. So, I'm going to send a revert for this change and send a new patch adding fixed clocks on the dts for just mt8192 and mt8195 to fix the dtbs_check warnings. Does that sound good? Thanks, N?colas