Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2546056lqb; Tue, 28 May 2024 03:27:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHxIRPcNm8OkLAqG1tOOJsAuFCVQIqWlGfP6tP8rFCuFwxBwWZ28ANDt2/2LfROFxIQqJDpW6ZFYMJXqioWr573u1TMbAO2Ko0iA/Y2A== X-Google-Smtp-Source: AGHT+IFkM8emMXnGXmG3rbxSI5iB/DTgjcSNLVqdOHV4PVmuGcAGOoZ7lAgjN5NFXrIofUo7Ke1A X-Received: by 2002:a05:6a21:1f24:b0:1b0:25b6:a749 with SMTP id adf61e73a8af0-1b212e1711cmr10676666637.48.1716892037915; Tue, 28 May 2024 03:27:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716892037; cv=pass; d=google.com; s=arc-20160816; b=gAalHMYNcLnTFeF7PJSHR0Gy+zp/YNDBkfMWnBIzAys2gOY/8DmZwv15CNJuKrGSyD BqaOgtbS57Y8TU4tgDlGXbtziP4weNCptPok81rK5/QaPon8TzOiV8fY+TIg+6xjM9A/ CCCQGMWQZL8nX3VFQ0XBYn0+qGsvIQq9V0iP/lLnSJcaC9vgsXRqmDet1vcX86RUT6f2 W+FHQA6yhiW6v/U+c2LPi4qg53+xMRX72h9COpJ2fu0bxjXA0o/NCBqIavjctl5XFYGp wxOD7Qy6i40+qaD1LJYnOdCWAcHFukwkmGhPcQVURMxEn/k/unO5K53JXTlNjIxqAcRK Fmlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=B3hlSGj9tlV2PFBWeyogAJDJM1CFXedWNa32YxONU9Y=; fh=dTzYUhEr+9p53N3NaI9c1byX4h6v+RpdlLGiT2o3Ed0=; b=s77NeQllcOVK/X1LJ/d5uwfLstps4VfMvAosH8mRFCHIqpwE2FTiajrmzyJH/dLqGs qpGPFzEmSUePhZcJVy9cH8lZRSNl3GpXzW/Q2uMcPcYgwjmjFCmJuFyaNHn9x3+7gdAM prxNBhDeq9FDT44hxN9gfHrqnJTICgpt1DocipNrJuvw4314jl6plK3QB9yWN4rnEniu xK9hQiLj9lKyv4wZ86e8ljHTE2iqmf1sNFIcl3tRv7cPzxcLJbn88gVWIGZ1aRicdbuA JoczZAfeHUvRxIg3bnSMwykSJdEPGq5aBiYi2hF8FiqWuOGnCfwX9TbAWxXNJt3PMuAJ 2lbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tFrT9xP9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fd8e04ecsi7617278b3a.311.2024.05.28.03.27.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tFrT9xP9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5316A289DEB for ; Tue, 28 May 2024 10:22:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B62DB16C451; Tue, 28 May 2024 10:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tFrT9xP9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C3D3D1667FE for ; Tue, 28 May 2024 10:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891668; cv=none; b=VP2Lttuo9jOT9he2EaL53yTNN0IMCEqE8EDyO4L9OndXvLaSM0bWkUhI9VCwTLJzNohbQX5hqWNX3cyYUFj8AbJY2dk/4SGMThKm1bx33/Sf0urFiOo4LqCP7PfFbYs9h+i36JrltGo/zOuVblCnJU1zdw+NwNd5Hc3ssm6z4FA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891668; c=relaxed/simple; bh=5vFNElkdAUyolYsOKXvEn8wCDhpVG0vf+KTOYWYGHRg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=arLC35wg6Z3tUQoB5Kxw3233TJQAo3UNxayA983bE59ckBb2Zzct1KK1T7GoCyLiMm/XLyglYVz+Tc8wr8LuRo7WmA3ZCubQdwsSN/oLYdCa5c14mV4fyY39WSfMIRj8nWF4i3nrM1FJubGIcXrLaSbcTpvmun6logPXei26+tM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tFrT9xP9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70F8EC3277B; Tue, 28 May 2024 10:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716891668; bh=5vFNElkdAUyolYsOKXvEn8wCDhpVG0vf+KTOYWYGHRg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tFrT9xP9ODXnXrXSB8j5uw+Qrgvt8m9hlAz8Nvwcon4f/58q6ocO/keRapJLTAMCL cWTqZubo4PJXQcIBe7eo+7uN0WLw5zyct7gdM7KMdJu9S22Ogw/MqmNPXnthMSxvq4 unEu1UbRq0xbl/tXNZsTpENpeMyqAgJsArdLQbG/Y8qmIA+Er9c8jqwtncXJn02cck 8HZd4caZLFcduTkfQ8eJqBnalIHqXpWQbFfESn6lUbbxYCj2VUH8RvdNwbYi29t+uY TcUaKh0SFN3BJPACBUemnopxs4siptPpRgwWROftUeuXqubglRfB3HI0suJOMOGu1A 2KCJu76RpOH5w== Message-ID: Date: Tue, 28 May 2024 12:21:02 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] memory: fsl_ifc: Make FSL_IFC config visible and selectable To: Esben Haabendal Cc: Tudor Ambarus , Pratyush Yadav , Michael Walle , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org 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> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUf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5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <87y17ul0cb.fsf@geanix.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > >> 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. Best regards, Krzysztof