mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
PCI/pwrctrl: tc9563: Power off only the external ports in tc9563_pwrctrl_disable_port()
TC9563 supports powering off only the external facing ports like DSP1 and
DSP2. It is not recommended to power off USP and DSP3 as they have fixed
ports/endpoint connected.
Fix tc9563_pwrctrl_disable_port() to power off only DSP1 and DSP2.
Fixes: 4c9c7be473 ("PCI: pwrctrl: Add power control driver for TC9563")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260725-tc9563-fix-v1-3-ec4286e31331@oss.qualcomm.com
This commit is contained in:
parent
6e5e6c2194
commit
e41bbfc4c1
|
|
@ -241,12 +241,18 @@ static int tc9563_pwrctrl_disable_port(struct tc9563_pwrctrl *tc9563,
|
|||
if (!cfg->disable_port)
|
||||
return 0;
|
||||
|
||||
if (port == TC9563_DSP1) {
|
||||
switch (port) {
|
||||
case TC9563_DSP1:
|
||||
seq = dsp1_pwroff_seq;
|
||||
len = ARRAY_SIZE(dsp1_pwroff_seq);
|
||||
} else {
|
||||
break;
|
||||
case TC9563_DSP2:
|
||||
seq = dsp2_pwroff_seq;
|
||||
len = ARRAY_SIZE(dsp2_pwroff_seq);
|
||||
break;
|
||||
default:
|
||||
/* Only external downstream ports DSP1/DSP2 can be powered off */
|
||||
return 0;
|
||||
}
|
||||
|
||||
ret = tc9563_pwrctrl_i2c_bulk_write(tc9563->client, seq, len);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user