Re: WMI driver no longer load after switching to generic UUID library
From: Andy Shevchenko
Date: Mon May 30 2016 - 03:57:13 EST
On Sun, 2016-05-29 at 13:22 -0700, Linus Torvalds wrote:
> Andy?
>
> Looking at that commit, it does look like what wmi_parse_guid +
> wmi_swap_bytes did was to implement a LE uuid. So the conversion looks
> correct, but the fact that it breaks something obviously means that
> there's something missing. What's going on?
I proposed to add print to the loops to see what's going on there.
>
> And dammit, how I hate uuid's and the idiotic byte ordering issue.
> It's possibly the only idiotic standard that is even worse than xml.
T'so seems has the same opinionÂhttp://www.spinics.net/lists/kernel/msg2
263333.html
>
> ÂÂÂÂÂÂÂÂÂÂÂÂLinus
>
> On Sun, May 29, 2016 at 11:35 AM, Kui Zhang <kuizhang@xxxxxxxxx>
> wrote:
> > Hello,
> >
> > After commit 538d7eb86d58 ("drivers/platform/x86/wmi.c: use generic
> > UUID library")
> >
> > some keyboard functions stopped working:
> >
> > clevo-wmi - git://git.code.sf.net/p/clevo-wmi/code
> > [ÂÂÂ83.877887] Clevo Get GUID not found
> >
> > /*
> > #define CLWMI_GET_GUID "ABBC0F6D-8EA1-11d1-00A0-C90629100000"
> >
> > ...
> > ÂÂÂÂif(!wmi_has_guid(CLWMI_GET_GUID)) {
> > ÂÂÂÂÂÂÂÂpr_err("Clevo Get GUID not found\n");
> > ÂÂÂÂÂÂÂÂreturn -ENODEV;
> > ÂÂÂÂ}
> >
> >
> > */
> >
> > clevo-xsm-wmi - https://bitbucket.org/lynthium/clevo-xsm-wmi.git
> > insmod: ERROR: could not insert module clevo-xsm-wmi.ko: No such
> > device
> >
> > /*
> >
> > #define CLEVO_GET_GUIDÂÂÂÂ"ABBC0F6D-8EA1-11D1-00A0-C90629100000"
> >
> > ...
> >
> > ÂÂÂÂif (!wmi_has_guid(CLEVO_GET_GUID)) {
> > ÂÂÂÂÂÂÂÂCLEVO_XSM_INFO("No known WMI control method GUID found\n");
> > ÂÂÂÂÂÂÂÂreturn -ENODEV;
> > ÂÂÂÂ}
> >
> > */
> >
> >
> > thanks
> > Kui.Z
--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy