strange CONFIG_BLK_DEV_IDECS ifdefs
there's two really strange ifdefs for ide-cs in ide.c:
- first ide_unregister is resetting hwif->irq only if CONFIG_BLK_DEV_IDECS is not set. This seems really braindead as apparently the other drivers don't care (otherwise they wouldn't work with CONFIG_BLK_DEV_IDECS), but OTOH I don't see a way ide-cs would care for either variant, too - it doesn't touch the hwif anymore after unregister.
- ide_delay_50ms is not sleeping with CONFIG_BLK_DEV_IDECS. Andre told me this was because the pcmcia code didn't allow sleeping in the probe routine once upon a time - that's not true anymore, in fact ide-cs is calling schedule_timeout just after calling ide_register currently..
Is there someone with ide-cs hardware to test whether killing the ifdefs makes any difference?
Quoted 13 lines · Christoph Hellwig
there's two really strange ifdefs for ide-cs in
ide.c:- first
ide_unregisteris resettinghwif->irqonly ifCONFIG_BLK_DEV_IDECSis not set. This seems really braindead as apparently the other drivers don't care (otherwise they wouldn't work withCONFIG_BLK_DEV_IDECS), but OTOH I don't see a way ide-cs would care for either variant, too - it doesn't touch the hwif anymore after unregister.
-ide_delay_50msis not sleeping withCONFIG_BLK_DEV_IDECS. Andre told me this was because the pcmcia code didn't allow sleeping in the probe routine once upon a time - that's not true anymore, in fact ide-cs is callingschedule_timeoutjust after callingide_registercurrently..
Yep, I've also noticed these weirdness.
Quoted 2 lines
Is there someone with ide-cs hardware to test whether killing the ifdefs makes any difference?
Anybody? [ You will get credits in ChangeLog. :-) ]