Skip to contentSkip to conversation

strange CONFIG_BLK_DEV_IDECS ifdefs

DISCUSSION Christoph Hellwig 2 participants 2 messages May 16, 2004 libata

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
Quoted 13 lines · Christoph Hellwig

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

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. :-) ]