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=1796381689; b=ghr8YbwpRqt0RR5WAKcibnU0YVIp6P9lb7dMfA7X3lKbzDKsZy7E1WDV52quLOODFNYN nZ3UlVTyXbIPQhLUNGprLvbienQrTChqfBB04gjs7a04Y8lsXto3oJL+Mr7Bh4vhJrrvQ K1rv9YayKI0mrIwkWDKA+PkHP6e1qT2mHqCptCOrTvqz23nJKblRRnRH0MqCIsnt15DJV qEyr5rmWlgijoL5Y7mP654BhPyKPJgDwudX1cAb8boau+3X/kU5H9lecfQQvmrczQ6wo0 jUGT0tM2LsQg7rUoSYiU1sePLLXbyfSIn4VIT0hrg19RmN3OpyetB7aMrrwT2eHaezQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381689; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Jg6A/2DVyF1kAKqRgkf7fL5YrVntAfcKZNjMz1tZZR0=; b=hda/6IAHTczOrxjxnAOWhBMfRDTNkTdWCMCYBiing9HihSpQsQVE67Y7yN16HPa7rY74 Ccdc1GY1nskPyFSfKtIInJNNIiCgk1yr3St0pFkl88ldXTt3ImVkCZArwCzXzNqCVLdYB PFkqPLEKSocbRiAiPUOMKayAtcbODQBfTsXzfjJOjlLvJ/E18bzmKrV3j9ylSYi7df0Dp 8VUS8WIrhfryVxJnNBMBE+6uIn2uklSZOHrxJ645dSOMEjeDRNuhfUMeRLOweyEuX1fAy 74dXdgHltbGgR3oq6kOjxIcqT5Jale7iJ/hWlhyHudcg1PLKPKj1ut4yRb16n+yeT7A== 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=k5INnWj2; 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 8E8DD606A322; Fri, 4 Dec 2026 10:54:49 +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=k5INnWj2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D1F01F000C2; Fri, 4 Dec 2026 10:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796381689; bh=Jg6A/2DVyF1kAKqRgkf7fL5YrVntAfcKZNjMz1tZZR0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=k5INnWj2JNKul1W3Jzu7nbvju/RKBzO7kfFhB1gp4zRo5WzivCpqAjjfMaEOy1Q2v SsZbUSBtBC0kDruWzKls+6RnvGI5D3LRyFJCz2Yb7jD1+bGHVyTegMQUZdDdXlcTqI WnBoJggNRnogJ14Twz8MzfzpQZCBMvpOl56puyW3vWG3/OJAW67vzq4ArC17gCz/ha Yz8ZMVjtml1hzi44IvycHJZD0mA3RDkvJN3JuS6gaZuXZpIDq/iVqGJ4u3+Shr0TEY of7aTJ0dTMC+LmhwRTHwdrcEiM34b9TgZul85h1VDoYFauZPt822xNB4QuvsRwZuZb 4+hYOcYd/S4fw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v10 1/2] usb: typec: tipd: Factor out i2c specifics Reply-To: sashiko-reviews@lists.linux.dev To: "Sasha Finkelstein" Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-tipd-ace3-v10-1-1b85a2c8501d@chaosmail.tech> References: <20261204-tipd-ace3-v10-0-1b85a2c8501d@chaosmail.tech> <20261204-tipd-ace3-v10-1-1b85a2c8501d@chaosmail.tech> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 10:54:48 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] usb: typec: tipd: tipd_hw_variants array lacks const qualifier -- commit dd5921f15fa519b31f574ee3ecf5be5499540a34 Author: Alyssa Milburn usb: typec: tipd: Factor out i2c specifics This commit splits the I2C bus glue out of the TPS6598x core driver into a separate i2c.c module and exports the core probe, remove, PM, and variant lookup interfaces for other bus drivers. > diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c > index 3b739f50c922f..69e0f1f9b496c 100644 > --- a/drivers/usb/typec/tipd/core.c > +++ b/drivers/usb/typec/tipd/core.c [ ... ] > @@ -2116,33 +1981,14 @@ static const struct tipd_data tps25750_data =3D { [ ... ] > +const struct tipd_data *tipd_hw_variants[] =3D { > + [TIPD_VARIANT_CD321X] =3D &tipd_cd321x_data, > + [TIPD_VARIANT_TPS6598X] =3D &tipd_tps6598x_data, > + [TIPD_VARIANT_TPS66993] =3D &tipd_tps66993_data, > + [TIPD_VARIANT_TPS25750] =3D &tipd_tps25750_data, > }; > -module_i2c_driver(tps6598x_i2c_driver); > +EXPORT_SYMBOL_GPL(tipd_hw_variants); [Severity: Low] Should tipd_hw_variants[] (and its extern declaration in drivers/usb/typec/tipd/tps6598x.h) be declared as const struct tipd_data *const tipd_hw_variants[TIPD_VARIANT_MAX]? Without the second const qualifier, the exported pointer array referencing the struct tipd_data ops tables is placed in writable .data instead of .rodata, and giving it the explicit TIPD_VARIANT_MAX bound matches the range check in tps6598x_probe_i2c(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-tipd-ace3-= v10-0-1b85a2c8501d@chaosmail.tech?part=3D1