Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFA4AC433DB for ; Mon, 15 Mar 2021 12:09:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A984564E76 for ; Mon, 15 Mar 2021 12:09:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbhCOMIe (ORCPT ); Mon, 15 Mar 2021 08:08:34 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56792 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbhCOMIX (ORCPT ); Mon, 15 Mar 2021 08:08:23 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lLm1A-00B6Bw-Sf; Mon, 15 Mar 2021 13:08:16 +0100 Date: Mon, 15 Mar 2021 13:08:16 +0100 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Gregory CLEMENT , linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH mvebu + mvebu/dt64 4/4] arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file Message-ID: References: <20210308153703.23097-1-kabel@kernel.org> <20210308153703.23097-4-kabel@kernel.org> <87czw4kath.fsf@BL-laptop> <20210312101027.1997ec75@kernel.org> <20210312161704.5e575906@kernel.org> <20210315101454.dpyfdwk43poirxlw@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210315101454.dpyfdwk43poirxlw@pali> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Mar 15, 2021 at 11:14:54AM +0100, Pali Rohár wrote: > On Friday 12 March 2021 16:53:32 Andrew Lunn wrote: > > > So theoretically the turris-mox-rwtm driver can be renamed into > > > something else and we can add a different compatible in order not to > > > sound so turris-mox specific. > > > > That would be a good idea. And if possible, try to push the hardware > > random number code upstream in the firmware repos, so everybody gets > > it by default, not just those using your build. Who is responsible for > > upstream? Marvell? > > > > Andrew > > Hello Andrew! > > I do not think that renaming driver is the best option. For future it > would complicate backporting patches to stable kernel and also it would > make usage of 'gitk' harder as this tool cannot automatically track file > renames. Hi Pali I'm not suggesting renaming the .c file. What would be good is to add additional compatible strings. Add a more generic compatible. What goes into the .dtsi should use the generic name. Also, the node names should also be generic, since the node name is probably not used anywhere, just the compatible string. Keep the current compatible in the driver, for backwards compatibility with older DT blobs. Andrew