Skip to content

Commit b6add54

Browse files
committed
Merge tag 'pinctrl-v6.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij: - Module macro parameter fix for the meson driver so that it actually modprobes - ACPI quirk for the ASUS ProArt PX13 - Build dependency for the STMFX driver - Proper return value for the pinconf callbacks in the Airhoa driver * tag 'pinctrl-v6.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: airoha: Fix return value in pinconf callbacks pinctrl: STMFX: add missing HAS_IOMEM dependency gpiolib: acpi: Add quirk for ASUS ProArt PX13 pinctrl: meson: Fix typo in device table macro
2 parents 1b237f1 + 563fcd6 commit b6add54

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

drivers/gpio/gpiolib-acpi-quirks.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,20 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
344344
.ignore_interrupt = "AMDI0030:00@8",
345345
},
346346
},
347+
{
348+
/*
349+
* Spurious wakeups from TP_ATTN# pin
350+
* Found in BIOS 5.35
351+
* https://gitlab.freedesktop.org/drm/amd/-/issues/4482
352+
*/
353+
.matches = {
354+
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
355+
DMI_MATCH(DMI_PRODUCT_FAMILY, "ProArt PX13"),
356+
},
357+
.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
358+
.ignore_wake = "ASCP1A00:00@8",
359+
},
360+
},
347361
{} /* Terminating entry */
348362
};
349363

drivers/pinctrl/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ config PINCTRL_STMFX
539539
tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
540540
depends on I2C
541541
depends on OF_GPIO
542+
depends on HAS_IOMEM
542543
select GENERIC_PINCONF
543544
select GPIOLIB_IRQCHIP
544545
select MFD_STMFX

drivers/pinctrl/mediatek/pinctrl-airoha.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,7 @@ static int airoha_pinconf_get(struct pinctrl_dev *pctrl_dev,
26962696
arg = 1;
26972697
break;
26982698
default:
2699-
return -EOPNOTSUPP;
2699+
return -ENOTSUPP;
27002700
}
27012701

27022702
*config = pinconf_to_config_packed(param, arg);
@@ -2788,7 +2788,7 @@ static int airoha_pinconf_set(struct pinctrl_dev *pctrl_dev,
27882788
break;
27892789
}
27902790
default:
2791-
return -EOPNOTSUPP;
2791+
return -ENOTSUPP;
27922792
}
27932793
}
27942794

@@ -2805,10 +2805,10 @@ static int airoha_pinconf_group_get(struct pinctrl_dev *pctrl_dev,
28052805
if (airoha_pinconf_get(pctrl_dev,
28062806
airoha_pinctrl_groups[group].pins[i],
28072807
config))
2808-
return -EOPNOTSUPP;
2808+
return -ENOTSUPP;
28092809

28102810
if (i && cur_config != *config)
2811-
return -EOPNOTSUPP;
2811+
return -ENOTSUPP;
28122812

28132813
cur_config = *config;
28142814
}

drivers/pinctrl/meson/pinctrl-amlogic-a4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ static const struct of_device_id aml_pctl_of_match[] = {
10931093
{ .compatible = "amlogic,pinctrl-s6", .data = &s6_priv_data, },
10941094
{ /* sentinel */ }
10951095
};
1096-
MODULE_DEVICE_TABLE(of, aml_pctl_dt_match);
1096+
MODULE_DEVICE_TABLE(of, aml_pctl_of_match);
10971097

10981098
static struct platform_driver aml_pctl_driver = {
10991099
.driver = {

0 commit comments

Comments
 (0)