Skip to content

Commit cec353f

Browse files
committed
Merge tag 'gpio-v5.4-5' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio
Pull GPIO fixes from Linus Walleij: "A last set of small fixes for GPIO, this cycle was quite busy. - Fix debounce delays on the MAX77620 GPIO expander - Use the correct unit for debounce times on the BD70528 GPIO expander - Get proper deps for parallel builds of the GPIO tools - Add a specific ACPI quirk for the Terra Pad 1061" * tag 'gpio-v5.4-5' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: gpiolib: acpi: Add Terra Pad 1061 to the run_edge_events_on_boot_blacklist tools: gpio: Correctly add make dependencies for gpio_utils gpio: bd70528: Use correct unit for debounce times gpio: max77620: Fixup debounce delays
2 parents d324810 + cbdaa5e commit cec353f

File tree

5 files changed

+31
-9
lines changed

5 files changed

+31
-9
lines changed

drivers/gpio/gpio-bd70528.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ static int bd70528_set_debounce(struct bd70528_gpio *bdgpio,
2525
case 0:
2626
val = BD70528_DEBOUNCE_DISABLE;
2727
break;
28-
case 1 ... 15:
28+
case 1 ... 15000:
2929
val = BD70528_DEBOUNCE_15MS;
3030
break;
31-
case 16 ... 30:
31+
case 15001 ... 30000:
3232
val = BD70528_DEBOUNCE_30MS;
3333
break;
34-
case 31 ... 50:
34+
case 30001 ... 50000:
3535
val = BD70528_DEBOUNCE_50MS;
3636
break;
3737
default:

drivers/gpio/gpio-max77620.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ static int max77620_gpio_set_debounce(struct max77620_gpio *mgpio,
192192
case 0:
193193
val = MAX77620_CNFG_GPIO_DBNC_None;
194194
break;
195-
case 1000 ... 8000:
195+
case 1 ... 8000:
196196
val = MAX77620_CNFG_GPIO_DBNC_8ms;
197197
break;
198-
case 9000 ... 16000:
198+
case 8001 ... 16000:
199199
val = MAX77620_CNFG_GPIO_DBNC_16ms;
200200
break;
201-
case 17000 ... 32000:
201+
case 16001 ... 32000:
202202
val = MAX77620_CNFG_GPIO_DBNC_32ms;
203203
break;
204204
default:

drivers/gpio/gpiolib-acpi.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,11 +1304,28 @@ late_initcall_sync(acpi_gpio_handle_deferred_request_irqs);
13041304

13051305
static const struct dmi_system_id run_edge_events_on_boot_blacklist[] = {
13061306
{
1307+
/*
1308+
* The Minix Neo Z83-4 has a micro-USB-B id-pin handler for
1309+
* a non existing micro-USB-B connector which puts the HDMI
1310+
* DDC pins in GPIO mode, breaking HDMI support.
1311+
*/
13071312
.matches = {
13081313
DMI_MATCH(DMI_SYS_VENDOR, "MINIX"),
13091314
DMI_MATCH(DMI_PRODUCT_NAME, "Z83-4"),
13101315
}
13111316
},
1317+
{
1318+
/*
1319+
* The Terra Pad 1061 has a micro-USB-B id-pin handler, which
1320+
* instead of controlling the actual micro-USB-B turns the 5V
1321+
* boost for its USB-A connector off. The actual micro-USB-B
1322+
* connector is wired for charging only.
1323+
*/
1324+
.matches = {
1325+
DMI_MATCH(DMI_SYS_VENDOR, "Wortmann_AG"),
1326+
DMI_MATCH(DMI_PRODUCT_NAME, "TERRA_PAD_1061"),
1327+
}
1328+
},
13121329
{} /* Terminating entry */
13131330
};
13141331

tools/gpio/Build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
gpio-utils-y += gpio-utils.o
12
lsgpio-y += lsgpio.o gpio-utils.o
23
gpio-hammer-y += gpio-hammer.o gpio-utils.o
34
gpio-event-mon-y += gpio-event-mon.o gpio-utils.o

tools/gpio/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ $(OUTPUT)include/linux/gpio.h: ../../include/uapi/linux/gpio.h
3535

3636
prepare: $(OUTPUT)include/linux/gpio.h
3737

38+
GPIO_UTILS_IN := $(output)gpio-utils-in.o
39+
$(GPIO_UTILS_IN): prepare FORCE
40+
$(Q)$(MAKE) $(build)=gpio-utils
41+
3842
#
3943
# lsgpio
4044
#
4145
LSGPIO_IN := $(OUTPUT)lsgpio-in.o
42-
$(LSGPIO_IN): prepare FORCE
46+
$(LSGPIO_IN): prepare FORCE $(OUTPUT)gpio-utils-in.o
4347
$(Q)$(MAKE) $(build)=lsgpio
4448
$(OUTPUT)lsgpio: $(LSGPIO_IN)
4549
$(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
@@ -48,7 +52,7 @@ $(OUTPUT)lsgpio: $(LSGPIO_IN)
4852
# gpio-hammer
4953
#
5054
GPIO_HAMMER_IN := $(OUTPUT)gpio-hammer-in.o
51-
$(GPIO_HAMMER_IN): prepare FORCE
55+
$(GPIO_HAMMER_IN): prepare FORCE $(OUTPUT)gpio-utils-in.o
5256
$(Q)$(MAKE) $(build)=gpio-hammer
5357
$(OUTPUT)gpio-hammer: $(GPIO_HAMMER_IN)
5458
$(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
@@ -57,7 +61,7 @@ $(OUTPUT)gpio-hammer: $(GPIO_HAMMER_IN)
5761
# gpio-event-mon
5862
#
5963
GPIO_EVENT_MON_IN := $(OUTPUT)gpio-event-mon-in.o
60-
$(GPIO_EVENT_MON_IN): prepare FORCE
64+
$(GPIO_EVENT_MON_IN): prepare FORCE $(OUTPUT)gpio-utils-in.o
6165
$(Q)$(MAKE) $(build)=gpio-event-mon
6266
$(OUTPUT)gpio-event-mon: $(GPIO_EVENT_MON_IN)
6367
$(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@

0 commit comments

Comments
 (0)