mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] fixup! regmap-mmio: Add big endian support
@ 2020-03-30 18:46 Ahmad Fatoum
  2020-03-30 18:46 ` [PATCH 2/2] " Ahmad Fatoum
  0 siblings, 1 reply; 3+ messages in thread
From: Ahmad Fatoum @ 2020-03-30 18:46 UTC (permalink / raw)
  To: barebox

The Linux default for the regmap MMIO bus used for syscon is little endian,
not big endian like for a general regmap bus.

This fixes network breakage on the STM32MP, which uses a syscon in
link mode configuration.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
 drivers/base/regmap/regmap-mmio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index 492dd16ff52a..9c5a2822a4fe 100644
--- a/drivers/base/regmap/regmap-mmio.c
+++ b/drivers/base/regmap/regmap-mmio.c
@@ -182,6 +182,7 @@ static int regmap_mmio_read(void *context, unsigned int reg, unsigned int *val)
 static const struct regmap_bus regmap_mmio = {
 	.reg_write = regmap_mmio_write,
 	.reg_read = regmap_mmio_read,
+	.val_format_endian_default = REGMAP_ENDIAN_LITTLE,
 };
 
 static struct regmap_mmio_context *regmap_mmio_gen_context(struct device_d *dev,
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-31  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 18:46 [PATCH 1/2] fixup! regmap-mmio: Add big endian support Ahmad Fatoum
2020-03-30 18:46 ` [PATCH 2/2] " Ahmad Fatoum
2020-03-31  7:24   ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox