Re: Network drivers that don't suspend on interface down



On Wed, Dec 20, 2006 at 01:12:51PM -0500, Dan Williams wrote:

Entirely correct. If the card is DOWN, the radio should be off (both TX
& RX) and it should be in max power save mode. If userspace expects to
be able to get the card to do _anything_ when it's down, that's just
110% wrong. You can't get link events for many wired cards when they
are down, so I fail to see where userspace could expect to do anything
with a wireless card when it's down too.

Because it works on the common hardware? If there's documentation about
what userspace can legitimately expect, then I'm happy to defer to that.
But in the absence of any indication as to what functionality users can
depend on, deciding that existing functionality is a bug is, well,
impolite.

Also, how does rfkill fit into this? rfkill implies killing TX, but do
we have the granularity to still receive while the transmit paths are
powered down?

Is rfkill not just primarily an interface for us getting events when the
radio changes state? Every time I read up on it I get a little more
confused - some time I really need to make sense of it...

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Network drivers that dont suspend on interface down
    ... so I fail to see where userspace could expect to do anything ... with a wireless card when it's down too. ... Because it works on the common hardware? ...
    (Linux-Kernel)
  • Re: [2.6.22-rc3][ACPI?] Resume from s2r doesnt work.
    ... I'm still suspecting that the problem is related to your graphics adapter. ... Maybe it's the most common problem, but why do you think so? ... a black screen the kernel should return to userspace. ... Still, if the card is a 7300 or higher, that need not work (at present we don't ...
    (Linux-Kernel)
  • Re: [GIT PATCH] more Driver core patches for 2.6.19
    ... validation of the commands that are sent to the card. ... isolation-capable IOMMU, so if you let userspace program it, you need ... Userspace IO was never intended to replace all kinds of possible ... This is possible with a standard kernel and is done ...
    (Linux-Kernel)
  • Re: Network drivers that dont suspend on interface down
    ... The obvious route would be to power the card down, ... every two minutes to perform a scan, or if userspace explicitly requests ... hardware, reload the firmware, let the firmware boot, and then talk to ...
    (Linux-Kernel)