[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3b47d04a379a4c709d38f0ca4c17dff4@AUSX13MPC105.AMER.DELL.COM>
Date: Thu, 11 Jun 2020 13:14:54 +0000
From: <Mario.Limonciello@...l.com>
To: <kai.heng.feng@...onical.com>
CC: <alex.hung@...onical.com>, <dvhart@...radead.org>,
<andy@...radead.org>, <platform-driver-x86@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] platform/x86: intel-hid: Use hp-wireless for rfkill on HP
platforms
> > Just having the ACPI device present doesn't actually mean that the user
> > has a kernel compiled with hp-wireless or that it has finished
> initializing.
>
> We can use IS_REACHEABLE() to see if it's compiled.
Yes that was going to be my first suggestion.
>
> >
> > I would think this needs a better handshake in case hp-wireless was
> unloaded
> > or not present so the event could still come through intel-hid in this
> > circumstance.
>
> However, it's hard to determine if the other driver has finished
> initialization or any form of cross module handshake.
> Can you please point me to any good example if there's one?
Take a look at how drivers that use dell-wmi-descriptor work. They can rely
upon looking at -EPROBE_DEFER return code when trying to access the functionality
and do a handoff.
>
> >
> >> +
> >> return AE_OK;
> >> }
> >>
> >> --
> >> 2.17.1
Powered by blists - more mailing lists