From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 96AB5371046 for ; Mon, 27 Apr 2026 20:33:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777322021; cv=none; b=aYVj0XL6stjcid6Y+r76C3kd+RRJcZPXR37iy5w7lK39r5eWqmyBHuIPOsaVK2A/vd9axT/julDj2+9sPOKFef128FPNodDFm3QhoiUNIQsrpjE4P39r4YsP3r+d3BMGP70cep/SZl+X/uNwmTKXGEJ3yt/bK+IpLWH25NJPWYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777322021; c=relaxed/simple; bh=ciLDSgtl2HhICD3SX7yNaM8dhO4ZN0J1/BmdpjvevSw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sPnWGXZgTosHEs9NJCb3lfmAIgfrniSrqgjEEDGdeCmQ+YagTMAdWwboiakpGBCajJrFIdK6A+XEoNLReWiBhTmadSkS9HD95d0al0fFvCNtRqT/v8ww4e4avgvCCNYwRr0apb9m+ZYu9mB6pKOA7Z2aFxn1YslfFjzBrs/y3KA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=DD0CEUac; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="DD0CEUac" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=b6p+7B0gTye48rX8dXe6m7frVhoTqEq1SDQ7r4+JJRc=; b=DD0CEUacdjehDpKLO2S6rFuP8y LObPOqseD+zGE23eWiW3ed92VXTW/tFdhXc4TE4g/00psgbj6AOZZ2rgndGe5BxMFdK5VHAqVup+V PMrgQKYNVEWAjKS0uLABh/Vk8+wtKWdruG+NPQl2G0ytEu68ZHjMcyALCb705LaHuv88KxvKyWXxH +vHdnZsxs2ja+27jwmTESAW7MfgmXmoWxFDqsFm1xScvEUzolKtJ6pjigho6CkmUuCq0WW7OWG5ow KZxtmv+XRblFV/j8SbQx9MuKxSr6R/dC7NTIAOih3Fgpjln3RP6WCh23Z4qftDDx89aXicuc3qQsK 2CgMAIrQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47702) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wHSdv-000000007bw-2VIP; Mon, 27 Apr 2026 21:33:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.98.2) (envelope-from ) id 1wHSdq-000000005fl-3m52; Mon, 27 Apr 2026 21:33:18 +0100 Date: Mon, 27 Apr 2026 21:33:18 +0100 From: "Russell King (Oracle)" To: Kory Maincent Cc: Luca Ceresoli , Jyri Sarha , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Bajjuri Praneeth , kernel test robot , thomas.petazzoni@bootlin.com, Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Subject: Re: [PATCH] drm/bridge: tda998x: Use __be32 for audio port OF property pointer Message-ID: References: <20260417155545.1069280-1-kory.maincent@bootlin.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20260417155545.1069280-1-kory.maincent@bootlin.com> Sender: Russell King (Oracle) On Fri, Apr 17, 2026 at 05:55:44PM +0200, Kory Maincent wrote: > From: "Kory Maincent (TI)" > > of_get_property() returns a pointer to big-endian (__be32) data, but > port_data in tda998x_get_audio_ports() was declared as const u32 *, > causing a sparse endianness type mismatch warning. Fix the declaration > to use const __be32 *. This is correct. drivers/of/fdt.c::populate_properties() assigns pp->value to point into the flattened device tree's data, and the native data format is big endian. pp->value = (__be32 *)val; This pointer is returned by of_get_property(). port_data is read using be32_to_cpup(). So, yes, port_data should have been a __be32 pointer. > Fixes: 7e567624dc5a4 ("drm/i2c: tda998x: Register ASoC hdmi-codec and add audio DT binding") This is correct. > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202604172257.Imo6GOH9-lkp@intel.com/ This also look scorrect. > Signed-off-by: Kory Maincent (TI) Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!