2020-01-13 |
net: fsl-fman: Do not put hardware in reset before Linux start
...
Linux depends on the icid values configured in the DPAA. Do not put
the hardware into reset in order to preserve the register values.
Without this, the IOMMU doesn't work properly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 13 Jan 2020
|
2019-12-09 |
Merge branch 'for-next/layerscape'
Sascha Hauer
committed
on 9 Dec 2019
|
2019-11-28 |
net: fsl-fman: Disable unused network interfaces
...
The Linux dts files have all network interfaces enabled. We have
to disable the ones that are unused.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 28 Nov 2019
|
2019-11-14 |
net: fsl-fman: do not leave not transmitted DMA buffers mapped
...
When a packet can't be transmitted we should unmap it. This probably
won't change much since when we can't transmit a packet the fman
probably can't recover from it anyway, but still it is cleaner to not
leave the buffers mapped.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Nov 2019
|
net: fsl-fman: simplify setting next offset
...
The offset of the current packet can be retrieved from the current txbd
index, so do this instead of increasing the offset with each new packet.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Nov 2019
|
net: fsl-fman: Store index for rxbd
...
Like done for the txbd, also store the index of the current rxbd in the
driver private data. This makes the code easier to follow.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Nov 2019
|
net: fsl-fman: move status read into loop
...
Instead of reading the status once before the loop and then again right
before the next iteration, just read the status in the loop.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Nov 2019
|
net: fsl-fman: Store index for txbd
...
Instead of storing a pointer to the current txbd store the index of the
current buffer. This makes the code more straight forward.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Nov 2019
|
net: fsl-fman: reset device before leaving
...
edev->halt is implemented, but not called by the core during shutdown.
We have to call it manually during device remove. With this and also
resetting the whole FMan during shutdown the driver now works properly
when started second stage from another barebox.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Nov 2019
|
2019-05-09 |
net: fsl-fman: Sync rx buffers for device initially
...
The rx buffers must be given to the device initially to work properly.
Otherwise the first packets are corrupted.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 9 May 2019
|
2019-03-13 |
net: Add Freescale FMan ethernet support
...
This adds ethernet support for the Freecale Layerscape SoCs. The
architecture in these SoCs is called "Data Path Acceleration
Architecture" (DPAA). It is comprised of:
- The Queue Manager (QMan)
- Buffer Manager (BMan)
- Frame Manager (FMan)
- Multirate Ethernet Media Access Controller (mEMAC)
The code is based on the corresponding U-Boot driver enriched with
device tree parsing and proper device driver support.
Tested on LS1046a, should work on other SoCs aswell with some minor
quirks. SerDes support has been removed for now.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 13 Mar 2019
|