intel-pinctrl for v6.12-2
Fixes a few issues with Intel pin control platform driver: * fix missing reference counter drop of fwnode on error path * replace comma by semicolon to follow the kernel style * add Panther Lake to the list of supported devices The following is an automated git shortlog grouped by driver: intel: - platform: Add Panther Lake to the list of supported - platform: use semicolon instead of comma in ncommunities assignment - platform: fix error path in device_for_each_child_node() -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEhiZOUlnC9oKN3n3AmT3/83c5Sy0FAmb+ceYACgkQmT3/83c5 Sy2jwg//csXZ0AH8MNEP54/tysjfC6sqXjJlESzfiqf+zJSTm4fO86dzgQ9kevXv Vq4zf9G/jU7ZFUmg0MencuDjY45NDcrkzeakgYayiYXYfvBIIperda02c0SZkzl1 X6Wic0kY1PnkXx5tSA1AlNpGsxF2sl6ZVeaa2bsryukB7fE4Vq56giB0WZDq5MM9 J4UFWlFlidLqi6ZCvfBzDRv6eonzakCOK2AdvmDKupiHjB/NlRh9TrZzbYveQMjd H62a9qIOMM2rqZbCbbhsaQEfCupZKX+MxgF35P7fsO0UItts5/XhtxFlrzCN6VD+ xxjaPDiZ4lEWvjeMokEhQP5C+o8yn8pq99Y+PCy5ey0lCIYHRUN0qUrEXmwXakX2 qsXRJNR+/g0PnbhvLWBOkzf29ztFxKEYXtvehhHKNM/nao+0lpfhbp4QZYlVVx1E 8TQx08nyyeoznSg2pph/4pAmfBaUYZtsMmDFkxcNDfmicusaImYMGHZX5OQ1TiT6 m/27P4/AR6A70G8I1bdeobYpLDPgEunBOKxLbsjSweQ3ZTuZLjxhfBMzWchL3hmf 8qzvLVrjAf27QzTSBpCNf3oLC5QuyvftR4Wzs9cXgG4AgumldoTKgYceZHJLaiRr VFn80OAIAg3PNG3w6sViWk6VnteYfrYs6X7bqRpPjLyK0R/cU1Q= =h/iS -----END PGP SIGNATURE----- Merge tag 'intel-pinctrl-v6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/intel into fixes intel-pinctrl for v6.12-2 Fixes a few issues with Intel pin control platform driver: * fix missing reference counter drop of fwnode on error path * replace comma by semicolon to follow the kernel style * add Panther Lake to the list of supported devices The following is an automated git shortlog grouped by driver: intel: - platform: Add Panther Lake to the list of supported - platform: use semicolon instead of comma in ncommunities assignment - platform: fix error path in device_for_each_child_node() Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
commit
c9560baef0
@ -46,6 +46,7 @@ config PINCTRL_INTEL_PLATFORM
|
|||||||
of Intel PCH pins and using them as GPIOs. Currently the following
|
of Intel PCH pins and using them as GPIOs. Currently the following
|
||||||
Intel SoCs / platforms require this to be functional:
|
Intel SoCs / platforms require this to be functional:
|
||||||
- Lunar Lake
|
- Lunar Lake
|
||||||
|
- Panther Lake
|
||||||
|
|
||||||
config PINCTRL_ALDERLAKE
|
config PINCTRL_ALDERLAKE
|
||||||
tristate "Intel Alder Lake pinctrl and GPIO driver"
|
tristate "Intel Alder Lake pinctrl and GPIO driver"
|
||||||
|
@ -90,7 +90,6 @@ static int intel_platform_pinctrl_prepare_community(struct device *dev,
|
|||||||
struct intel_community *community,
|
struct intel_community *community,
|
||||||
struct intel_platform_pins *pins)
|
struct intel_platform_pins *pins)
|
||||||
{
|
{
|
||||||
struct fwnode_handle *child;
|
|
||||||
struct intel_padgroup *gpps;
|
struct intel_padgroup *gpps;
|
||||||
unsigned int group;
|
unsigned int group;
|
||||||
size_t ngpps;
|
size_t ngpps;
|
||||||
@ -131,7 +130,7 @@ static int intel_platform_pinctrl_prepare_community(struct device *dev,
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
group = 0;
|
group = 0;
|
||||||
device_for_each_child_node(dev, child) {
|
device_for_each_child_node_scoped(dev, child) {
|
||||||
struct intel_padgroup *gpp = &gpps[group];
|
struct intel_padgroup *gpp = &gpps[group];
|
||||||
|
|
||||||
gpp->reg_num = group;
|
gpp->reg_num = group;
|
||||||
@ -159,7 +158,7 @@ static int intel_platform_pinctrl_prepare_soc_data(struct device *dev,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Version 1.0 of the specification assumes only a single community per device node */
|
/* Version 1.0 of the specification assumes only a single community per device node */
|
||||||
ncommunities = 1,
|
ncommunities = 1;
|
||||||
communities = devm_kcalloc(dev, ncommunities, sizeof(*communities), GFP_KERNEL);
|
communities = devm_kcalloc(dev, ncommunities, sizeof(*communities), GFP_KERNEL);
|
||||||
if (!communities)
|
if (!communities)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user