WSL2-Linux-Kernel/drivers
JC Kuo d0144ce7c0 clk: tegra210: fix PLLU and PLLU_OUT1
[ Upstream commit 0d34dfbf30 ]

Full-speed and low-speed USB devices do not work with Tegra210
platforms because of incorrect PLLU/PLLU_OUT1 clock settings.

When full-speed device is connected:
[   14.059886] usb 1-3: new full-speed USB device number 2 using tegra-xusb
[   14.196295] usb 1-3: device descriptor read/64, error -71
[   14.436311] usb 1-3: device descriptor read/64, error -71
[   14.675749] usb 1-3: new full-speed USB device number 3 using tegra-xusb
[   14.812335] usb 1-3: device descriptor read/64, error -71
[   15.052316] usb 1-3: device descriptor read/64, error -71
[   15.164799] usb usb1-port3: attempt power cycle

When low-speed device is connected:
[   37.610949] usb usb1-port3: Cannot enable. Maybe the USB cable is bad?
[   38.557376] usb usb1-port3: Cannot enable. Maybe the USB cable is bad?
[   38.564977] usb usb1-port3: attempt power cycle

This commit fixes the issue by:
 1. initializing PLLU_OUT1 before initializing XUSB_FS_SRC clock
    because PLLU_OUT1 is parent of XUSB_FS_SRC.
 2. changing PLLU post-divider to /2 (DIVP=1) according to Technical
    Reference Manual.

