From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 4EEEA364032 for ; Fri, 17 Apr 2026 16:40:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776444022; cv=none; b=cIqoiT4Q3b1uzI+dw9k5Gnnpnb6Q1n5xN4zIY0qs4RnGcpRYAq6M6xtlwFs0dyRRI+gBhQvBbPxObjgN4U7hXnILYgwd+snnn1KH06bF4yRzKJHWzXVVP1RRQHcTWfODv85ApyQwu7XMYzyq6mukio2ng7C5ezjW3+An1OZocXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776444022; c=relaxed/simple; bh=dAcivoaXIpdD8fbCh/VD0SdUBFH6qLAGFffZno8wlN8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ROv+thaXVURhcJdlzb6fpMtKeu37vMbTuFhVic1Atpl8Qi93hbS8NLPlaGcOpzW3qbJyv2pManrAMmz9VRcAHl+7/SzMWrcP8WKbtiOmDTFMwrCdHsaIfLjtKJcex8fj1b7bSO9qz3vSYweE6xYwlGjJTpDpMRKtFEtVZ9L4uas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=xkn3oK+0; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="xkn3oK+0" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 695274E42A30; Fri, 17 Apr 2026 16:40:10 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2CC9060497; Fri, 17 Apr 2026 16:40:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 844F310460A9C; Fri, 17 Apr 2026 18:40:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1776444008; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=rx5tO6nrlgQSuT60zm34ASmO6RYlpPybCsbC4KvuVBA=; b=xkn3oK+0n9O+HsFqdjBSG3KBAIQFUyPzsT+ppKxB6VrMLv8S4a0o5VYpOCFfEej3prd+Cj ltWVcQlytqoaP2dFFAeMQhTck9HwvIg8AD4J9eLTvDA65VXrGI6Ek7lV0f3Qrea1FnPIwq Cp0LNxzVWbb4dHNgxXt1jZejbnpo3khU74ksAjpni9/dNCh14UMN86JubUZr/MUViSFc7Q IEWWhhIHb9BmGJ1d+54o5jjxLPv0lL9rUMPc3F3pQPr/KGUmtZH+UfOUsczNV/5JBNUaXN lmJbuBboXW+wv1v67usvDochaM63PnfZR+cwDfkuperolnKh+g+4VWgWoOZ4WA== Date: Fri, 17 Apr 2026 18:40:01 +0200 From: Kory Maincent To: "Luca Ceresoli" Cc: "Jyri Sarha" , "Russell King" , , , "Bajjuri Praneeth" , "kernel test robot" , , "Russell King" , "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: <20260417184001.12dde35e@kmaincent-XPS-13-7390> In-Reply-To: References: <20260417155545.1069280-1-kory.maincent@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) 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-Last-TLS-Session-Version: TLSv1.3 On Fri, 17 Apr 2026 18:19:03 +0200 "Luca Ceresoli" wrote: > On Fri Apr 17, 2026 at 5:55 PM CEST, Kory Maincent wrote: > > From: "Kory Maincent (TI)" > > > > of_get_property() returns a pointer to big-endian (__be32) data, but =20 >=20 > Where is this stated? of_get_property() is declared as: >=20 > | extern const void *of_get_property(const struct device_node *node, > | const char *name, > | int *lenp); > (https://elixir.bootlin.com/linux/v7.0/source/include/linux/of.h#L365-L36= 7) >=20 > I don't see __be32 mentioned there. It is not stated in the declaration as we don't know the property type but = OF value are always in Big Endian. And the value is converted later to u8 here: https://elixir.bootlin.com/linux/v7.0/source/drivers/gpu/drm/bridge/tda998x= _drv.c#L1719 Maybe my commit message is a bit inaccurate on this. I can rephrase it if needed. > > 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 *. > > > > Fixes: 7e567624dc5a4 ("drm/i2c: tda998x: Register ASoC hdmi-codec and a= dd > > audio DT binding") Reported-by: kernel test robot > > Closes: > > https://lore.kernel.org/oe-kbuild-all/202604172257.Imo6GOH9-lkp@intel.c= om/ =20 >=20 > Wrong link? No, it's just that I fixed the second sparse warnings reported by the kernel test robot, but maybe quoting this link is wrong. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com