Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote:
If neither get_power nor set_power where defined in any driver, thenYou is right... ever return 1, but, this is a expected behavior?
cpci_get_power_status() was always returning 1.
IIUC, now it may return 1 or 0 depending of if enable_slot() or
disable_slot() have been called.
Don't seems for me, that ever return 1 is the right way.
I don't know the impact of this change and I dont know if it is correct,I submitt this patch only with intention that save resources removing the
but I think you should explain why this change of behavior is fine.
get_power and set_power pointers and yours calls.
Thoughts ??
Thanks,
Guilherme