The dm9000 needs a resource for an index register and one for the data register. Both should have a size of the access width, and not two times the access width. The current code is probably a leftover when the dm9000 had only one resource. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/base/resource.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/resource.c b/drivers/base/resource.c index 2985c78..095b8d2 100644 --- a/drivers/base/resource.c +++ b/drivers/base/resource.c @@ -76,13 +76,13 @@ struct device_d *add_dm9000_device(int id, resource_size_t base, switch (flags) { case IORESOURCE_MEM_32BIT: - size = 8; + size = 4; break; case IORESOURCE_MEM_16BIT: - size = 4; + size = 2; break; case IORESOURCE_MEM_8BIT: - size = 2; + size = 1; break; default: printf("dm9000: memory width flag missing\n"); -- 1.8.5.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox