summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-12dpaa_eth: cleanup after init_phy() failureMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12net: freescale: dpaa: use new api ethtool_{get|set}_link_ksettingsPhilippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes <tremyfr@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: remove redundant dependency on FSL_SOCMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: use big endian accessorsClaudiu Manoil
Ensure correct access to the big endian QMan HW through proper accessors. Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: add trace pointsMadalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: add sysfs exportsMadalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: add ethtool statisticsMadalin Bucur
Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion group statistics; - count the number of interrupts for each CPU. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: add ethtool functionalityMadalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12dpaa_eth: add support for DPAA EthernetMadalin Bucur
commit fdfd3c4c0bb7cddbc63b051abe4e37f3b347d33c [dpaa part] This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12fsl/fman: take into account all RGMII modesMadalin Bucur
Accept the internal delay RGMII variants. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12fsl/fman: enlarge FIFO to allow for the 5th portMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-12-12fsl/fman: remove wrong freeMadalin Bucur
Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-12-12fsl/fman: set HW parser as BMI next engineMadalin Bucur
Enable the HW parser for all DPAA interfaces. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-12-12fsl/fman: parse result data is big endianMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-12-12fsl/fman: fix spelling mistake in variable name en_tsu_err_exeptionColin Ian King
trivial fix to spelling mistake, en_tsu_err_exeption should be en_tsu_err_exception Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12net: fman: fix build errors when linux/phy*.h is removed from net/dsa.hRussell King
drivers/net/ethernet/freescale/fman/fman_memac.c:519:21: error: dereferencing pointer to incomplete type 'struct fixed_phy_status' Add linux/phy_fixed.h to fman_memac.c Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12fsl/fman: enable compilation on ARM64Madalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12fsl/fman: A007273 only applies to PPC SoCsMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Reviewed-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12powerpc: fsl/fman: remove fsl,fman from of_device_ids[]Madalin Bucur
commit a782101e03788ba26d47a980d7ec2809f8884b13 [fman part] The fsl/fman drivers will use of_platform_populate() on all supported platforms. Call of_platform_populate() to probe the FMan sub-nodes. Signed-off-by: Igal Liberman <igal.liberman@freescale.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Acked-by: Scott Wood <oss@buserror.net> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12fsl/fman: fix 1G support for QSGMII interfacesMadalin Bucur
QSGMII ports were not advertising 1G speed. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Reviewed-by: Camelia Groza <camelia.groza@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-12DPAA: upstream: splitted patch from upstream DPAA for configZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12staging: fsl_ppfe/eth: Make phy_ethtool_ksettings_get return voidCalvin Johnson
Make return value void since function never return meaningful value Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
2017-12-12fsl_qbman/usdpaa: Invalidate software portals before useRoy Pledge
Invalidate the cache for the software portals before using them since the portals are non coherent. This ensures that the core using the portal is seeing the most up to date information in case the cache contained older data. This is important during the cleanup phase if cleanup occurs on a differnt core than what the application was using. Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
2017-12-12staging/fsl_qbman: Calculate valid bit from MC-RRRoy Pledge
Use the management commmand response registers to determine the next expected valid bit when initializing a software portal. This avoids using the wrong valid bit in cases where a command was partially written but then not completed. Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
2017-12-12sdk_dpaa: ls1043a errata: stop advertising S/G and GSO supportCamelia Groza
The errata prevents us from transmitting S/G frames. Instead of linearizing them ourselves, stop advertising S/G support and have the stack do it for us. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12Added MII IOCTL support for SIOCGMIIREGVicentiu Galanopulo
Signed-off-by: Vicentiu Galanopulo <vicentiu.galanopulo@nxp.com>
2017-12-12sdk: dpa: use netdev dev for DMA mappingMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-12-12PCI: layerscape: Add support for ls1088aHou Zhiqiang
Add support for ls1088a. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Minghuan Lian <minghuan.Lian@nxp.com>
2017-12-12drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 EthernetRan Wang
This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with driver drivers/net/usb/r8152.c Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
2017-12-12usb: dwc3: workaround: disable device-initiated U1/U2Ran Wang
Issue: When the USB controller is configured as a USB device mode, the device initiates low power when an ACK is pending for a data packet (DP). When operating in SuperSpeed mode and when the internal condition for low power (u1/u2) is satisfied, the device initiates u1/u2 even though it has just received a DPH of the DP header (DPH). This causes the link to enter and exit low power before the device sends an ACK for the DP. This behavior can cause a transaction timeout on the host for the DP. Impact: Depending on the host transaction timeout value, the host may timeout on the transaction and the host retries the transfer. If the same issue happens again, this could result in the host resetting the device and re-enumerating. Workaround: Disable USB_DCTL (InitU1Ena, InitU2Ena) bits. As a result,the device does not initiate lowpower requests; however, it can still accept low-power requests from the host/hub and enter low power. Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
2017-12-12irqchip/qeic: remove PPCisms for QEICZhao Qiang
[PowerPC part] QEIC was supported on PowerPC, and dependent on PPC, Now it is supported on other platforms, so remove PPCisms. Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12irqchip/qeic: merge qeic init code from platforms to a common functionZhao Qiang
[PowerPC part] The codes of qe_ic init from a variety of platforms are redundant, merge them to a common function and put it to irqchip/irq-qeic.c For non-p1021_mds mpc85xx_mds boards, use "qe_ic_init(np, 0, qe_ic_cascade_low_mpic, qe_ic_cascade_high_mpic);" instead of "qe_ic_init(np, 0, qe_ic_cascade_muxed_mpic, NULL);". qe_ic_cascade_muxed_mpic was used for boards has the same interrupt number for low interrupt and high interrupt, qe_ic_init has checked if "low interrupt == high interrupt" Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12sdk_dpaa: accept frames on RX even if larger than MTUCamelia Groza
Documentation/networking/netdevices.txt mentions that interfaces must be able to receive frames at least the size of the configured MTU. The behavior for received frames larger than the MTU is unspecified. We have been dropping these frames in software. Remove this behavior and accept them. Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2017-12-12arm64: defconfig: enable CAAM crypto engine on QorIQ DPAA2 SoCsHoria Geantă
Enable CAAM (Cryptographic Accelerator and Assurance Module) driver for QorIQ Data Path Acceleration Architecture (DPAA) v2. It handles DPSECI (Data Path SEC Interface) DPAA2 objects that sit on the Management Complex (MC) fsl-mc bus. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-12-12irqchip/ls-scfg-msi: add LS1012a MSI supportHou Zhiqiang
The ls1012a implement only 1 msi controller, and it is the same as ls1043a. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2017-12-12PFE: fix compile issue on arm32Zhao Qiang
add CONFIG_FSL_PPFE_UTIL_DISABLED to arm32 Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12staging: fsl_ppfe/eth: fix read/write/ack idx issueCalvin Johnson
While fixing checkpatch errors some of the index increments were commented out. They are enabled. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
2017-12-12staging: fsl_ppfe/eth: remove unused functionsCalvin Johnson
Remove unused functions hif_xmit_pkt & hif_lib_xmit_pkt. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
2017-12-12dma: caam: add support for memcpyRadu Alexe
Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2017-12-12dma: caam: change func/field names to better match functionalityRadu Alexe
This change is due to a future patch that will introduce memcpy support for the caam_dma driver. Therefore a distinction must be made between sg/memcpy functions. Also, when fields are used in common (ex. src_dma, dst_dma), they must not show any bias in their naming towards any particular functionality. Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2017-12-12dma: caam: make internal function staticRadu Alexe
Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2017-12-12dma: caam: remove unneeded function parameterRadu Alexe
Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2017-12-12dma: caam: removed unsed struct fieldsRadu Alexe
Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2017-12-12arm64: dts: freescale: ls1012a: fix RGMII tx delay issueCalvin Johnson
Recently logic to enable RGMII tx delay was changed by below patch. https://patchwork.kernel.org/patch/9447581/ Based on the patch, enabling tx delay again using rgmii-txid. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
2017-12-12arm64: dts: freescale: ls1012a: update with pppfe supportCalvin Johnson
Update ls1012a dtsi and platform dts files with support for ppfe. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
2017-12-12staging: fsl_ppfe/eth: fix RGMII tx delay issueCalvin Johnson
Recently logic to enable RGMII tx delay was changed by below patch. https://patchwork.kernel.org/patch/9447581/ Based on the patch, appropriate change is made in PFE driver. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
2017-12-12change _nfct to nfct for linux 4.9Calvin Johnson
Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
2017-12-12staging: fsl_ppfe/eth: introduce pfe driverCalvin Johnson
[pfe part] This patch introduces Linux support for NXP's LS1012A Packet Forwarding Engine (pfe_eth). LS1012A uses hardware packet forwarding engine to provide high performance Ethernet interfaces. The device includes two Ethernet ports. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com> Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-12-12staging: fsl_ppfe/eth: header files for pfe driverCalvin Johnson
This patch has all pfe header files. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
2017-12-12net: fsl_ppfe: dts binding for ppfeCalvin Johnson
Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>