Re: [PATCH] kernel/resource.c: fix muxed resource handling in __request_region()
From: One Thousand Gnomes <hidden>
Date: 2016-02-23 21:39:19
Also in:
lkml
From: One Thousand Gnomes <hidden>
Date: 2016-02-23 21:39:19
Also in:
lkml
quoted
IORESOURCE_MUXED is a convenient way to deal with that. For some code examples you can look at the superio_* functions in the IT87 drivers: gpio/gpio-it87.c, hwmon/it87.c and watchdog/it87_wdt.c. I am not aware of any other users for IORESOURCE_MUXED. Let me know how you want to go and if you need my help.I'd be happy if you proposed a patch. It would also be nice if we could somehow more formally limit the MUXED usage to these super I/O devices, just so other users don't get into trouble thinking it's more general than it is.
Today I think the problem wouldn't exist. We'd tell the authors of the drivers to create an mfd or similar to manage the resources and load the appropriate extra goodies. Alan