On 2023/12/8 19:47, Philipp Zabel wrote: > Hi William, > > On Fr, 2023-12-08 at 17:42 +0800, William Qiu wrote: >> Add driver for OpenCores PWM Controller. And add compatibility code >> which based on StarFive SoC. >> >> Co-developed-by: Hal Feng <hal.feng@xxxxxxxxxxxxxxxx> >> Signed-off-by: Hal Feng <hal.feng@xxxxxxxxxxxxxxxx> >> Signed-off-by: William Qiu <william.qiu@xxxxxxxxxxxxxxxx> >> --- > [...] >> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig >> index 4b956d661755..d87e1bb350ba 100644 >> --- a/drivers/pwm/Kconfig >> +++ b/drivers/pwm/Kconfig >> @@ -444,6 +444,18 @@ config PWM_NTXEC >> controller found in certain e-book readers designed by the original >> design manufacturer Netronix. >> >> +config PWM_OCORES >> + tristate "OpenCores PWM support" >> + depends on HAS_IOMEM && OF >> + depends on COMMON_CLK && RESET_CONTROLLER > > There is no need for reset consumers to depend on RESET_CONTROLLER. > Will drop > [...] >> diff --git a/drivers/pwm/pwm-ocores.c b/drivers/pwm/pwm-ocores.c >> new file mode 100644 >> index 000000000000..996ca3805901 >> --- /dev/null >> +++ b/drivers/pwm/pwm-ocores.c >> @@ -0,0 +1,229 @@ > [...] >> +static int ocores_pwm_probe(struct platform_device *pdev) >> +{ > [...] >> + ddata->rst = devm_reset_control_get_optional_exclusive(dev, NULL); > > Missing error handling. > Will add. >> + reset_control_deassert(ddata->rst); > > Missing error handling. > Will add. > Thank you for spending time on this patch series. Best Regards, William > regards > Philipp