Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06949C4708E for ; Wed, 4 Jan 2023 14:38:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2BB068522E; Wed, 4 Jan 2023 15:38:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672843084; bh=z5Qd6al5anh8pXxWIOYKE9qt59I3oSuFpx5uss9O17E=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=L05Cq9P83JkOjxZqtIdKNHv7GwpFjA5R/L6f2w1hHvxmXV5HeKWNJpYpbzQe8UzFm wEJjSOmpvkHe8AtCqXZ6UkC9GaHuSCuP8roFg3gqqjCXrMQDK/VDPofhdSBxrt7jx4 RgcTxENfB4zBpHS9SqK2meeBUgnLFGP4l3fTkLZQ4WeSeGmT0/hDslkbv0T9SByK1J TNRaoOnoRK6QrUZgXE/QVcM44rGTsfVI1/8AewHdmWK5oKFGeJxxwZE6fsjC0HcIXP iQvoigq0Qrficsv4pP1wVa2U6lhGK4oGj4QC1F9GqQl4a2CAMsDHd4+hjI4CpwQ3FN 2GcKVJRN6rfew== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 4506280A55; Wed, 4 Jan 2023 15:38:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672843082; bh=z5Qd6al5anh8pXxWIOYKE9qt59I3oSuFpx5uss9O17E=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cbDY8sK3O8Co99sjHmCEwYdZD18z52Pk5vYj3AzIeVTCOb9rDR7pdZsQiZXIAQCFi GfiRvM5J6r0lvY/O2DvFvwp203/7ClPRSZDk6Ufk+OmKX3BCx7X1CSkqoiToFI4U+z tNomGm2quNdKeJaXuhrF0HXztTWDmFMij+1EVLWbsmnsmicPf2ybURaOkEY5uS7Bna 6adoKB+bVO6d3YdJu+Ga+bGOpSx8KweASZWzBRYWy3vyvtOnaUFEvrvAscEiA/8U9p Tv30h+2GPC70qGwEfZZ57IwFK3r/M+nh511U4p9Cge5qAlS3DiI/m0GN4Rhn92kr7W Jqc3kbzUQuytg== Message-ID: <7fade9a5-3cc3-43d2-6f4b-6928fa2d19f9@denx.de> Date: Wed, 4 Jan 2023 15:38:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2 1/9] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes Content-Language: en-US To: Sergiu.Moga@microchip.com, Eugen.Hristev@microchip.com, Durai.ManickamKR@microchip.com, hs@denx.de, michael@walle.cc, Claudiu.Beznea@microchip.com, Balamanikandan.Gunasundar@microchip.com, dario.binacchi@amarulasolutions.com Cc: u-boot@lists.denx.de References: <20230103153517.99820-1-sergiu.moga@microchip.com> <20230103153517.99820-2-sergiu.moga@microchip.com> <3bd2429a-f8b6-2ea2-7f75-54b973997f4d@denx.de> <203cefbc-866d-20e4-61fa-c9adf477e3e1@denx.de> <30542885-18f0-6896-29ec-4d218d5e8cff@denx.de> <4f593d9f-1c88-dca7-f392-09b7b49150e3@microchip.com> From: Marek Vasut In-Reply-To: <4f593d9f-1c88-dca7-f392-09b7b49150e3@microchip.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 1/4/23 11:17, Sergiu.Moga@microchip.com wrote: > On 04.01.2023 11:56, Marek Vasut wrote: >> On 1/4/23 08:24, Eugen.Hristev@microchip.com wrote: >>> On 1/3/23 18:00, Marek Vasut wrote: >>>> On 1/3/23 16:56, Sergiu.Moga@microchip.com wrote: >>>>> On 03.01.2023 17:47, Marek Vasut wrote: >>>>>> On 1/3/23 16:35, Sergiu Moga wrote: >>>>>>> Add the OHCI and EHCI DT nodes for the sam9x60 SoC's. >>>>>>> >>>>>>> Signed-off-by: Sergiu Moga >>>>>>> --- >>>>>>> >>>>>>> v1 -> v2: >>>>>>> - use usb@ >>>>>>> >>>>>>>     arch/arm/dts/sam9x60.dtsi | 18 ++++++++++++++++++ >>>>>>>     1 file changed, 18 insertions(+) >>>>>>> >>>>>>> diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi >>>>>>> index 17224ef771..4fcfb5c597 100644 >>>>>>> --- a/arch/arm/dts/sam9x60.dtsi >>>>>>> +++ b/arch/arm/dts/sam9x60.dtsi >>>>>>> @@ -69,6 +69,24 @@ >>>>>>>                 #size-cells = <1>; >>>>>>>                 ranges; >>>>>>> >>>>>>> +             usb1: usb@600000 { >>>>>>> +                     compatible = "atmel,at91rm9200-ohci", >>>>>>> "usb-ohci"; >>>>>>> +                     reg = <0x00600000 0x100000>; >>>>>>> +                     clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc >>>>>>> PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>; >>>>>> >>>>>> ./scripts/checkpatch.pl on this patch indicates >>>>>> >>>>>> WARNING: line length of 121 exceeds 100 columns >>>>>> #93: FILE: arch/arm/dts/sam9x60.dtsi:75: >>>>>> +                       clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc >>>>>> PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>; >>>>>> >>>>>> Please run checkpatch on all your patches. >>>>>> >>>>>> Also, wait a few days before sending V2 , no need to send V2 >>>>>> immediately >>>>>> while review of V1 is still ongoing. >>>>> >>>>> It was my understanding that exceeding the character per line limit on >>>>> DT's is acceptable. All of our DT's are like this. >>>> >>>> Not to my knowledge or per what is in other DTs. >>>> Is that some exception here ? >>> >>> DTs have not had restrictions on 80 chars per line. Have a look in Linux. >>> >>> Also, as we have a requirement to keep the DT from Linux, we either have >>> to patch up Linux if there is a problem in the DT, or keep it in sync >>> with Linux. >>> We may have exceptions if there is a too big amount of work to be done >>> now to change things, to have differences in term of DT between Uboot >>> and Linux. But the general guideline is to keep the DT in sync with >>> Linux as it's ABI. >> >> Linux checkpatch.pl --strict does complain about the line length for >> sam9x60.dtsi , it was demoted from warning to check there. >> >> Can you send a separate follow-up patch to U-Boot checkpatch.pl which >> does the same , so we'd be in sync with Linux ? > > I am sorry, I do not know at the moment where that change is supposed to > be made in checkpatch.pl. Have a look at linux checkpatch.pl git log , it will be there already. It changes DT line length WARNING to CHECK . > So, right now, I would rather focus my time on > updating these patch series to be good enough and only afterwards I > would take a look at where exactly I should make the change for > checkpatch.pl as well, if that's fine. Thanks for the understanding. Right, that's why I wrote separate follow up patch.