]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl: intel: Improve capability support
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 11 Mar 2026 19:30:25 +0000 (20:30 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Mar 2026 06:58:52 +0000 (07:58 +0100)
commit340bba73c545bfc7e8fcbc5ee4c02f85088f024d
tree86fd4f3c8fd3beb4c7aef533de2f8467b954cca6
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
pinctrl: intel: Improve capability support

The register space of a certain capability starts at the offset just after
the respective node in the capability list. It means that there are no fixed
offsets for them from SoC to SoC generation and they have to be calculated
at run-time. Improve capability support by adding the respective calculation
algorithm and in the result enable PWM on more platforms that currently may
use the wrong register.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c