Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: 8250_dw: Use reset array API to get resets

Some SoCs like StarFive JH7110 require two or more resets.
So change to use the reset array API to get resets.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Link: https://lore.kernel.org/r/20240604084729.57239-3-hal.feng@starfivetech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hal Feng and committed by
Greg Kroah-Hartman
41424f5c ac434f28

+1 -1
+1 -1
drivers/tty/serial/8250/8250_dw.c
··· 616 616 if (IS_ERR(data->pclk)) 617 617 return PTR_ERR(data->pclk); 618 618 619 - data->rst = devm_reset_control_get_optional_exclusive(dev, NULL); 619 + data->rst = devm_reset_control_array_get_optional_exclusive(dev); 620 620 if (IS_ERR(data->rst)) 621 621 return PTR_ERR(data->rst); 622 622