Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2653152lqb; Tue, 28 May 2024 06:43:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7QUKp8BQxet63erT+5Cm5C+JRYKYtfC07ekDja6f73XbXhQt19Tp2jynhDPgg7QHOirMfWk76KucmL8WSnoVC1nd3mfpICiF0IUf9og== X-Google-Smtp-Source: AGHT+IEs+G2+OU4TN8dRh5GIg/b8zP8p7A5IqrKztPbgCz9aNr+L4lGkna5I6Yg2Fy7fkZfQmF3r X-Received: by 2002:a17:902:e809:b0:1f3:53c:32be with SMTP id d9443c01a7336-1f4486bc780mr140906775ad.2.1716903803128; Tue, 28 May 2024 06:43:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716903803; cv=pass; d=google.com; s=arc-20160816; b=sw7spIiF7fdXEKkTgyO5gTFXvKaFUEtrYETybCJGy6h9+mC/1ErtjbqD+rmrPkAu78 KL3E6yrOacYYxIFEZur72WEuLdyW/ZfMb7EVkbXK/PfpVk+0fYzGteKxE26Zr0iWnrAD QlUWui2k298iaC1/3mL+r+bSSYaDbYoCXkJs6WuI/HddUjvqGxWq+tragcBOgl82FwXr RPZSLNjhTGxLhKL72VEFT+JmB8TocMifM0l97hATMFFj91Pr4FTJL3KtfxP1t5xQesZ6 uQ76Re4TDgYSfbg5I8XxIipjOcuE4Z4PxkTY4MK14hgxsK0I4KpXFjHoMTpN2A+AVSkZ 3p1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding: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=vrlJg+gvxce4qVnPpoGhK+rjv8ov8o6eVLj/sB5TAi0=; fh=g01+YAywXeamg4PKxgbftjowKOgArfyfWFLv51dOkaI=; b=aM2jOq6Ylyuw30JzYplr/+eoclzSA4gu2r7pu3wjupwqMUo8lWVhdPja9uiWjSozX4 8+Y24zf7LmO/8tReKEkdRq5Vbp1IoCdRzLaD3Z7JDqCNl9kTCfFtfRqljzsWGZgeDz4U yikllQuQwCKw/Bn9DlkWCDVUayEEEjqKmN4MaPoajvR9saeWshRjhJ0P/I0cQGO++xv+ WCjgKGQYohsUHS7y8t/Rh/OzftcIBaUcULd+P1qpVCqF/RqST+ChDxNbyjurub0SrMTy jV/Oll6HABWHuycai5xn3t5PLyk7aAQzu3eZNt5fNQagN719x8uSt/RLf+JoIOtxuN/n rnng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=bK0TBYfG; 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-192441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c998a52si81929535ad.374.2024.05.28.06.43.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:43:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192441-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=@geanix.com header.s=default2211 header.b=bK0TBYfG; 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-192441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192441-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BC6AD2827D8 for ; Tue, 28 May 2024 13:43:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6907916F278; Tue, 28 May 2024 13:43:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="bK0TBYfG" 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 9AD6017C7F for ; Tue, 28 May 2024 13:43:15 +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=1716903797; cv=none; b=GRifwkpYTpXZMKaEAsrJyuN+9hd3sBVbocqbRPKKLzwxpPQQN3OQay8+XIUPBcEckCBG8eGmU6rrLFjw6VOfmPY9x5xDPN1cCJrHvHRiF/+0q/7/WHYp0QQWLCP9iGBGRAE8t7xH820Wp4tvZav+lDIzufkyVj3tfXJ3r3++3xA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903797; c=relaxed/simple; bh=vrlJg+gvxce4qVnPpoGhK+rjv8ov8o6eVLj/sB5TAi0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=IuIPL1DgS0HzTT0mtpIiDmb+QHoqZVl5H/MggCLPKKISPueHU7OrWmpksyAnWupwPTUHaK7As5pHD2tq0le720xi6rMB82FxdP0jRkppKSvsy+YUKgI3uAtL3e+sYoexviKSTffSdyGbXmZgDREmHyWbe5oP0S5h6X/YCcfugbg= 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=bK0TBYfG; 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-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=vrlJg+gvxce4qVnPpoGhK+rjv8ov8o6eVLj/sB5TAi0=; b=bK0TBYfG69Gq6mE4Z1ATMxRxh5 cD1jn5Ebio45blOl+cszvxPDr8Mr0I1fYUM3T942NiVkYED/yNwm0/0NpAgih4y/fOAURV+/Ze0ly kp6r6zMtOWZbovRQVdAiYU/44dk0suMbg4gzamSTaeajiuAlRF04iGOq6q4dAJzgh4Ed8jaxY8fuw OFp8Lk+6xZ0dSqututm9mXSOE8YR5iPDaLNoIwpOiciYpzSca6cN2R6QcK72hGXv/dTfk8rMQswhn Lq5Q1d0J8mDmK6GtAJ/fj20GvfI1HMTT0kWqHjr9JERhhFOx2npeUMmsiB8dpTQ7fw69sN8zxX4Go OyPktYHQ==; Received: from sslproxy07.your-server.de ([78.47.199.104]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBx6b-0003Op-4c; Tue, 28 May 2024 15:43:09 +0200 Received: from [185.17.218.86] (helo=localhost) by sslproxy07.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sBx6a-000KRY-1q; Tue, 28 May 2024 15:43:08 +0200 From: Esben Haabendal To: Christophe Leroy Cc: Krzysztof Kozlowski , Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Michael Ellerman , Nicholas Piggin , "Aneesh Kumar K.V" , "Naveen N. Rao" , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH v2 1/2] memory: fsl_ifc: Make FSL_IFC config visible and selectable In-Reply-To: <56f19120-7ddb-4006-99f6-e1b043ed88e1@kernel.org> (Krzysztof Kozlowski's message of "Tue, 28 May 2024 15:32:12 +0200") References: <20240528-fsl-ifc-config-v2-0-5fd7be76650d@geanix.com> <20240528-fsl-ifc-config-v2-1-5fd7be76650d@geanix.com> <56f19120-7ddb-4006-99f6-e1b043ed88e1@kernel.org> Date: Tue, 28 May 2024 15:43:07 +0200 Message-ID: <87jzjevyqc.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 15:15, Christophe Leroy wrote: >> Le 28/05/2024 =C3=A0 14:28, Esben Haabendal a =C3=A9crit=C2=A0: >>> [Vous ne recevez pas souvent de courriers de esben@geanix.com. D=C3=A9c= ouvrez pourquoi ceci est important =C3=A0 https://aka.ms/LearnAboutSenderId= entification ] >>> >>> While use of fsl_ifc driver with NAND flash is fine, as the fsl_ifc_nand >>> driver selects FSL_IFC automatically, we need the CONFIG_FSL_IFC option= to >>> be selectable for platforms using fsl_ifc with NOR flash. >>=20 >> I don't understand. >>=20 >> Shall I understand : >>=20 >> While use of fsl_ifc driver with NAND flash is fine as the fsl_ifc_nand= =20 >> driver selects FSL_IFC automatically, .... >>=20 >> or >>=20 >> ..., as the fsl_ifc_nand driver selects FSL_IFC automatically we need=20 >> the CONFIG_FSL_IFC option to be selectable for platforms using fsl_ifc=20 >> with NOR flash >>=20 >>=20 >>=20 >> I'm fine with the fact that you want to be able to select it when you=20 >> use NOR flashes,=20 > > But users are not fine... their memory won't work if they cannot choose > it (if you meant select=3Dchoose). Exactly. The IFC controller supports both NAND and NOR flashes. Since commit ea0c0ad6b6eb ("memory: Enable compile testing for most of the driver= s"), it has not been possible to use IFC controller for NOR flashes without selecting the IFC NAND driver (CONFIG_MTD_NAND_FSL_IFC), which is obviously not how it is supposed to be. /Esben