Skip to contentSkip to conversation

Regression on latest barebox

DISCUSSION Alexander Shiyan 1 participant 2 messages Oct 8, 2012 1 message not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

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 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.

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/mem a 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