linux/drivers
Michael Brunner bfea0f5c4b gpio: gpio-kempld: Fix get_direction return value
[ Upstream commit f230e8ffc0 ]

This patch fixes an inverted return value of the gpio get_direction
function.

The wrong value causes the direction sysfs entry and GPIO debugfs file
to indicate incorrect GPIO direction settings. In some cases it also
prevents setting GPIO output values.

The problem is also present in all other stable kernel versions since
linux-3.12.

Cc: Stable <stable@vger.kernel.org> # v3.12+
Reported-by: Jochen Henneberg <jh@henneberg-systemdesign.com>
Signed-off-by: Michael Brunner <michael.brunner@kontron.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-06-10 13:42:28 -04:00
..
accessibility printk: move braille console support into separate braille.[ch] files 2013-07-31 14:41:03 -07:00
acpi ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers. 2015-06-09 13:43:42 -04:00
amba PM / Domains: Move dev_pm_domain_attach|detach() to pm_domain.h 2014-09-30 01:16:44 +02:00
ata libata: Ignore spurious PHY event on LPM policy change 2015-06-10 13:42:26 -04:00
atm solos-pci: fix error return code 2014-11-23 14:29:44 -05:00
auxdisplay framebuffer: Use fb_<level> 2013-10-29 12:53:07 +02:00
base driver core: bus: Goto appropriate labels on failure in bus_add_device 2015-05-17 19:12:29 -04:00
bcma bcma: add another PCI ID of device with BCM43228 2014-10-23 14:02:06 -04:00
block rbd: end I/O the entire obj_request on error 2015-05-17 19:12:40 -04:00
bluetooth Bluetooth: ath3k: Add support Atheros AR5B195 combo Mini PCIe card 2015-05-17 19:12:13 -04:00
bus bus: mvebu-mbus: fix support of MBus window 13 2015-01-29 17:40:44 -08:00
cdrom block,scsi: fixup blk_get_request dead queue scenarios 2014-08-28 10:03:46 -06:00
char tpm/tpm_i2c_stm_st33: Add status check when reading data on the FIFO 2015-03-28 09:43:13 -04:00
clk clk: at91: usb: fix determine_rate prototype 2015-05-17 19:12:33 -04:00
clocksource clocksource: efm32: Fix a NULL pointer dereference 2015-04-16 20:11:29 -04:00
connector connector: Use ktime_get_ns() 2014-07-23 10:18:07 -07:00
cpufreq cpufreq: Schedule work for the first-online CPU on resume 2015-04-24 17:13:44 -04:00
cpuidle cpuidle: remove state_count field from struct cpuidle_device 2015-04-24 17:13:56 -04:00
crypto crypto: omap-aes - Fix support for unequal lengths 2015-05-17 19:12:28 -04:00
dca dca: convert to idr_alloc() 2013-02-27 19:10:15 -08:00
devfreq PM / devfreq: exynos: Enable building exynos PPMU as module 2014-09-29 20:22:36 +09:00
dio m68k: don't export static inline functions 2009-12-06 11:18:28 +01:00
dma dmaengine: omap-dma: Fix memory leak when terminating running transfer 2015-04-24 17:13:54 -04:00
dma-buf reservation: Remove shadowing local variable 'ret' 2015-03-23 21:02:50 -04:00
edac x86, mce, severity: Extend the the mce_severity mechanism to handle UCNA/DEFERRED error 2015-06-09 13:43:45 -04:00
eisa Revert "EISA: Initialize device before its resources" 2014-01-17 14:57:29 -07:00
extcon extcon: gpio: Fix code cleanup 2014-09-22 16:48:47 +09:00
firewire firewire: cdev: prevent kernel stack leaking into ioctl arguments 2014-11-14 12:10:13 +01:00
firmware efi/libstub: Fix boundary checking in efi_high_alloc() 2015-03-23 21:02:50 -04:00
fmc Merge 3.14-rc5 into char-misc-next 2014-03-02 19:53:09 -08:00
gpio gpio: gpio-kempld: Fix get_direction return value 2015-06-10 13:42:28 -04:00
gpu drm/radeon: more strictly validate the UVD codec 2015-06-09 13:43:37 -04:00
hid HID: wacom: Report ABS_MISC event for Cintiq Companion Hybrid 2015-03-23 21:02:48 -04:00
hsi HSI changes for the v3.17 series 2014-08-06 20:06:14 -07:00
hv Drivers: hv: vmbus: Don't wait after requesting offers 2015-05-17 19:12:43 -04:00
hwmon hwmon: (nct6683) Add missing sysfs attribute initialization 2015-06-09 14:31:42 -04:00
hwspinlock hwspinlock: enable OMAP build for AM33xx, AM43xx & DRA7xx 2014-07-29 11:46:28 +03:00
i2c i2c: core: Export bus recovery functions 2015-05-17 19:12:23 -04:00
ide Merge branch 'for-3.18/drivers' of git://git.kernel.dk/linux-block 2014-10-18 12:12:45 -07:00
idle intel_idle: Broadwell support 2014-08-15 17:06:40 -04:00
iio iio: adc: xilinx: Fix VREFN sign 2015-06-09 14:31:41 -04:00
infiniband RDMA/core: Fix for parsing netlink string attribute 2015-06-10 13:42:13 -04:00
input Input: elantech - fix absolute mode setting on some ASUS laptops 2015-05-17 19:12:05 -04:00
iommu iommu/vt-d: Detach domain *only* from attached iommus 2015-04-24 17:14:02 -04:00
ipack ipoctal: clear break interrupt as soon as it occurs 2014-09-23 23:26:42 -07:00
irqchip irqchip: armada-370-xp: Fix chained per-cpu interrupts 2015-03-28 10:03:20 -04:00
isdn isdn/gigaset: fix usb_gigaset write_cmd result race 2014-10-14 15:05:35 -04:00
leds leds: netxbig: fix oops at probe time 2015-01-27 08:29:40 -08:00
lguest lguest: fix out-by-one error in address checking. 2015-06-09 13:43:52 -04:00
macintosh powerpc: Move via-cuda symbol exports next to function definitions 2014-09-25 23:14:37 +10:00
mailbox Merge branch 'mailbox-for-linus' of git://git.linaro.org/landing-teams/working/fujitsu/integration 2014-10-21 11:21:19 -07:00
mcb mcb: Add support for shared PCI IRQs 2014-05-27 17:38:11 -07:00
md Revert "dm crypt: fix deadlock when async crypto algorithm returns -EBUSY" 2015-05-23 15:53:28 -04:00
media [media] stk1160: Make sure current buffer is released 2015-05-17 19:12:21 -04:00
memory AT91 reset, poweroff and ram drivers 2014-08-25 15:35:26 +02:00
memstick memstick: mspro_block: add missing curly braces 2015-05-17 19:12:28 -04:00
message SCSI for-linus on 20141007 2014-10-07 21:29:18 -04:00
mfd mfd: kempld-core: Fix callback return value check 2015-04-16 20:13:19 -04:00
misc cxl: Add missing return statement after handling AFU errror 2015-03-23 21:02:54 -04:00
mmc mmc: atmel-mci: fix bad variable type for clkdiv 2015-06-10 13:42:22 -04:00
mtd UBI: fix check for "too many bytes" 2015-05-17 19:12:11 -04:00
net rt2x00: add new rt2800usb device DWA 130 2015-06-10 13:42:27 -04:00
nfc NFC: st21nfcb: Retry i2c_master_send if it returns a negative value 2015-05-17 19:12:06 -04:00
ntb ntb: Adding split BAR support for Haswell platforms 2014-10-17 07:08:51 -04:00
nubus kernel/printk: use symbolic defines for console loglevels 2014-06-04 16:54:17 -07:00
of drivers/of: Add empty ranges quirk for PA-Semi 2015-04-24 17:14:03 -04:00
oprofile drivers/oprofile: Replace __get_cpu_var uses for address calculation 2014-08-26 13:45:46 -04:00
parisc Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-10-13 16:23:15 +02:00
parport parport: parport_pc: Implement architecture and device check to cut off false-positives 2014-09-23 23:14:28 -07:00
pci PCI: spear: Drop __initdata from spear13xx_pcie_driver 2015-04-22 23:31:01 -04:00
pcmcia Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2014-08-07 08:50:34 -07:00
phy phy: Find the right match in devm_phy_destroy() 2015-04-16 20:11:41 -04:00
pinctrl pinctrl: Don't just pretend to protect pinctrl_maps, do it for real 2015-06-09 13:43:37 -04:00
platform compal-laptop: Check return value of power_supply_register 2015-05-17 19:11:55 -04:00
pnp PNP: replace strnicmp with strncasecmp 2014-10-14 02:18:25 +02:00
power power_supply: ipaq_micro_battery: Check return values in probe 2015-05-17 19:11:56 -04:00
powercap powercap / RAPL: change domain detection message 2014-09-03 01:29:00 +02:00
pps drivers/pps/clients/pps-gpio.c: remove redundant of_match_ptr 2013-11-13 12:09:35 +09:00
ps3 ps3-vuart: don't use PREPARE_WORK 2014-03-07 10:24:48 -05:00
ptp PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
pwm pwm: Changes for v3.18-rc1 2014-10-21 08:17:43 -07:00
rapidio PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ras trace, RAS: Add eMCA trace event interface 2014-06-25 13:26:47 -07:00
regulator regulator: palmas: Correct TPS659038 register definition for REGEN2 2015-04-16 20:13:16 -04:00
remoteproc remoteproc: da8xx: don't select CMA on no-MMU 2014-06-17 17:09:36 +02:00
reset reset: sunxi: fix spinlock initialization 2015-01-27 08:29:41 -08:00
rpmsg A small pull request consisting of: 2013-05-07 14:02:00 -07:00
rtc drivers/rtc/rtc-s3c.c: add .needs_src_clk to s3c6410 RTC data 2015-03-28 09:59:44 -04:00
s390 crypto: prefix module autoloading with "crypto-" 2015-01-29 17:40:46 -08:00
sbus Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc 2014-08-05 18:57:18 -07:00
scsi 3w-sas: fix command completion race 2015-05-17 19:12:42 -04:00
sfi SFI / ACPI: Fix warnings reported during builds with W=1 2013-12-07 01:24:33 +01:00
sh drivers: sh: Leave disabling of unused PM domains to genpd 2014-09-09 00:46:13 +02:00
sn Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
soc soc: versatile: Add terminating entry for realview_soc_of_match 2014-10-28 22:05:07 +01:00
spi spi: spidev: fix possible arithmetic overflow for multi-transfer message 2015-05-17 19:11:54 -04:00
spmi spmi: Remove duplicate inclusion of module.h 2014-07-10 15:22:13 -07:00
ssb SSB: fix Kconfig dependencies 2015-05-17 19:12:34 -04:00
staging staging: vt6656: use ieee80211_tx_info to select packet type. 2015-06-10 13:42:14 -04:00
target target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST 2015-06-10 13:42:15 -04:00
tc TC: Handle device_register() errors. 2014-06-26 10:48:23 +01:00
thermal tick/powerclamp: Remove tick_nohz_idle abuse 2015-01-27 08:29:37 -08:00
thunderbolt thunderbolt: Clear hops before overwriting 2014-08-26 14:54:48 -07:00
tty tty/n_gsm.c: fix a memory leak when gsmtty is removed 2015-06-10 13:42:22 -04:00
uio uio: Export definition of struct uio_device 2014-10-02 21:35:54 -07:00
usb usb: gadget: configfs: Fix interfaces array NULL-termination 2015-06-10 13:42:20 -04:00
uwb uwb: add an ASIE sysfs attribute to uwb_rc devices 2014-09-23 22:05:26 -07:00
vfio vfio-pci: Fix the check on pci device type in vfio_pci_probe() 2015-01-27 08:29:40 -08:00
vhost vhost-scsi: Add missing virtio-scsi -> TCM attribute conversion 2015-01-27 08:29:45 -08:00
video video/fbdev: fix defio's fsync 2015-01-27 08:29:39 -08:00
virt drivers: clean-up prom.h implicit includes 2013-10-09 20:04:04 -05:00
virtio virtio-balloon: do not call blocking ops when !TASK_RUNNING 2015-04-16 20:11:27 -04:00
vlynq drivers/vlynq/vlynq.c: fix another resource size off by 1 error 2014-01-23 16:36:55 -08:00
vme vme: bridges: use pci_zalloc_consistent 2014-08-08 15:57:30 -07:00
w1 w1: select crc16 library for ds2406 2014-06-23 12:38:08 -04:00
watchdog watchdog: s3c2410_wdt: Fix the mask bit offset for Exynos7 2014-12-05 20:21:35 +01:00
xen xen/events: don't bind non-percpu VIRQs with percpu chip 2015-06-09 13:43:54 -04:00
zorro zorro: Use ARRAY_SIZE 2014-07-11 10:38:02 +02:00
Kconfig soc: ti: add Keystone Navigator QMSS driver 2014-09-24 09:49:14 -04:00
Makefile Driver core patches for 3.17-rc1 2014-08-04 18:34:04 -07:00