The patch titled chardev: GPIO for SCx200 & PC-8736x: display pin values in/out in gpio_dump has been added to the -mm tree. Its filename is chardev-gpio-for-scx200-pc-8736x-display-pin.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: chardev: GPIO for SCx200 & PC-8736x: display pin values in/out in gpio_dump From: Jim Cromie <jim.cromie@xxxxxxxxx> Add current pin settings to gpio_dump() output. This adds the last 'word' to the syslog lines, which displays the input and output values that the pin is set to. pc8736x_gpio.0: io00: 0x0044 TS OD PUE EDGE LO DEBOUNCE io:1/1 The 2 values may differ for a number of reasons: 1- the pin output circuitry is diaabled, (as the above 'TS' indicates) 2- it needs a pullup resistor to drive the attached circuit, 3- the external circuit needs a pullup so the open-drain has something to pull-down 4- the pin is wired to Vcc or Ground It might be appropriate to add a WARN for 2,3,4, since they could damage the chip and/or circuit, esp if misconfig goes unnoticed. Signed-off-by: Jim Cromie <jim.cromie@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/char/nsc_gpio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff -puN drivers/char/nsc_gpio.c~chardev-gpio-for-scx200-pc-8736x-display-pin drivers/char/nsc_gpio.c --- a/drivers/char/nsc_gpio.c~chardev-gpio-for-scx200-pc-8736x-display-pin +++ a/drivers/char/nsc_gpio.c @@ -26,7 +26,7 @@ void nsc_gpio_dump(struct nsc_gpio_ops * u32 config = amp->gpio_config(index, ~0, 0); /* user requested via 'v' command, so its INFO */ - dev_info(amp->dev, "io%02u: 0x%04x %s %s %s %s %s %s %s\n", + dev_info(amp->dev, "io%02u: 0x%04x %s %s %s %s %s %s %s\tio:%d/%d\n", index, config, (config & 1) ? "OE" : "TS", /* output-enabled/tristate */ (config & 2) ? "PP" : "OD", /* push pull / open drain */ @@ -34,7 +34,9 @@ void nsc_gpio_dump(struct nsc_gpio_ops * (config & 8) ? "LOCKED" : "", /* locked / unlocked */ (config & 16) ? "LEVEL" : "EDGE",/* level/edge input */ (config & 32) ? "HI" : "LO", /* trigger on rise/fall edge */ - (config & 64) ? "DEBOUNCE" : ""); /* debounce */ + (config & 64) ? "DEBOUNCE" : "", /* debounce */ + + amp->gpio_get(index), amp->gpio_current(index)); } ssize_t nsc_gpio_write(struct file *file, const char __user *data, _ Patches currently in -mm which might be from jim.cromie@xxxxxxxxx are chardev-gpio-for-scx200-pc-8736x-whitespace.patch chardev-gpio-for-scx200-pc-8736x-modernize.patch chardev-gpio-for-scx200-pc-8736x-add-platforn_device.patch chardev-gpio-for-scx200-pc-8736x-device-minor.patch chardev-gpio-for-scx200-pc-8736x-put-gpio_dump.patch chardev-gpio-for-scx200-pc-8736x-add-v-command.patch chardev-gpio-for-scx200-pc-8736x-refactor-scx200_probe.patch chardev-gpio-for-scx200-pc-8736x-add-gpio-ops.patch chardev-gpio-for-scx200-pc-8736x-dispatch.patch chardev-gpio-for-scx200-pc-8736x-add-empty.patch chardev-gpio-for-scx200-pc-8736x-migrate-file-ops.patch chardev-gpio-for-scx200-pc-8736x-migrate-gpio_dump.patch chardev-gpio-for-scx200-pc-8736x-add-new-pc8736x_gpio.patch chardev-gpio-for-scx200-pc-8736x-add-platform_device.patch chardev-gpio-for-scx200-pc-8736x-use-dev_dbg.patch chardev-gpio-for-scx200-pc-8736x-fix-gpio_current.patch chardev-gpio-for-scx200-pc-8736x-replace-spinlocks.patch chardev-gpio-for-scx200-pc-8736x-display-pin.patch chardev-gpio-for-scx200-pc-8736x-add-proper.patch chardev-gpio-for-scx200-pc-8736x-add-sysfs-gpio.patch generic-time-add-macro-to-simplify-hide-mask.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html