linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: balbi@kernel.org (Felipe Balbi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv4 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800
Date: Wed, 25 Oct 2017 15:46:52 +0300	[thread overview]
Message-ID: <87d15bfl8j.fsf@linux.intel.com> (raw)
In-Reply-To: <fca01b97-eea1-cc6f-9c12-fa8d9e55d980@ti.com>


Hi,

Kishon Vijay Abraham I <kishon@ti.com> writes:
> Felipe,
>
> On Monday 09 October 2017 05:30 PM, Andrzej Pietrasiewicz wrote:
>> From: Vivek Gautam <gautam.vivek@samsung.com>
>> 
>> Adding phy calibration sequence for USB 3.0 DRD PHY present on
>> Exynos5420/5800 systems.
>> This calibration facilitates setting certain PHY parameters viz.
>> the Loss-of-Signal (LOS) Detector Threshold Level, as well as
>> Tx-Vboost-Level for Super-Speed operations.
>> Additionally we also set proper time to wait for RxDetect measurement,
>> for desired PHY reference clock, so as to solve issue with enumeration
>> of few USB 3.0 devices, like Samsung SUM-TSB16S 3.0 USB drive
>> on the controller.
>> 
>> We are using CR_port for this purpose to send required data
>> to override the LOS values.
>> 
>> On testing with USB 3.0 devices on USB 3.0 port present on
>> SMDK5420, and peach-pit boards should see following message:
>> usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
>> 
>> and without this patch, should see below shown message:
>> usb 1-1: new high-speed USB device number 2 using xhci-hcd
>> 
>> [Also removed unnecessary extra lines in the register macro definitions]
>> 
>> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
>> [adapted to use phy_calibrate as entry point]
>> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
>> ---
>>  drivers/phy/samsung/phy-exynos5-usbdrd.c | 183 +++++++++++++++++++++++++++++++
>>  drivers/usb/dwc3/core.c                  |   7 +-
>
> are you okay with this patch?

if the API is fine for you, I'm okay with it being called from dwc3
core:

Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>

-- 
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171025/2f3c824f/attachment.sig>

  reply	other threads:[~2017-10-25 12:46 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170918100229eucas1p24733d7108dfbcf16a59476c1efd7d56a@eucas1p2.samsung.com>
2017-09-18 10:02 ` [PATCH 0/2] dwc3 on XU3 and XU4 Andrzej Pietrasiewicz
     [not found]   ` <CGME20170918100230eucas1p29fae00c53f1106af1961a6e269740b2f@eucas1p2.samsung.com>
2017-09-18 10:02     ` [PATCH 1/2] ARM: dts: exynos: Add dwc3 SUSPHY quirk Andrzej Pietrasiewicz
2017-09-19 17:40       ` Krzysztof Kozlowski
2017-09-19 18:10         ` Robin Murphy
2017-09-22  8:18           ` Andrzej Pietrasiewicz
2017-09-25 18:49             ` Krzysztof Kozlowski
     [not found]   ` <CGME20170918100944eucas1p2735d3d6a6ee562b927fb9dfaeb0d4090@eucas1p2.samsung.com>
2017-09-18 10:09     ` [PATCH 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800 Andrzej Pietrasiewicz
2017-09-18 10:38       ` Felipe Balbi
2017-09-18 11:06         ` Kishon Vijay Abraham I
2017-09-18 11:27           ` Andrzej Pietrasiewicz
2017-09-18 11:41             ` Andrzej Pietrasiewicz
2017-09-18 12:43               ` Felipe Balbi
2017-09-18 14:20                 ` Andrzej Pietrasiewicz
2017-09-21 11:07                   ` Kishon Vijay Abraham I
     [not found]                     ` <CGME20171003125944eucas1p1fad23e6171786fda69ccd9419354911b@eucas1p1.samsung.com>
2017-10-03 12:59                       ` [PATCHv2 0/2] Andrzej Pietrasiewicz
     [not found]                         ` <CGME20171003125945eucas1p24d49f5c51ea9acd59a76314158b69352@eucas1p2.samsung.com>
2017-10-03 12:59                           ` [PATCHv2 1/2] drivers: phy: add calibrate method Andrzej Pietrasiewicz
     [not found]                         ` <CGME20171003125946eucas1p14569ac9f0a3a19fb3a60fd977f92a711@eucas1p1.samsung.com>
2017-10-03 12:59                           ` [PATCHv2 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800 Andrzej Pietrasiewicz
2017-10-05  8:00                             ` kbuild test robot
2017-10-03 13:19                         ` [PATCHv2 0/2] Andrzej Pietrasiewicz
2017-10-04  4:22                         ` Kishon Vijay Abraham I
2017-10-04  7:05                           ` [PATCHv2 0/2] dwc3 on XU3 Andrzej Pietrasiewicz
     [not found]                             ` <CGME20171005121201eucas1p2d8e7c3bf18b24ffaa0bf9593dcffe37e@eucas1p2.samsung.com>
2017-10-05 12:11                               ` [PATCHv3 " Andrzej Pietrasiewicz
     [not found]                                 ` <CGME20171005121201eucas1p269da2155c4257777b0c3a5b210c651f8@eucas1p2.samsung.com>
2017-10-05 12:11                                   ` [PATCHv3 1/2] drivers: phy: add calibrate method Andrzej Pietrasiewicz
2017-10-09 10:15                                     ` Kishon Vijay Abraham I
     [not found]                                       ` <CGME20171009120100eucas1p2400a1ee4a7c70eed37c653de780b715d@eucas1p2.samsung.com>
2017-10-09 12:00                                         ` [PATCHv4 0/2] dwc3 on XU3 Andrzej Pietrasiewicz
     [not found]                                           ` <CGME20171009120101eucas1p1c79faf4b39df7f9ff622404a15922875@eucas1p1.samsung.com>
2017-10-09 12:00                                             ` [PATCHv4 1/2] drivers: phy: add calibrate method Andrzej Pietrasiewicz
     [not found]                                           ` <CGME20171009120101eucas1p1066709725b5c6ca66961b85268480702@eucas1p1.samsung.com>
2017-10-09 12:00                                             ` [PATCHv4 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800 Andrzej Pietrasiewicz
2017-10-25 11:20                                               ` Kishon Vijay Abraham I
2017-10-25 12:46                                                 ` Felipe Balbi [this message]
2017-10-18 12:47                                           ` [PATCHv4 0/2] dwc3 on XU3 Kishon Vijay Abraham I
     [not found]                                 ` <CGME20171005121202eucas1p249a72bb6d8dde4a61134ffb49216d4c5@eucas1p2.samsung.com>
2017-10-05 12:11                                   ` [PATCHv3 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800 Andrzej Pietrasiewicz
2017-10-05 12:28                                     ` Sylwester Nawrocki
2017-09-18 11:19   ` [PATCH 0/2] dwc3 on XU3 and XU4 Anand Moon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d15bfl8j.fsf@linux.intel.com \
    --to=balbi@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).