From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796311020; b=2BKbEr0nOi+P6x8dxleMk85U9a+AqngsgHgodcEZRctMM8F1KNEX93Va/0HkU9WFoi8Q 1HmuD00ptwNX7h9QjkJMDoPfHKkqHavan08IyRsp8kPkJcmzLtINcY6AcT5SafS5mtUtN 9yjQHGli9TPgj06WBwL2lObcppWun7x+gS41h8Gxl3QhR+2kT4O3JXGLEgd0jxynWJ4wu xBq7i3d02ELoFtpPEaCEG832IxRI9zrKBjE4Ev2RhnuVTJVZK1CFuPA1sLor/2+AP6Qhp 7JS6xkzMoMbSDLBVJCeQ89MNbaXk/Wp2nxgyFZqjQNJCYJAlh0iiFPNs0jR6H2/Rtnw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311020; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Last-TLS-Session-Version; bh=pBANsWrHiFs90wuQB33+W4Ao3us5rj+Yk9zML3BJYW4=; b=xLRR+tvvKMSY0TzzcP5J7X9vNFnIp2caBluR1FNHwr5G/x0ea0ydrdWbX3xTRh+6DU8I +8x3Tq4g5yH6G8qv0IFt/w1dVaCF5n8h7TumtoDxkPVd6cYDj2GSS22dxysJH2nHZbekz AbLsKf7CnGRMfjBdfuPpYdk0FxZpOBvUY5YCnfraEZUX0WkOt3qYLUFZbgfd06kbpUwmC KpYSJX3vmkzXo7aAJ09Ok8j4zUdzO6BwKoiR3M06+bQb6cAjQtrs563OTVX5ua6R+yl5S vuCEZ6JiGJv6jMCEsEhuBys7g8Mh/mSyY8GqNbqrrLlBQcnDVHZlRqHLs9pnLzMvtpg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b="AC2P/0Vv"; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 117D5606A322 for ; Thu, 3 Dec 2026 15:16:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 117D5606A322 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.a=rsa-sha256 header.s=dkim header.b=AC2P/0Vv Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 6F17E4E4186D; Thu, 3 Dec 2026 15:16:58 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 33922604ED; Thu, 3 Dec 2026 15:16:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9D64711EA174D; Thu, 03 Dec 2026 16:16:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796311013; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=pBANsWrHiFs90wuQB33+W4Ao3us5rj+Yk9zML3BJYW4=; b=AC2P/0Vvm80WrA7eK7geGHaYTUIiUONZccFG/LX3Yda5enQyuz61cangjdV28cfDILOGcH VpYxyQ14N0/5Z+/Bg0VeatnEj1eWGlTely1Qb9wb5eFv38DIUraGL5CfOKiBHdaTien87T rfhVpkzKO/SwnWMOqPnbJEczJ7CkYsV3Q/DF83sUADqkw5uHlfCtwCvRivYy6RoXskDcHc 2Sk1bqni4ClNnehhSKMFRlvRTdRy4jXwJDRIHw55jQcrrGAM+2uHANAD8DFw0SbuWwZCet 66D/35L7CveW62K8/QFJ6p58k1y9YK7NYZoF9XgyVznFWqrnbKyhmHnxaf06/A== From: Benjamin Robin To: sashiko-reviews@lists.linux.dev Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com Subject: Re: [PATCH v2 22/22] phy: cadence-torrent: support 8 lanes on the sd0801 PHY Date: Thu, 03 Dec 2026 16:16:50 +0100 Message-ID: In-Reply-To: References: <20261202-phy-cadence-torrent-ng-v2-0-0b493387347b@bootlin.com> <20261202-phy-cadence-torrent-ng-v2-22-0b493387347b@bootlin.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Last-TLS-Session-Version: TLSv1.3 On Wednesday, December 2, 2026 at 4:30=E2=80=AFPM, sashiko-bot@kernel.org w= rote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue to consider: > - [High] phy: cadence-torrent: mask_available_lanes 0x0F blocks 8-lane > support > -- >=20 > commit 4cd07b2392984febe0d7ed29322fdd4014b9aee3 > Author: Benjamin Robin >=20 > phy: cadence-torrent: support 8 lanes on the sd0801 PHY >=20 > This commit raises MAX_NUM_LANES from 4 to 8 to support up to 8 lanes on > the Cadence Torrent SD0801 PHY. >=20 > > diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/ca= dence/phy-cadence-torrent.c > > index 21ad6c30a3f20..5a3e307f6c969 100644 > > --- a/drivers/phy/cadence/phy-cadence-torrent.c > > +++ b/drivers/phy/cadence/phy-cadence-torrent.c > > @@ -22,7 +22,7 @@ > > #include > > =20 > > #define DEFAULT_NUM_LANES 4 > > -#define MAX_NUM_LANES 4 > > +#define MAX_NUM_LANES 8 >=20 > [Severity: High] > Does cdns_map_torrent.mask_available_lanes also need to be updated from > 0x0F to 0xFF? No, it should not be updated to 0xFF, since the hardware associated with these compatibles only has 4 lanes. This commit could be dropped for now, since there is no hardware I'm aware of that has 8 lanes. =20 > tp_set_used_lanes() checks mask_lanes against > tp_data->init_data->mask_available_lanes, which is still 0x0F in > cdns_map_torrent, so probing any subnode that uses lanes 4..7 will fail > with -EINVAL. >=20 >=20 =2D-=20 Benjamin Robin, Bootlin Embedded Linux and Kernel engineering https://bootlin.com