Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2559538lqb; Tue, 28 May 2024 04:01:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXT64Jzi8G8o/O6bWT59/GbLMyTx3z3HbBrDdKPYTnGqd2SgQ3/i6VT0vf60VTpCcKbHAuDPHMJZRaRw7DaNRqkLVKKhx+tgTnrRAq+tQ== X-Google-Smtp-Source: AGHT+IGCOiG6eFbzriSm7Kqrqp8j+KqH0WdRHUZWSiCSAyEnny3pZKskmjvxgWivsskxhZ1kzcOg X-Received: by 2002:a05:6214:4b08:b0:6ad:63ef:449b with SMTP id 6a1803df08f44-6ad63ef49d1mr106739046d6.8.1716894089942; Tue, 28 May 2024 04:01:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716894089; cv=pass; d=google.com; s=arc-20160816; b=Q/Xpn2kNSwltIYElIUh1T8cTSss3Ykj11tiPMbbKpfki1/UzNJ/HpZ+qOLERzrhuRj oKjNVgHS366nWy1Dy8SSGmPMmlRNU5654WteNJMOpdI5GR8HmhdCnR0DgOYMi8kra3Z+ WTn2uws7xLY3NXnPtQrmyeNY0jhpjCtJZ3wQvDlTYWCO6PJ9cUPHC/fkPTy44jBC9/wv 9LaRNyBKtD3cc6P87sVEj4BBLO9xbhnUD2PBklQMO4M0VeuTc0l13jWdOrv0YNORbP9/ 0eIzVddFh60z1wYUVsYGaMsJLEbtZCmgJc8yZ+vLE7doiXrpOk3QGwTrHTKsQGNwQFi0 Li9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=Hs/HaD02iDeto1uLspqeiJWInIgpGjlvaek2azNHp58=; fh=FkEzoF/OqKPqe1ZeQ4GfGCEqUKbTvG5n5Ug+OywYCuA=; b=Jo1+Dig+v1LkN8pHC3idcB387yGfF2XhjF7qCeWCNrX/cyvFWOwDZt/AvoelltVv+w F+0StfcX0fDvnN8nobrQqrs0wV2NlhRg39J0TY4PzFAKAmp0RuD9Bux7aMDG29eb9Hrn sbIFiK3Ae063M7SJ2jjewGD2L++fwouQ9ybzWpPbwBIkxSdMiziBihvyJxMNU+6x0V6j VTLoE/XfCuvR1DzG607eAO8awLN52hZhmtrOPVJT2/FbP+IXXMjhKXWiIooPU1ytGDx9 S8UunqxhWmleXhGG5qW0crECmnH2JbhsSij6ADGytD25oCGpVHq4G6EU30BUSXO46EkK rCRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=Pe8RHyiH; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-192145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162ce5e9si109713766d6.560.2024.05.28.04.01.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:01:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=Pe8RHyiH; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-192145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A98671C22AA6 for ; Tue, 28 May 2024 11:01:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D38614373C; Tue, 28 May 2024 11:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="Pe8RHyiH" Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AA0F1D53C for ; Tue, 28 May 2024 11:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716894084; cv=none; b=Qw+3tYJqRIynqIJvhxAWHRJHFUQj06HUJy3qMu0D9iHDIUZBM2P4IXzcOPvXzyQFGJTkEIqXq9WRNzS2WfdW13gvaQ6jQntjqIqAYETCNkzIM2zCdcjYmNKnClmK7m9DrhmYneoGAnQxsxuEQ7ovJGs7TO+IhVj1nA5DWD8qNRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716894084; c=relaxed/simple; bh=qHBg++ZXUpCyhoDHP9xsGXpvWY1GcL8iyx14Q9IhRGw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=UhmkJIaeIWGJvFgLQkfmZS8FRrjWa1ZrqZ0VO1/g63+2EnKNJihr4g9KrfwqBoW8WIAiBfrCWhBszwGBK/VyEXQtLfToy23mMhPYZYEE0H8kDCuKHvvmBqGYWkPFHqoJJicDscqMWBBdamIDK6rLgve3NqGwAsoSTQoucf7H68Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=Pe8RHyiH; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=Hs/HaD02iDeto1uLspqeiJWInIgpGjlvaek2azNHp58=; b=Pe8RHyiHjJYpdVm8fFoeYeRPkS 3xkMMMGxye0zx+UtVGsa64mID/7Afu8Td7szz69x6LWa+osV9j5lKjZS7UEKaKuH39HTthO8lh2WZ BWZw/TCFkjOgBQpRcVsQwh5iyY+3FrHLc1d7+PCpC17S8lnuEAqopJ3VtwSOaPRvydmS8Zk2K/kF/ BgDY6YL5aRzQe4W6n7mABxANtdo5EowU8Tft/ND0T/LUtahPJiBmagekAtGqdnjut7BnUpMffWCWQ t9wkjbaDvLC1kfIq67FXTuLdIMlZWmNoNt8z2o3DBZkyXrpXPayG1LRs0wmBW8cC94+dpP0rsoK0x 5kWplkaA==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBuZy-000PLs-Td; Tue, 28 May 2024 13:01:18 +0200 Received: from [185.17.218.86] (helo=localhost) by sslproxy01.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sBuZy-000AHn-2B; Tue, 28 May 2024 13:01:18 +0200 From: Esben Haabendal To: Krzysztof Kozlowski Cc: Tudor Ambarus , Pratyush Yadav , Michael Walle , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH] memory: fsl_ifc: Make FSL_IFC config visible and selectable In-Reply-To: (Krzysztof Kozlowski's message of "Tue, 28 May 2024 12:21:02 +0200") References: <20240523-fsl-ifc-config-v1-1-6eff73bdc7e6@geanix.com> <979fd913-050b-445d-9ca8-0ec6906ce3ea@kernel.org> <87cypc38gu.fsf@geanix.com> <9a7f73f4-f5dc-4342-855b-08df6a839bb5@kernel.org> <87le3zoatn.fsf@geanix.com> <6c166ad5-8004-4bc4-9107-a47ba9a72161@kernel.org> <87ttijaglp.fsf@geanix.com> <87msobaes6.fsf@geanix.com> <87ikyzae7v.fsf@geanix.com> <87y17ul0cb.fsf@geanix.com> Date: Tue, 28 May 2024 13:01:17 +0200 Message-ID: <87plt6kxoi.fsf@geanix.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27289/Tue May 28 10:30:59 2024) Krzysztof Kozlowski writes: > On 28/05/2024 12:03, Esben Haabendal wrote: >> Krzysztof Kozlowski writes: >> >>> On 27/05/2024 09:47, Esben Haabendal wrote: >>>> >>>> Ok, I seem to still be confused as to what you want from me. If you are >>>> saying that the kernel is not supposed to care about out-of-tree DTS >>>> (and thereby any bootloader provided DTB), I would like to bring your >>>> attention to arch/arm/boot/dts/nxp/ls/ls1021a-twr.dts in upstream: >>>> >>>> &ifc { >>>> #address-cells = <2>; >>>> #size-cells = <1>; >>>> /* NOR Flash on board */ >>>> ranges = <0x0 0x0 0x0 0x60000000 0x08000000>; >>>> status = "okay"; >>>> >>>> nor@0,0 { >>>> #address-cells = <1>; >>>> #size-cells = <1>; >>>> compatible = "cfi-flash"; >>>> reg = <0x0 0x0 0x8000000>; >>>> big-endian; >>>> bank-width = <2>; >>>> device-width = <1>; >>>> }; >>>> }; >>>> >>> >>> I don't understand why it took so many emails to answer that (my first) >>> question... >> >> Because I did not understand the question. Primarely because I was (and >> is) surprised that out-of-tree DTS is not supported. I was convinced >> that out-of-tree DTS was the right way for hardware which is not >> commonly available. > > Even some non-GA hardware could, and IMHO should, be upstreamed, at > least some parts of it. This gives the user/upstreamer reason to do > changes. Otherwise you might get questions for contributions: why you > are doing and why this is worth? > > Downstream or any fork is not really answer to such questions, because > they are allowed to make whatever stupid choices they want (not saying > it was done here, but in general), which should not be a reason to do > anything upstream. If downstream creates wrong DTS files, shall we > create wrong device drivers or bindings for them? No. Of-course not. But to be fair, in this case, there has not been any new bindings created, and no creative usage of existing bindings. Only straight forward usage of existing drivers (IFC and physmap MTD driver), which I am surprised no one else had seen the need to fix in upstream. But do you/we really want to open the flood gates for DTS maintenance of a gazillion embedded boards that only a few in the world have an interest in? I suspect it would create quite a lot of patches to flow through maintainers, with very litle benefit to most people. But for me (as in the companies doing such these kind of embedded hardware), it is a clear benefit to put upstream DTS files. But what about boards where device-tree is created/modified dynamically by bootloader? Is that also not really supported? >>> Sounds good, however you did not update the existing select. >>> Drivers are not supposed to select user-visible symbols (leads to >>> issues), so you need to change it to depends and update defconfigs. >> >> Do you wan this split into multiple commits, or a single commit changing >> the Kconfig to make FSL_IFC user-visible, and changing select of it to >> DEPENDS, and updating the related defconfig(s)? > > One commit for Kconfigs (nand and memory), additional commits for > defconfigs, one per each arch, because defconfigs might go via arch tree. Sounds good. I will send a v2 with that. /Esben