Skip to content

ARM: mvebu: fix DT def. of PCIe units for mv78230 and mv78260

Arnaud Ebalard linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ARM: mvebu: fix DT def. of PCIe units for mv78230 and mv78260

Hi Jason,

Quoted 8 lines · Jason Cooper

On Wed, Nov 06, 2013 at 11:37:24AM -0700, Jason Gunthorpe wrote:
...

Quoted 6 lines

This PCI stuff would be 100% more readable with some macros ..

#define PCI_REG_BDF(bus,device,function) (....)

#define PCI_MEM_BAR_BDF(bus,device,function,bar) \
   (0x82000000 | PCI_REG_BDF(bus,device,function) + bar*XX) 0)
Quoted 7 lines
Quoted 3 lines

So that:
reg = <PCI_REG_BDF(0,1,0) 0 0>
assigned-addresses = <PCI_MEM_BAR_BDF(0,1,0,0) 0x40000 0 0x2000>

Do I smell a patch brewing? :)

Arnaud, would you like to take a crack at it?

My understanding of the topic being in the end limited to what I learnt from recent discussions, I'll pass on that one but I'll be happy to test on a mv78230.

Cheers,

a+