From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=212.27.42.3 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794700060; b=3qvfFkLLi9KxMEAnH1mNNN8zQd7Wv0yQdrjfgsvy1gNWNuHnFzAYNU/4hL81fx8NYJTV k+aw8y/Ko7QNaQGF1dGZIcALk2G1krnk17R7uqPIJIERA+/QzH3v1eX+vZaIri93BcSdz sftSSKDrmOdcTdqbxFcQMibBkRpEahc5jaY/wAIvK/eifK2kLQBYKMN5c2hgWhw+N+Qsl OmC09tg0Vz7U1osh87/ZlmR0ff5vb9pMJJmXf9pW8hTSXY46S7/tyMNiTtHwsUql2PXVx i8XF6RUGJff83vc3K/7nAFu/sEcOyvsyMDNmivOdqGKAudqBKyJI6vo1/MfKc9G2rfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794700060; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=+msR+L8hupIZu3L7AvrprWnt14EoIGonWEztPzERWDk=; b=mqNxLc5dAK/MGlaihr7kOK4s9bzFSIXygsBIXqEzTIKE+PEY9XrNNjYsLnSOvEdysLjW fxhQ6m9pgg0L/cuN/z42aPmoOzAicKtv+AKH7q3Fthjn5XO97cT7hgRMeBYHHKD+W05kf 4vbuaaXawJHjFyK08oDh72DPpDFEvpoby1k9n44FTQ3U/997I9xJ5g18G2Ilv0A/nl1+Y KnFxvk5Wk6U27HJFkSI40owJmZWNazi5DUm/XwsEuTtjOAv98lf9Nq8KgsLxmy9/V/yOU oWhxiAuYERv+z/wEF9Y7dP+c8k69aJFRhfZhiEGVEjkWero0xR/xstEekBsC8LBPuPw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=free.fr; spf=pass smtp.mailfrom=free.fr; dkim=pass header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=DRTkaIZa; arc=none smtp.remote-ip=212.27.42.3 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11021606A329; Sat, 14 Nov 2026 23:47:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11021606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=free.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=free.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=DRTkaIZa Received: from L30177.local (unknown [82.65.104.223]) (Authenticated sender: vjardin@free.fr) by smtp3-g21.free.fr (Postfix) with ESMTPSA id CE22313F880; Sun, 15 Nov 2026 00:47:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1794700050; bh=3DuhsD14Zo+NE2HJ5h/Fip7dpWi29Qk67BwYWlaEb8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DRTkaIZaYSzmqkoLQbhO9xlX4cTzmOA5DYPOCj96tq1OnyApDP1+kVRiRn+70PlFS qPeIxbFJcwi4DDTbEXyVTBvyTdu2k4FJIFH4bZP1fpta8kqGcB0JzORI4dSFxiGcOV uABtjcmX33/nN78SOb6wasOQcfzoVwBA5N01QCLOOqChMfBiDzGQHh1vtYbhkIgrk/ dhC1DmBpCenH82iUoBWmtDFmYoXRDRD3RSGpRhPyr7pRd3X08yAQQoZXCZeVvI76BW gPESwU1Cs/6ksgLAgZ9AEsHDdSnkUArgMn7MxrmEENwElzAtUfBr7gcOf9F0eTwOC8 6QVVl55AxHdwg== Date: Sun, 15 Nov 2026 00:47:06 +0100 From: Vincent Jardin To: Vladimir Oltean Cc: Dong Aisheng , Fabio Estevam , Frank Li , Jacky Bai , Pengutronix Kernel Team , NXP S32 Linux Team , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Christophe Leroy (CS GROUP)" , Shawn Guo , Sascha Hauer , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Ioana Ciornei Subject: Re: [PATCH v4 3/5] soc: fsl: guts: add the RCW override of any RCWSR Message-ID: References: <20261114-for-upstream-lx2160a-rcw-pinmux-v1-v4-0-eefcea066a55@free.fr> <20261114-for-upstream-lx2160a-rcw-pinmux-v1-v4-3-eefcea066a55@free.fr> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Hi Vladimir, > I cannot agree with your API proposal. It exports to the rest of the > kernel a blanket API for RCW override of any RCWSR1-RCWSR31 register, > *including* the SerDes fields for which the fsl_guts module already > exposes an API. So with your proposal, what can be done with > fsl_guts_lane_set_mode() can also be (un)done with fsl_guts_rcw_override(). > The possibilities of abusing this API design are endless, and I don't > want to have to deal with them when I can avoid them. > > At a minimum, I would recommend renaming the API as fsl_guts_pmux_override(), > and make guts enforce which register fields it permits overriding via > this API. Example: > > static const struct fsl_soc_pmux_mask lx2160a_pmux[] = { > { 12, GENMASK(29, 0) }, /* IIC2..SDHC1_DIR */ > { 13, GENMASK(29, 0) }, /* SDHC2_DAT74..EVT43 */ > { 14, GENMASK(10, 0) }, /* EVT20..IIC1 */ > { 27, GENMASK(7, 0) }, /* EC1, EC2, USB_EXT, GTX_CLK, SDHC1_DS <- your series is missing these */ > {} > }; good idea, I'll apply it. Thanks, Vincent