summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-25Add macro ehci_has_fsl_susp_errata for fix arm64 compiled issue.yinbo.zhu
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: udc: for fix 1021atwr compiled issueyinbo.zhu
remove the powerpc configures for fix ls1021atwr compiled issue. Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: kconfig: remove dependency FSL_SOC for ehci fsl driverRajesh Bhagat
CONFIG_USB_EHCI_FSL is not dependent on FSL_SOC, it can be built on non-PPC platforms. Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
2017-09-25usb: dwc3: add function of_usb_get_dr_modeyinbo.zhu
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: dwc3: Implement workaround for Erratum A009116Nikhil Badola
Write fladj register adjusts (micro)frame length to appropriate value thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: pm: Fix usb pm support for deep-sleepRamneek Mehresh
Make sure that saving and restoration of usb phy registers only happen in case of deep-sleep, and not for any other feature like sleep, etc. Also export pm_suspend_state() and set_pm_suspend_state() Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
2017-09-25usb: fsl: Compile out USB clk functionsNikhil Badola
Compile out USB clk functions for PPC platforms as there is no usb clk specific initialization on any of these platforms Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Introduce FSL_USB2_PHY_UTMI_DUAL for usb gadgetNikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL in gadget driver for setting phy in SOCs with utmi dual phy Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
2017-09-25usb: gadget: Fix kernel boot dump for usb gadegt drvRamneek Mehresh
Copy of_node property only for host mode so as to fix gadget mode kernel dump messages Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
2017-09-25usb: host: Fix usb suspend/resume for deep-sleepRamneek Mehresh
Save usb controller and phy registers for deep-sleep Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
2017-09-25usb: host: Modify workaround for USB Erratum A005697Nikhil Badola
Change the position of delay introduced by erratum A005697 workaround Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: pm: Fix sleep/deep-sleep issue for external ULPI phyRamneek Mehresh
External ULPI phy registers are not to be restored during normal sleep when phy power is not cut-off. In addition, phy saving/restoration needs to happen only during deep-sleep Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: fsl: Fix deep-sleep resume issue caused by usbRamneek Mehresh
usb ip driver needs to save and restore all registers including phy registers across deep-sleep. This is required since latest changes in u-boot code doesn't re-init usb phy anymore during deep-sleep resume Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com> Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: pm: Fix pm defect in rcpm driver for usb ipRamneek Mehresh
Pass device-tree usb node offset to each usb device structure. This is required by rcpm driver to get mask setting for ip exception register to make/remove usb as wake-up source for sleep/deep-sleep Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: fsl: Set USB_EN bit to select ULPI phyNikhil Badola
Set USB_EN bit to select ULPI phy for USB controller version 2.5 Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb :fsl: Remove USB Errata checking codeNikhil Badola
Remove USB errata checking code from driver. Applicability of erratum is retrieved by reading corresponding property in device tree. This property is written during device tree fixup. Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: DWC3: fix usb cause crash issueyinbo.zhu
remove dwc3_frame_length_adjustment for fix crash issue. Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Port USB EHCI Gadget driver for LS102XANikhil Badola
Change raw read/write accessors to ioread/writebe32 for big endian registers Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Remove compilation error for usb EHCI gadgetNikhil Badola
Remove compilation errors from USB EHCI gadget driver Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
2017-09-25usb: host: Add Deep Sleep support for USB drvNikhil Badola
Saves and Restores USB register context when the system goes to deep sleep and resumes from it. This is required only when USB controller and phys are OFF during Deep Sleep Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: host: Modify PHY_CLK_VALID bit usageRamneek Mehresh
PHY_CLK_VALID bit is de-featured for all controller versions before 2.4, and is only to be used for internal UTMI phy Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: phy: Workaround for USB erratum-A005728Suresh Gupta
PHY_CLK_VALID bit for UTMI PHY in USBDR does not set even if PHY is providing valid clock. Workaround for this involves resetting of PHY and check PHY_CLK_VALID bit multiple times. If PHY_CLK_VALID bit is still not set even after 5 retries, it would be safe to deaclare that PHY clock is not available. This erratum is applicable for USBDR less then ver 2.4. Signed-off-by: Suresh Gupta <B42813@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: host: Stops USB controller init if PLL fails to lockyinbo.zhu
USB erratum-A006918 workaround tries to start internal PHY inside uboot (when PLL fails to lock). However, if the workaround also fails, then USB initialization is also stopped inside Linux. Erratum-A006918 workaround failure creates "fsl,erratum_a006918" node in device-tree. Presence of this node in device-tree is used to stop USB controller initialization in Linux Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Fix USB gadget drv start issueRamneek Mehresh
Move synchronization delay b/w host and gadget drv from fsl_udc_resume() to fsl_otg_start_gadget() to prevent msleep() getting called from inside interrupt context. Gadget resume always gets called from inside interrupt context except during ID change. Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: host: Remove host drv upon otg bring-upRamneek Mehresh
Change have_hcd variable to remove/suspend host driver on completion of otg initialization for otg auto detect Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: host: Add support to add/remove usb host driverRamneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Add host-gadget drv sync delayRamneek Mehresh
Resolve synchronization issue between host and gadget drivers upon role-reversal Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: host: enable USB wakeupZhao Chenhui
To enable USB wakeup feature, * Add a interrupt flag IRQF_NO_SUSPEND to avoid the USB interrupt disabled when suspending. * Set the USB module as a wakeup source. Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com> Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: fsl: Correct endpoint name checkingNikhil Badola
Endpoint name being statically defined cannot be NULL hence checking name's first two character with "ep" for endpoint validity Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
2017-09-25usb: gadget: add a sanity check for complete handlerRajesh Bhagat
complete handler is replaced by usb_gadget_giveback_request by below commit,Which removed the sanity check which was added for fsl specific gadget driver.usb: gadget: Refactor request completion Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Correct NULL pointer checking in fsl gadgetNikhil Badola
Correct NULL pointer checking for endpoint descriptor before it gets dereferenced Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
2017-09-25usb: fsl: Remove unused variableNikhil Badola
Remove unused variable td_complete Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
2017-09-25usb: fsl: Check memory resource before releasing itNikhil Badola
Check memory resource existence before releasing it to avoid NULL pointer dereference Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
2017-09-25usb: gadget: Turn on cache snooping hardware in usb gadgetNikhil Badola
Turn on cache snooping hardware in usb gadget for PPC 64-bit Kernel Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25USB: Gadget: Set dma_ops for FSL USB Gadget DeviceSuresh Gupta
Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com>
2017-09-25usb: hub: Resolve OTG crash issue with another hostRamneek Mehresh
Resolves kernel crash issue when a USB flash drive is inserted into USB1 port with USB2 port configured as otg Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: gadget: Turn on cache snooping hardware for 64-bit KernelSuresh Gupta
Turn on cache snooping hardware for 64-bit Kernel Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com>
2017-09-25usb: phy: Combine host/gadget start/resume for ID changeRamneek Mehresh
Make call to fsl_otg_event for each id change event Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
2017-09-25usb: phy: Modify otg_event to start host drvRamneek Mehresh
Add mechanism to start host driver from inside fsl_otg_event upon each id change interrupt Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
2017-09-25usb: phy: Add controller version based ULPI and UTMI phyRamneek Mehresh
Add controller version based ULPI and UTMI phy initialization for otg driver Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
2017-09-25usb: dwc3: Implement workaround for Erratum A009116Nikhil Badola
Write fladj register adjusts (micro)frame length to appropriate value thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25USB3/DWC3: Enable the USB snoopingChangming Huang
Add support for USB3 snooping by asserting bits in register DWC3_GSBUSCFG0 for data and descriptor. Signed-off-by: Changming Huang <jerry.huang@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25drivers: dwc3: host: Change burst beat and outstanding pipelined transfers ↵Rajesh Bhagat
requests. This is required for better performance, and performs below tuning: 1. Enable burst length set, and define it as 4/8/16. 2. Set burst request limit to 16 requests. Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: dwc3: initiated xhci probe problem in arm64 4.4 kernel due to DMA setupCatalin Marinas
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25usb: phy: fix phy-fsl-usb.c's copyright issueyinbo.zhu
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
2017-09-25staging: fsl-dpaa2/eth: Update tx_shaping max burst sizeBogdan Purcareata
Starting from MC 10.2.x, max burst size value has decreased from 0xFFFF to 0xF7FF. Update the check in the driver. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
2017-09-25staging: fsl-dpaa2/eth: Fix kfree bugIoana Radulescu
Fix an issue where we weren't freeing the allocated pointer, but rather the 16-byte aligned address based on it. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
2017-09-25staging: fsl-dpaa2/eth: Fix bug in address translationIoana Radulescu
Fix an issue in dpaa2_eth_iova_to_virt() when SMMU is not enabled. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
2017-09-25staging: fsl-dpaa2/eth: Defer probing if no DPIO/DPCONBharat Bhushan
There are possibility that the DPIO/DPCON are probed after DPNI, so DPNI probing should be deferred. I observed below prints and no DPAA2-Ethernet interface was available fsl_dpaa2_eth dpni.0: No affine DPIO for cpu 0 fsl_dpaa2_eth dpni.0: No cpu with an affine DPIO/DPCON This patch defer DPAA2-ETH driver probing when DPIO/DPPCON are not yet available. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@nxp.com>
2017-09-25staging: fsl-dpaa2/eth: Map Tx buffers as bidirectionalIoana Radulescu
WRIOP hardware needs to write to the hardware annotation area of Tx buffers (status bits, timestamp, etc). Map these buffers with DMA_BIDIRECTIONAL, otherwise the write transaction through SMMU will not be allowed. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>