Skip to content

ARM: mvebu: fix bus width handling in mvebu-devbus

Gregory CLEMENT linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 4 patches 0 repliesNew

Patches in v2 No applies recorded yet

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

Reviews trailers per patch

PatchGregory CLEMENT
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] ARM: mvebu: fix bus width handling in mvebu-devbus

Hi Thomas,

Quoted 21 lines · Thomas Petazzoni

Jason, Greg, Andrew, Sebastian,

This set of patches fix a bug in the mvebu-devbus driver, which was leading to a misinterpretation of Device Tree provided value: a NOR bus width declared as 8 bits in the Device Tree was in fact configured as 16 bits at the hardware level.

This bug was not noticed until now, because it was compensated by a symetric mistake in the Device Tree files.

This set of commits therefore fix both the driver itself, and the incorrect Device Tree files. The patches for the Device Tree files have been separated, because some of them should apply all the way to v3.10, while some of them apply only up to v3.11.

Changes since v1:

* Added patches to fix the Device Tree files to indicate the correct bus width, as documented in the board schematics. Noticed by Ezequiel Garcia.

Quoted 5 lines

* Changed the bus_width conversion logic in the driver to only accept valid values: 8 bits and 16 bits. All other values lead to an error being returned. Suggested by Sebastian Hesselbarth.

* Rebased on top of v3.15-rc1.

Everything looks good so for the whole series:

Thanks,

Gregory

Quoted 17 lines

Thanks,

Thomas

Thomas Petazzoni (4):
memory: mvebu-devbus: fix the conversion of the bus width
ARM: mvebu: fix NOR bus-width in Armada XP GP Device Tree
ARM: mvebu: fix NOR bus-width in Armada XP DB Device Tree
ARM: mvebu: fix NOR bus-width in Armada XP OpenBlocks AX3 Device Tree

 arch/arm/boot/dts/armada-xp-db.dts               |  2 +-
 arch/arm/boot/dts/armada-xp-gp.dts               |  2 +-
 arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts |  2 +-
 drivers/memory/mvebu-devbus.c                    | 15 +++++++++++++--
 4 files changed, 16 insertions(+), 5 deletions(-)
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com