android_kernel_samsung_a7y1.../drivers
Tony Lindgren 58fb439ed0 mfd: twl6040: Fix device init errors for ACCCTL register
[ Upstream commit 48171d0ea7caccf21c9ee3ae75eb370f2a756062 ]

I noticed that we can get a -EREMOTEIO errors on at least omap4 duovero:

twl6040 0-004b: Failed to write 2d = 19: -121

And then any following register access will produce errors.

There 2d offset above is register ACCCTL that gets written on twl6040
powerup. With error checking added to the related regcache_sync() call,
the -EREMOTEIO error is reproducable on twl6040 powerup at least
duovero.

To fix the error, we need to wait until twl6040 is accessible after the
powerup. Based on tests on omap4 duovero, we need to wait over 8ms after
powerup before register write will complete without failures. Let's also
make sure we warn about possible errors too.

Note that we have twl6040_patch[] reg_sequence with the ACCCTL register
configuration and regcache_sync() will write the new value to ACCCTL.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 19:01:47 +02:00
..
accessibility
acpi
amba
android Revert "binder: Replace "%p" with "%pK" for stable" 2020-04-06 18:52:40 +02:00
ata
atm
auxdisplay
base PM / core: Propagate dev->power.wakeup_path when no callbacks 2020-04-06 18:19:21 +02:00
battery
battery_v2
bcma
block
bluetooth
bts
bus
ccic
cdrom
char virtio_console: initialize vtermno value for ports 2020-04-06 18:20:12 +02:00
clk
clocksource
connector
cpufreq cpufreq: pmac32: fix possible object reference leak 2020-04-06 18:19:31 +02:00
cpuidle
crypto crypto: vmx - ghash: do nosimd fallback manually 2020-04-06 18:20:52 +02:00
dca
devfreq
dio
dma dmaengine: at_xdmac: remove BUG_ON macro in tasklet 2020-04-06 18:18:35 +02:00
dma-buf
edac
eisa
extcon extcon: arizona: Disable mic detect if running when driver is removed 2020-04-06 18:19:23 +02:00
fingerprint
firewire
firmware
five
fmc
fpga
gator
gpio
gps
gpu drm/gma500/cdv: Check vbt config bits when detecting lvds panels 2020-04-06 18:45:20 +02:00
gud
hid HID: core: move Usage Page concatenation to Main item 2020-04-06 18:20:00 +02:00
hsi
hv
hwmon hwmon: (f71805f) Use request_muxed_region for Super-IO accesses 2020-04-06 18:19:12 +02:00
hwspinlock
hwtracing
i2c
ide
idle
iio iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2020-04-06 18:19:39 +02:00
infiniband RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure 2020-04-06 18:19:02 +02:00
input
iommu
ipack
irqchip
isdn
leds
lguest
lightnvm
macintosh
mailbox
mcb
md bcache: avoid clang -Wunintialized warning 2020-04-06 18:18:21 +02:00
media media: uvcvideo: Fix uvc_alloc_entity() allocation alignment 2020-04-06 18:44:58 +02:00
memory
memstick
message
mfd mfd: twl6040: Fix device init errors for ACCCTL register 2020-04-06 19:01:47 +02:00
misc genwqe: Prevent an integer overflow in the ioctl 2020-04-06 18:45:18 +02:00
mmc mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support 2020-04-06 18:19:19 +02:00
motor
mtd
muic
net net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query 2020-04-06 18:45:04 +02:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
oprofile
parisc parisc: Use implicit space register selection for loading the coherence index of I/O pdirs 2020-04-06 18:45:12 +02:00
parport
pci
pcmcia
perf
phy
pinctrl pinctrl: pistachio: fix leaked of_node references 2020-04-06 18:18:33 +02:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc rtc: 88pm860x: prevent use-after-free on device remove 2020-04-06 18:15:42 +02:00
s390 scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs) 2020-04-06 18:21:26 +02:00
sbus
scsi scsi: lpfc: Fix SLI3 commands being issued on SLI4 devices 2020-04-06 18:20:27 +02:00
security/samsung/icdrv
sensorhub
sensors
sfi
sh
sn
soc
spi spi: Fix zero length xfer bug 2020-04-06 18:20:33 +02:00
spmi
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2020-04-06 18:15:20 +02:00
staging iio: hmc5843: fix potential NULL pointer dereferences 2020-04-06 18:19:37 +02:00
switch
target
tc
tee
thermal
thunderbolt
trace
tty tty: max310x: Fix external crystal register setup 2020-04-06 18:21:35 +02:00
uh
uio
usb USB: rio500: fix memory leak in close after disconnect 2020-04-06 18:21:16 +02:00
uwb
vfio
vhost
video
virt
virtio
vision
vlynq
vme
w1 w1: fix the resume command API 2020-04-06 18:15:45 +02:00
watchdog
xen fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock 2020-04-06 18:47:45 +02:00
zorro
Kconfig
Makefile