Fixes: e745f992cf ("clk: tegra: Rework pll_u")
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Acked-By: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-06 19:05:21 +02:00
..
accessibility
acpi pstore: Convert buf_lock to semaphore 2019-06-11 12:21:48 +02:00
amba
android binder: fix possible UAF when freeing buffer 2019-08-04 09:32:01 +02:00
ata libata: don't request sense data on !ZAC ATA devices 2019-07-31 07:28:30 +02:00
atm atm: he: fix sign-extension overflow on large shift 2019-02-27 10:08:05 +01:00
auxdisplay auxdisplay: hd44780: Fix memory leak on ->remove() 2019-04-20 09:15:00 +02:00
base regmap: fix bulk writes on paged registers 2019-07-31 07:28:25 +02:00
bcma
block floppy: fix out-of-bounds read in copy_buffer 2019-07-31 07:28:34 +02:00
bluetooth Bluetooth: hci_uart: check for missing tty operations 2019-08-04 09:32:02 +02:00
bus bus: arm-cci: remove unnecessary unreachable() 2018-12-01 09:42:49 +01:00
cdrom cdrom: Fix race condition in cdrom_sysctl_register 2019-04-05 22:31:35 +02:00
char hpet: Fix division by zero in hpet_time_div() 2019-07-31 07:28:58 +02:00
clk clk: tegra210: fix PLLU and PLLU_OUT1 2019-08-06 19:05:21 +02:00
clocksource clocksource/drivers/exynos_mct: Increase priority over ARM arch timer 2019-07-31 07:28:30 +02:00
connector
cpufreq cpufreq: kirkwood: fix possible object reference leak 2019-05-31 06:47:29 -07:00
cpuidle cpuidle: big.LITTLE: fix refcount leak 2019-02-12 19:46:03 +01:00
crypto crypto: caam - limit output IV to CBC to work around CTR mode DMA issue 2019-07-31 07:28:42 +02:00
dax
dca
devfreq
dio
dma dmaengine: rcar-dmac: Reject zero-length slave DMA requests 2019-08-06 19:05:21 +02:00
dma-buf dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc 2019-07-31 07:28:47 +02:00
edac EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2019-07-31 07:28:31 +02:00
eisa
extcon extcon: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:47:28 -07:00
firewire
firmware efi/bgrt: Drop BGRT status field reserved bits check 2019-07-21 09:04:38 +02:00
fmc
fpga fpga-manager: altera-ps-spi: Fix build error 2019-07-31 07:28:57 +02:00
fsi
gpio gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants 2019-07-31 07:28:32 +02:00
gpu drm/crc-debugfs: Also sprinkle irqrestore over early exits 2019-07-31 07:28:56 +02:00
hid HID: wacom: correct touch resolution x/y typo 2019-07-31 07:28:41 +02:00
hsi
hv Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup() 2019-05-10 17:53:08 +02:00
hwmon hwmon: (pmbus/core) Treat parameters as paged if on multiple pages 2019-06-25 11:36:53 +08:00
hwspinlock
hwtracing intel_th: msu: Fix single mode with disabled IOMMU 2019-07-31 07:28:43 +02:00
i2c i2c: qup: fixed releasing dma without flush operation completion 2019-08-04 09:32:00 +02:00
ide ide: pmac: add of_node_put() 2018-12-21 14:13:14 +01:00
idle x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
iio iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2019-05-31 06:47:29 -07:00
infiniband RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM 2019-07-31 07:28:54 +02:00
input Input: alps - fix a mismatch between a condition check and its comment 2019-07-31 07:28:36 +02:00
iommu iommu/vt-d: Don't queue_iova() if there is no flush queue 2019-08-04 09:32:02 +02:00
ipack
irqchip Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment" 2019-06-11 12:21:49 +02:00
isdn ISDN: hfcsusb: checking idx of ep configuration 2019-08-04 09:32:01 +02:00
leds leds: pwm: silently error out on EPROBE_DEFER 2019-05-16 19:42:29 +02:00
lightnvm lightnvm: pblk: fix two sleep-in-atomic-context bugs 2018-11-13 11:14:52 -08:00
macintosh
mailbox mailbox: handle failed named mailbox channel request 2019-07-31 07:28:55 +02:00
mcb
md dm bufio: fix deadlock with loop device 2019-07-31 07:28:43 +02:00
media media: radio-raremono: change devm_k*alloc to k*alloc 2019-08-04 09:32:02 +02:00
memory memory: tegra: Fix integer overflow on tick value calculation 2019-05-25 18:25:25 +02:00
memstick memstick: Fix error cleanup path of memstick_init 2019-07-31 07:28:50 +02:00
message
mfd mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk 2019-07-31 07:28:53 +02:00
misc VMCI: Fix integer overflow in VMCI handle arrays 2019-07-21 09:04:37 +02:00
mmc mmc: core: Prevent processing SDIO IRQs when the card is suspended 2019-06-25 11:36:50 +08:00
mtd mtd: spi-nor: intel-spi: Avoid crossing 4K address boundary on read/write 2019-05-21 18:50:17 +02:00
mux
net ath10k: Change the warning message string 2019-08-04 09:32:01 +02:00
nfc spi: ST ST95HF NFC: declare missing of table 2019-05-16 19:42:24 +02:00
ntb
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
nvme nvme: Fix u32 overflow in the number of namespace list calculation 2019-06-25 11:36:53 +08:00
nvmem nvmem: core: fix read buffer in place 2019-06-15 11:54:54 +02:00
of OF: properties: add missing of_node_put 2019-01-23 08:09:49 +01:00
oprofile
parisc parisc: Use implicit space register selection for loading the coherence index of I/O pdirs 2019-06-11 12:21:47 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2019-06-25 11:36:51 +08:00
pci PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB 2019-07-31 07:28:54 +02:00
pcmcia pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges 2018-11-13 11:14:46 -08:00
perf arm64: perf: Reject stand-alone CHAIN events for PMUv3 2018-10-18 09:16:24 +02:00
phy phy: renesas: rcar-gen2: Fix memory leak at error paths 2019-07-31 07:28:51 +02:00
pinctrl pinctrl: rockchip: fix leaked of_node references 2019-07-31 07:28:49 +02:00
platform platform/x86: mlx-platform: Fix parent device in i2c-mux-reg device registration 2019-07-10 09:54:35 +02:00
pnp
power power: supply: max14656: fix potential use-before-alloc 2019-06-15 11:54:57 +02:00
powercap x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:32:03 +02:00
ps3
ptp ptp: Fix pass zero to ERR_PTR() in ptp_clock_register 2019-02-12 19:45:59 +01:00
pwm pwm: Fix deadlock warning when removing PWM device 2019-06-15 11:54:59 +02:00
rapidio rapidio: fix a NULL pointer dereference when create_workqueue() fails 2019-06-15 11:54:50 +02:00
ras RAS/CEC: Fix pfn insertion 2019-07-31 07:28:24 +02:00
regulator regulator: s2mps11: Fix buck7 and buck8 wrong voltages 2019-07-31 07:28:36 +02:00
remoteproc
reset reset: make device_reset_optional() really optional 2018-12-08 13:03:40 +01:00
rpmsg rpmsg: smd: fix memory leak on channel create 2018-11-13 11:15:12 -08:00
rtc rtc: pcf8523: don't return invalid date when battery is low 2019-06-19 08:21:00 +02:00
s390 s390/qdio: handle PENDING state for QEBSM devices 2019-07-31 07:28:23 +02:00
sbus drivers/sbus/char: add of_node_put() 2018-12-21 14:13:13 +01:00
scsi scsi: mac_scsi: Fix pseudo DMA implementation, take 2 2019-07-31 07:28:35 +02:00
sfi
sh
sn
soc soc: rockchip: Set the proper PWM for rk3288 2019-06-15 11:54:55 +02:00
spi spi: bitbang: Fix NULL pointer dereference in spi_unregister_master 2019-07-10 09:54:31 +02:00
spmi
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2019-05-31 06:47:13 -07:00
staging media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails. 2019-07-31 07:28:22 +02:00
target scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported 2019-07-31 07:28:18 +02:00
tc TC: Set DMA masks for devices 2018-11-13 11:15:11 -08:00
tee
thermal drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER 2019-06-15 11:54:52 +02:00
thunderbolt thunderbolt: Fix to check for kmemdup failure 2019-05-31 06:47:34 -07:00
tty serial: sh-sci: Fix TX DMA buffer flushing and workqueue races 2019-07-31 07:28:54 +02:00
uio Revert "uio: use request_threaded_irq instead" 2019-02-15 08:09:14 +01:00
usb usb: pci-quirks: Correct AMD PLL quirk detection 2019-07-31 07:28:57 +02:00
uwb uwb: hwa-rc: fix memory leak at probe 2018-10-03 17:00:46 -07:00
vfio vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING" 2019-06-15 11:54:54 +02:00
vhost vhost_net: disable zerocopy by default 2019-07-31 07:28:26 +02:00
video video: imsttfb: fix potential NULL pointer dereferences 2019-06-15 11:54:57 +02:00
virt drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl 2019-05-16 19:42:35 +02:00
virtio virtio_pci: fix a NULL pointer reference in vp_del_vqs 2019-05-10 17:53:11 +02:00
vlynq
vme
w1 w1: fix the resume command API 2019-05-31 06:47:21 -07:00
watchdog watchdog: fix compile time error of pretimeout governors 2019-06-15 11:54:54 +02:00
xen xen/events: fix binding user event channels to cpus 2019-07-31 07:28:39 +02:00
zorro
Kconfig
Makefile