Hi all,
I'm wondering what is wrong that I cannot unload the omap_uart driver from an uart platform device. In the file "omap_whmod_33xx_data.c" you have an entry for every uart that you want to be loaded with the serial driver. So under /sys/bus/platform/devices/ I see all uarts that are defined in the list and I also can check which driver is loaded by checking the file driver (e.g. /sys/devices/platform/omap/omap_uart.0/driver) which is a link to /sys/bus/platform/drivers/omap_uart.
As far as I understood, if I want to unload the omap_uart driver, ie. remove the binding, I type:
echo -n "omap_uart.2" > /sys/bus/platform/drivers/omap_uart/unbind
After that I don't have the link to the driver anymore. But if I wan't to use uart2 again, ie just do a binding again with the omap_uart driver by typing:
echo -n "omap_uart.2" > /sys/bus/platform/drivers/omap_uart/bind
I get the error:
[ 1000.840484] omap_uart omap_uart.2: memory region already claimed
What's wrong here? Any hint is appreciated
Sam