android_kernel_motorola_sm6375/drivers/misc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bartosz Golaszewski 5478e478ee eeprom: at24: correctly set the size for at24mac402
There's an ilog2() expansion in AT24_DEVICE_MAGIC() which rounds down
the actual size of EUI-48 byte array in at24mac402 eeproms to 4 from 6,
making it impossible to read it all.

Fix it by manually adjusting the value in probe().

This patch contains a temporary fix that is suitable for stable
branches. Eventually we'll probably remove the call to ilog2() while
converting the magic values to actual structs.

Cc: stable@vger.kernel.org
Fixes: 0b813658c1 ("eeprom: at24: add support for at24mac series")
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
2017-11-29 15:22:24 +01:00
..
altera-stapl
c2port kmemcheck: remove annotations 2017-11-15 18:21:04 -08:00
cb710
cxl powerpc updates for 4.15 2017-11-16 12:47:46 -08:00
echo
eeprom eeprom: at24: correctly set the size for at24mac402 2017-11-29 15:22:24 +01:00
genwqe
ibmasm Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2017-11-15 10:14:11 -08:00
lis3lv02d
mei Char/Misc patches for 4.15-rc1 2017-11-16 09:10:59 -08:00
mic Char/Misc patches for 4.15-rc1 2017-11-16 09:10:59 -08:00
sgi-gru
sgi-xp Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-11-13 17:56:58 -08:00
ti-st
vmw_vmci
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
aspeed-lpc-ctrl.c
aspeed-lpc-snoop.c
atmel-ssc.c
atmel_tclib.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fsa9480.c
hmc6352.c
hpilo.c
hpilo.h
ics932s401.c
ioc4.c
isl29003.c
isl29020.c
Kconfig
kgdbts.c
lattice-ecp3-config.c
lkdtm.h
lkdtm_bugs.c lkdtm: include WARN format string 2017-11-17 16:10:01 -08:00
lkdtm_core.c
lkdtm_heap.c
lkdtm_perms.c
lkdtm_refcount.c
lkdtm_rodata.c
lkdtm_usercopy.c
Makefile Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
pch_phub.c
pci_endpoint_test.c
phantom.c
pti.c
qcom-coincell.c
spear13xx_pcie_gadget.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tsl2550.c
vexpress-syscfg.c
vmw_balloon.c x86/virt: Add enum for hypervisors to replace x86_hyper 2017-11-10 10:03:12 +01:00