diff options
author | Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> | 2011-09-16 17:49:27 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 16:12:39 +0200 |
commit | 7aa5ea47addd0a78f08702785dc2d3ca85c09dfa (patch) | |
tree | 262e10d201e06e0704904a91973c623ccbc217a7 /drivers/usb | |
parent | f30144f4af29d69ac00ddd7daec321949030803e (diff) |
u8500: USB: Remove max current constraint for abv3
In case of connection to standard host, maximum allowed
current is freely set as part of enumeration. Maximum
current limitation is retained only for ab versions
below 3.0.
ST-Ericsson ID: 343538
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Signed-off-by: dushyanth.sr <dushyanth.sr@stericsson.com>
Change-Id: Ia3375ce167bec1b4321e69e42f107b0550e98053
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31268
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/otg/ab8500-usb.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/usb/otg/ab8500-usb.c b/drivers/usb/otg/ab8500-usb.c index 8b9986ffb61..c48e9605754 100644 --- a/drivers/usb/otg/ab8500-usb.c +++ b/drivers/usb/otg/ab8500-usb.c @@ -412,16 +412,13 @@ static void ab8500_usb_phy_disable_work(struct work_struct *work) static unsigned ab8500_eyediagram_workaroud(struct ab8500_usb *ab, unsigned mA) { - if (mA > 100) { - /* AB V2 has eye diagram issues when drawing more - * than 100mA from VBUS.So setting charging current - * to 100mA in case of standard host - */ - if (ab->rev < 0x30) - mA = 100; - else - mA = 300; - } + /* AB V2 has eye diagram issues when drawing more + * than 100mA from VBUS.So setting charging current + * to 100mA in case of standard host + */ + if ((ab->rev < 0x30) && (mA > 100)) + mA = 100; + return mA; } |