3Com PCI 3c905 causes annoying pci_set_power_state() messages
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 18 lines · Bjørn Mork
I don't know if this is the correct place for 3c59x bugs. Couldn't find a maintainer entry for it. Please redirect as appropriate.
pci_set_power_state()is a bit weird, causing a failure if a device doesn't support PM and the driver tries to1) save it's
power_state,
2) wake up and do something, and
3) then reset to the saved state.The 3c59x driver does this in it's ioctl function.
pci_set_power_state()will never setcurrent_statefor such devices,
causing them to remain inPCI_UNKNOWN(5) forever. But if you try to
set the state toPCI_UNKNOWN, bounding will kick in, limiting the state
toPCI_D3hot(3). Thenpci_set_power_state()will complain becausePCI_D3hot<current_state, printing useless messages like this:
Quoted 7 lines
pci_set_power_state(): 0000:00:09.0: state=3, current state=5pci_set_power_state(): 0000:00:09.0: state=3, current state=5and returning
-EINVAL.I believe this is wrong because
pci_set_power_state()is supposed to return-EIOif device does not support PCI PM.
Yes, please fix PCI.
Jeff