From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796030278; b=VKGtF5bbuYACHbwDg1tTyp5ClUsjLbzemtGfkm/th7r1O9EHGeZu4ck4j1EBlvImived JpxhrPzgpD1wO1iWeqg1dKNj7+xykME+9767DWtvFo2ogREndxevjzlEJ3mT+VPHztDgY ev2ZBHZoZjal/u4m/5oTvgKKtpsKIOqmQek17bjRajNGLNIphGy3+IykbugWJzsM+STZn n9UULJG9Svj793Fwd6Qs3gwhxMac3ra231mrNFbfpxa/OncVKSYxz0AXjd2f5qj33M+H2 5ttPSlLs6Zj+xpUNv8THmGP84ZtaGm1ncMaTGcexya36NTaojdDQn9Mrkv46oTt3KjA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796030278; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=7Q1XInt/044ipJOTDXbbtYywpyD+C1EfFlIa7ry4ot8=; b=NSvh8hurHernSagCHrHFiy3zWlaphqDNLqLACw48oZP7HL3/Px2dwnQ3AAqkXfGJ9/Ea ECpKQHCRmxV8qYs6TZLEBipsMWa+O3J4lfS7nJ0cmm8oTq7Vm2L13eJywgETNh19Krr98 fof80N9MyAXVL4JrdLjCjI/RyS4TzKuncXSdylYEY1OEZGMvz/zDLrrfjh7N+uE0Dr++Q oKuCyv2+fw2A3iqx8tIEp8q7GYz8gvPRSYZ63d9XRQE5kRdiGJlJdcdK6OJtHNfOin0df 556EtAQDe/tnBswxPOSaZXXKc3vsE8IUW1UMt++cjVMsH4zmYWa8DljoyH6MCFF64dw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BBJuRhCj; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C936C606A31C for ; Mon, 30 Nov 2026 09:17:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BBJuRhCj Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26EBC1F00925; Mon, 30 Nov 2026 09:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796030278; bh=7Q1XInt/044ipJOTDXbbtYywpyD+C1EfFlIa7ry4ot8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=BBJuRhCjBnWtPDjLBoJcPYZrJ1C+MZhEiO7s1FUVWiLmSkPT6MDDS+rWXvdT+VYM8 xzmQzxip4TSPaBKRIwybxP8JqhjxCyfcpGS7uIQsJbR9iB7NoIs6F3rbd9+e9pPCcx 0c0OEvKuURoK2gekXFjbISIqHtBBebOEOgDOCA4L1W0nS/L4feXMOaIojyQc7jJ/lh t3T9TY+1sRpmQGpZQe5jTWNcDQPye2gfg9dKfZaryFAzQrJ/EIX4tP0TjvoKuTUsZ2 4SCz5lVvZPHE9eBQ33RJ5kv9BE4Bz1QsmE+pfcDWu1qm548LzIA7SmzGvEjFJTAQRQ 1Eu9sAFnNn4pQ== Date: Mon, 30 Nov 2026 14:47:49 +0530 From: Manivannan Sadhasivam To: Arnd Bergmann Cc: Arnd Bergmann , Vinod Koul , Thinh Nguyen , Greg Kroah-Hartman , Krishna Kurapati , Neil Armstrong , Kees Cook , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, Sasha Levin Subject: Re: [PATCH] phy: qcom-uniphy: avoid build failure from duplicate PHY_TYPE_PCIE Message-ID: References: <20261124105939.1440586-1-arnd@kernel.org> <179579549935.13164.15609895718346972637.b4-reply@b4> X-Mailing-List: linux-arm-msm@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 Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Nov 27, 2026 at 07:29:00PM +0100, Arnd Bergmann wrote: > On Fri, Nov 27, 2026, at 17:04, Manivannan Sadhasivam wrote: > > On 2026-11-24 11:59 +0100, Arnd Bergmann wrote: > >> From: Arnd Bergmann > >> > >> Both the DT-binding and the driver define a PHY_TYPE_PCIE constant, > >> which clashes at compile time: > >> > >> In file included from include/linux/phy/phy.h:25, > >> from drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:15: > >> include/dt-bindings/phy/phy.h:15:33: error: expected identifier before numeric constant > >> 15 | #define PHY_TYPE_PCIE 2 > >> | ^ > >> drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:47:9: note: in expansion of macro 'PHY_TYPE_PCIE' > >> 47 | PHY_TYPE_PCIE = 1, > >> | ^~~~~~~~~~~~~ > >> drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:127:27: error: 'PHY_TYPE_PCIE_GEN2' undeclared here (not in a function); did you mean 'PHY_TYPE_PCIE'? > >> 127 | .phy_type = PHY_TYPE_PCIE_GEN2, > >> | ^~~~~~~~~~~~~~~~~~ > >> | PHY_TYPE_PCIE > >> drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:135:27: error: 'PHY_TYPE_PCIE_GEN3' undeclared here (not in a function); did you mean 'PHY_TYPE_PCIE'? > >> 135 | .phy_type = PHY_TYPE_PCIE_GEN3, > >> | ^~~~~~~~~~~~~~~~~~ > >> | PHY_TYPE_PCIE > >> > >> Nothing uses the definition in the driver, so just remove it. > >> > >> Fixes: b28eecc89399 ("include: linux: phy: Add phy attribute "type" and associated helpers") > >> Signed-off-by: Arnd Bergmann > > > > Reviewed-by: Manivannan Sadhasivam > > FWIW, this is already fixed in linux-next by 90d6263e867b ("phy: qcom: > uniphy-pcie-28lp: Rename the PHY type enum values"), which renames > the constants instead of removing them. I assume we'll leave it at that > version. > Ah okay. I'll drop this patch from pw then. Thanks! - Mani -- மணிவண்ணன் சதாசிவம்