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
--

commit 4cd07b2392984febe0d7ed29322fdd4014b9aee3
Author: Benjamin Robin <[email protected]>

phy: cadence-torrent: support 8 lanes on the sd0801 PHY

This commit raises MAX_NUM_LANES from 4 to 8 to support up to 8 lanes on
the Cadence Torrent SD0801 PHY.

> diff --git a/drivers/phy/cadence/phy-cadence-torrent.c 
> b/drivers/phy/cadence/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 <linux/reset.h>
>  
>  #define DEFAULT_NUM_LANES    4
> -#define MAX_NUM_LANES                4
> +#define MAX_NUM_LANES                8

[Severity: High]
Does cdns_map_torrent.mask_available_lanes also need to be updated from
0x0F to 0xFF?

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.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=22

Reply via email to