Skip to contentSkip to conversation

stmmac: Add AXI burst length support to platform device.

PATCH Chen Baozi 1 participant 1 message Feb 11, 2015 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20150210020734.GE7920@cbz-thinkpad

A message that is not in the archive (sent off-list or not yet received): 20150210114837.GC6659@leverpostej

Chen Baozi

author
#2 lore raw
Quoted 31 lines · Mark Rutland
Quoted 27 lines · Mark Rutland
Quoted 13 lines · Chen Baozi
Quoted 12 lines

The AXI Bus Mode Register controls the AXI master behavior. It is mainly used to control the burst splitting and the number of outstanding requests. This register is present and valid only in GMAC-AXI configuration. The old driver only supports this feature on PCI devices. This patch adds an 'snps,apl' properties in DT to enable it on platform devices.

---
 Documentation/devicetree/bindings/net/stmmac.txt      | 1 +
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 1 +
 2 files changed, 2 insertions(+)
Quoted 12 lines

Documentation/devicetree/bindings/net/stmmac.txt Optional properties: · line 46

Quoted 9 lines
Documentation/devicetree/bindings/net/stmmac.txt +1 -0
index c41afd9..8f3c834 100644
@@ -43,6 +43,7 @@ Optional properties:
   available this clock is used for programming the Timestamp Addend Register.
   If not passed then the system clock will be used and this is fine on some
   platforms.
+- snps,abl: AXI Burst Length

This is not a good name (though I see it follows "snps,pbl", which is also not a good name)...

Quoted 1 line

Any idea for a better name?

Perhaps snps,axi-burst-length ?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Why does this need to be in the DT? Is this required for correctness? Or performance?

This is required for correctness. Otherwise, the driver would write '0' to the register by default, which makes the driver not work.

What does that mean at the HW level? If that won't work in all cases why does the driver do that?

According to the manual, this is used to select the burst length on AXI master interface. The register is optional and valid only in GMAC-AXI configuration. IMHO, not all cases require the driver to set this register. So I just put it in the 'optional properties', in case some devices depend on that.

Cheers,

Baozi.