From: Johannes Berg <johannes@sipsolutions.net>
To: Jonathan Richardson <jonathan.richardson@broadcom.com>
Cc: linux-wireless@vger.kernel.org,
devicetree <devicetree@vger.kernel.org>,
Marek Belisko <marek@goldelico.com>,
Mark Rutland <mark.rutland@arm.com>
Subject: Re: rfkill guidance
Date: Wed, 28 Sep 2016 08:49:51 +0200 [thread overview]
Message-ID: <1475045391.4139.26.camel@sipsolutions.net> (raw)
In-Reply-To: <1475044682.4139.18.camel@sipsolutions.net> (sfid-20160928_083815_252455_876B9E2B)
> Today we already have all the platform rfkill instances (like the
> various ACPI ones) that don't live off a device that they control,
> but instead control the platform's radio functionality. And in some
> cases, that actually has very similar behaviour to what was proposed
> in the previous patch, and what you're looking for, in that it
> sometimes kills power to BT or WiFi chips when soft-disabled (or
> kicks them off the bus in some other way).
Actually, let me retract that a bit. Obviously they *do* control a
device or radio, but we don't actually know which one. And that can
actually become a problem, since we don't even know how they work etc.
So IOW, even with the ACPI stuff, there's no real "platform rfkill"
concept - it's always killing a specific radio.
There used to be some rfkill that was just reflecting the button state,
but I think we got rid of that in favour of reflecting button state
through hid/input, if it doesn't also control a radio.
So, actually, the more I think about it the more I agree with Mark's
objection. It doesn't really make sense to have a concept of an rfkill
and not know what radio it controls.
In your particular case, Jon, it's complicated by the fact that you
don't want to bind a kernel driver with the rfkill, not sure where
you'd get a device to tie the rfkill to then.
johannes
WARNING: multiple messages have this Message-ID (diff)
From: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
To: Jonathan Richardson
<jonathan.richardson-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
Cc: linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Marek Belisko <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Subject: Re: rfkill guidance
Date: Wed, 28 Sep 2016 08:49:51 +0200 [thread overview]
Message-ID: <1475045391.4139.26.camel@sipsolutions.net> (raw)
In-Reply-To: <1475044682.4139.18.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org> (sfid-20160928_083815_252455_876B9E2B)
> Today we already have all the platform rfkill instances (like the
> various ACPI ones) that don't live off a device that they control,
> but instead control the platform's radio functionality. And in some
> cases, that actually has very similar behaviour to what was proposed
> in the previous patch, and what you're looking for, in that it
> sometimes kills power to BT or WiFi chips when soft-disabled (or
> kicks them off the bus in some other way).
Actually, let me retract that a bit. Obviously they *do* control a
device or radio, but we don't actually know which one. And that can
actually become a problem, since we don't even know how they work etc.
So IOW, even with the ACPI stuff, there's no real "platform rfkill"
concept - it's always killing a specific radio.
There used to be some rfkill that was just reflecting the button state,
but I think we got rid of that in favour of reflecting button state
through hid/input, if it doesn't also control a radio.
So, actually, the more I think about it the more I agree with Mark's
objection. It doesn't really make sense to have a concept of an rfkill
and not know what radio it controls.
In your particular case, Jon, it's complicated by the fact that you
don't want to bind a kernel driver with the rfkill, not sure where
you'd get a device to tie the rfkill to then.
johannes
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-09-28 6:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <324c35c6-49ca-174c-db07-674532f3e628@broadcom.com>
[not found] ` <1474961105.5141.5.camel@sipsolutions.net>
2016-09-27 22:21 ` rfkill guidance Jonathan Richardson
2016-09-28 6:38 ` Johannes Berg
2016-09-28 6:38 ` Johannes Berg
2016-09-28 6:49 ` Johannes Berg [this message]
2016-09-28 6:49 ` Johannes Berg
2016-09-28 17:33 ` Marcel Holtmann
2016-09-28 17:33 ` Marcel Holtmann
2016-09-28 20:54 ` Jonathan Richardson
2016-09-28 20:54 ` Jonathan Richardson
2016-09-29 11:22 ` Johannes Berg
2016-09-29 11:22 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1475045391.4139.26.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=devicetree@vger.kernel.org \
--cc=jonathan.richardson@broadcom.com \
--cc=linux-wireless@vger.kernel.org \
--cc=marek@goldelico.com \
--cc=mark.rutland@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.