Re: [PATCH 4/6] PCI/pwrctrl: tc9563: Skip Tx amplitude and DFE tuning for DSP3
From: Bartosz Golaszewski
Date: Mon Jul 27 2026 - 10:31:01 EST
On Sat, 25 Jul 2026 10:59:16 +0200, Manivannan Sadhasivam via B4 Relay
<devnull+manivannan.sadhasivam.oss.qualcomm.com@xxxxxxxxxx> said:
> From: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
>
> DSP3 doesn't support tuning Tx amplitude and DFE settings. So just skip
> the setting if DT has passed the tuning properties. There is no need to
> error out the whole driver because of it.
>
> Fixes: 4c9c7be47310 ("PCI: pwrctrl: Add power control driver for TC9563")
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
> ---
> drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c b/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
> index ca19bf60d290..28e9ec3e172a 100644
> --- a/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
> +++ b/drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
> @@ -308,6 +308,7 @@ static int tc9563_pwrctrl_set_l0s_l1_entry_delay(struct tc9563_pwrctrl *tc9563,
> static int tc9563_pwrctrl_set_tx_amplitude(struct tc9563_pwrctrl *tc9563,
> enum tc9563_pwrctrl_ports port)
> {
> + struct device *dev = tc9563->pwrctrl.dev;
> u32 amp = tc9563->cfg[port].tx_amp;
> int port_access;
>
> @@ -327,6 +328,9 @@ static int tc9563_pwrctrl_set_tx_amplitude(struct tc9563_pwrctrl *tc9563,
> case TC9563_DSP2:
> port_access = 0x8;
> break;
> + case TC9563_DSP3:
> + dev_dbg(dev, "Tx amplitude tuning not supported for DSP3\n");
> + return 0;
> default:
> return -EINVAL;
> }
> @@ -345,6 +349,7 @@ static int tc9563_pwrctrl_disable_dfe(struct tc9563_pwrctrl *tc9563,
> enum tc9563_pwrctrl_ports port)
> {
> struct tc9563_pwrctrl_cfg *cfg = &tc9563->cfg[port];
> + struct device *dev = tc9563->pwrctrl.dev;
> int port_access, lane_access = 0x3;
> u32 phy_rate = 0x21;
>
> @@ -363,6 +368,9 @@ static int tc9563_pwrctrl_disable_dfe(struct tc9563_pwrctrl *tc9563,
> port_access = 0x8;
> lane_access = 0x1;
> break;
> + case TC9563_DSP3:
> + dev_dbg(dev, "DFE tuning not supported for DSP3\n");
> + return 0;
> default:
> return -EINVAL;
> }
>
> --
> 2.43.0
>
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>