]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
drivers: dwc3: Correct the logic for GFLADJ adjustment
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Fri, 10 Mar 2017 13:48:16 +0000 (19:18 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 10 Mar 2017 14:11:59 +0000 (15:11 +0100)
commita22ddbcdacb403be54e96dbb1f6fbbf097b629bb
tree72bc8496eaefdc66c3deeebad1e4255f73618acc
parent75334bd733b324c967ebecb70e655cab8e09996c
drivers: dwc3: Correct the logic for GFLADJ adjustment

This patch corrects the logic used for adjusting GFLADJ register

Currently during phy initialization, USB core reset is happening.
Because of reset USB GFLADJ register is getting restored to default
values. This patch updates the GFADJ[21:8] & GFLADJ[5:0] bits if
they are not equal to the requested value from dts.
This patch also removes the WARN_ONCE messages that occur if the
previous register value matches to the current value requested.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/dwc3/core.c