usb: phy: ab8500-usb: fix phy tuning value select logic
authorFabio Baltieri <fabio.baltieri@linaro.org>
Wed, 15 May 2013 12:03:28 +0000 (14:03 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 17:01:34 +0000 (20:01 +0300)
commita96afc6b75cf9e7991a9b869246c5dca2a8a4e7a
tree05743e26835f47e26663fb4ae0175a27f5b8beb7
parentfb21f37a5249374ed63f763455a0b07b80c1e50c
usb: phy: ab8500-usb: fix phy tuning value select logic

The driver supports both ab8500 and ab8505, but the actual phy tuning
values logic sets ab8500 values:

if (!is_ab8500_2p0_or_earlier(ab->ab8500))

which is supposed to set values for ab8500, but incorrectly results true
for ab8505 too.

Fix this by adding an additional is_ab8500(ab->ab8500) check.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-ab8500-usb.c