mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 15:09:53 +00:00
cbd2780fce
This patch fixes bug on gpio drive strength helper function. The offset should be like follwoing. - off = chip->chip.base - pin; + off = pin - chip->chip.base; In the s5p_gpio_get_drvstr(), the second line is unnecessary, because overwrite drvstr. drvstr = __raw_readl(reg); - drvstr = 0xffff & (0x3 << shift); And need 2bit masking before return the drvstr value. drvstr = drvstr >> shift; + drvstr &= 0x3; In the s5p_gpio_set_drvstr(), need relevant bit clear. tmp = __raw_readl(reg); + tmp &= ~(0x3 << shift); tmp |= drvstr << shift; Reported-by: Jaecheol Lee <jc.lee@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> |
||
---|---|---|
.. | ||
include/plat | ||
adc.c | ||
clock-clksrc.c | ||
clock.c | ||
dev-adc.c | ||
dev-fb.c | ||
dev-hsmmc1.c | ||
dev-hsmmc2.c | ||
dev-hsmmc3.c | ||
dev-hsmmc.c | ||
dev-hwmon.c | ||
dev-i2c0.c | ||
dev-i2c1.c | ||
dev-i2c2.c | ||
dev-ide.c | ||
dev-keypad.c | ||
dev-nand.c | ||
dev-onenand.c | ||
dev-rtc.c | ||
dev-ts.c | ||
dev-uart.c | ||
dev-usb-hsotg.c | ||
dev-usb.c | ||
dev-wdt.c | ||
dma.c | ||
gpio-config.c | ||
gpio.c | ||
gpiolib.c | ||
init.c | ||
irq-uart.c | ||
irq-vic-timer.c | ||
Kconfig | ||
Makefile | ||
platformdata.c | ||
pm-check.c | ||
pm-gpio.c | ||
pm.c | ||
pwm-clock.c | ||
pwm.c | ||
s3c-pl330.c | ||
time.c | ||
wakeup-mask.c |