Regression on latest barebox
Hello.
Latest master sources have a regression due migrate to use platform_device_register functions. Now I cannot register cfi_flash device which resides at 0x0, because it have conflicts with "mem" command which have same start address.
Thanks!
---
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mon, 8 Oct 2012 11:45:08 +0200 от Sascha Hauer <[email protected]>:
Quoted 12 lines · Alexander Shiyan
Quoted 4 lines
Hello.
Latest master sources have a regression due migrate to useplatform_device_registerfunctions. Now I cannot registercfi_flashdevice which resides at0x0, because it have conflicts with "mem" command which have same start address.This is because of this quite bogus check in
platform_device_register:if (dev->resource->start == new_device->resource->start) { return -EBUSY; }
Quoted 5 lines
The correct way would be to check whether the regions overlap, not whether the start addresses match. With this the whole patch wouldn't work anymore because everything would conflict with the iomem resource.
I have no good idea atm except making
/dev/mema non driver.
Or we can provide virtual bus ("system" for example) for /dev/mem device.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox