[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPcyv4jxU2oBTk-MzH7fepu0zXnTZsAdLbY8eOvpOvZOq_QaRw@mail.gmail.com>
Date: Sat, 25 Jun 2016 21:14:35 -0700
From: Dan Williams <dan.j.williams@...el.com>
To: Michal Suchanek <hramrach@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mark Brown <broonie@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Kees Cook <keescook@...omium.org>,
Thomas Gleixner <tglx@...utronix.de>,
Tejun Heo <tj@...nel.org>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Davidlohr Bueso <dave@...olabs.net>,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
Nikolay Aleksandrov <nikolay@...ulusnetworks.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Adrien Schildknecht <adrien+dev@...ischi.me>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-spi@...r.kernel.org
Subject: Re: [PATCH 3/3] drivers core: allow id match override when manually
binding driver
On Thu, Jun 23, 2016 at 10:41 AM, Michal Suchanek <hramrach@...il.com> wrote:
> This allows binding spidev on any slave device by hand using sysfs
> without adding superfluous compatibles or any other needless
> complication.
>
> Note that any slave driver that requires configuration will fail to
> probe anyway. Only a driver that binds to anything can be bound
> successfully.
>
> Signed-off-by: Michal Suchanek <hramrach@...il.com>
> ---
> drivers/base/Kconfig.debug | 14 +++++++++
> drivers/base/bus.c | 72 +++++++++++++++++++++++++++++++++++++++++++++-
> lib/Kconfig.debug | 2 ++
> 3 files changed, 87 insertions(+), 1 deletion(-)
> create mode 100644 drivers/base/Kconfig.debug
>
Why change the driver core? The matching policy can be changed with
the "match" operation of a custom "struct bus_type".
Powered by blists - more mailing lists