max310x: max3109_detect should use indirect addressing in SPI mode for REVID register
authorGregory Hermant <gregory.hermant@calao-systems.com>
Tue, 30 Sep 2014 06:59:17 +0000 (08:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:24:07 +0000 (19:24 -0800)
commit32304d753304b1aaf79eb4957d1d1375ddc92c14
tree23b094b04bf4b2d72e408f92154e8430c55bead2
parent510d483285432e45c453722f7ff7a9cf63e95bc4
max310x: max3109_detect should use indirect addressing in SPI mode for REVID register

This patch allows to read the REV_ID register in SPI mode and consequently
to properly detect the max3109. Indeed in SPI mode, this register is only
accessible by using indirect addressing.

Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c