This series implements 16 channel PWM support for Intel Elkhart LakeI tested on Elkhart lake this patchset and it adds another 8 channel PWM instance and the PCI device continue switching between D0 and D3 power states depending is some channel enabled or all idle.
along with minor cleanups for DesignWare PWM driver.
Changes since v2:
- Remove error code duplication from dev_err_probe()
- Update tags
Changes since v1:
- Drop redundant error check
- Provide dwc_pwm_init_one() to initialize one PWM instance
- Use dev_get_drvdata() instead of pci_get_drvdata()
- Use pm_sleep_ptr() instead of use pm_ptr()
Raag Jadav (5):
pwm: dwc: use pm_sleep_ptr() macro
pwm: dwc: drop redundant error check
pwm: dwc: Add 16 channel support for Intel Elkhart Lake
pwm: dwc: simplify error handling
pwm: dwc: access driver_data using dev_get_drvdata()
drivers/pwm/pwm-dwc.c | 59 ++++++++++++++++++++++++-------------------
drivers/pwm/pwm-dwc.h | 5 ++++
2 files changed, 38 insertions(+), 26 deletions(-)