From: Armin Wolf <W_Armin@gmx.de>
To: Hans de Goede <hdegoede@redhat.com>,
Andrew Kallmeyer <kallmeyeras@gmail.com>
Cc: platform-driver-x86@vger.kernel.org, soyer@irl.hu
Subject: Re: [PATCH 2/2] platform/x86: Add driver for Yoga Tablet Mode switch
Date: Fri, 17 Mar 2023 10:43:48 +0100 [thread overview]
Message-ID: <edf7e0da-eb22-b72b-ecb2-8a0579fac2b9@gmx.de> (raw)
In-Reply-To: <2ab9674c-b7e6-a794-f302-2724f038da97@redhat.com>
Am 16.03.23 um 10:02 schrieb Hans de Goede:
> Hi
>
> On 3/15/23 23:39, Armin Wolf wrote:
>
> <snip>
>
>>> As a site note, i recommend to use the get_maintainer.pl scripts under
>>> scripts/ to find
>>> any additional maintainers which should be CC-ed. Since your patch
>>> series touches the
>>> ideapad-laptop driver, its maintainer (Ike Panhc
>>> <ike.pan@canonical.com>) should also be
>>> notified about this patch series.
>>>
>> I forgot to mention that your patches have to title, please add one for the next revision.
> Armin, I'm not sure what you mean with this ?
>
> For me the patches have a good $subject / first line of the commit message ?
>
> Regards,
>
> Hans
>
>
My fault, i messed up. Sorry for the unnecessary noise.
Armin Wolf
>
>
>> Armin Wolf
>>
>>>> Also have I correctly set Gergo as the commit author for this PATCH
>>>> 2/2 email like Hans said to? I wasn't sure if I had it right and I
>>>> could fix it in the v2 series.
>>>>
>>> You are still the author of the second patch. Also you should not send
>>> a patch series as
>>> a reply to any previous emails.
>>>
>>>>> acpi_dev_put() is missing.
>>>> Thanks! Not sure why I thought it was okay to delete lenovo_ymc_remove
>>>> but I have added that back in with the input_unregister_device call.
>>>>
>>>>> Maybe it would be beneficial to allow userspace to get the current
>>>>> usage mode without having
>>>>> to wait for an WMI event. This way, userspace could still react to
>>>>> situations like the device
>>>>> already being in tablet mode when this driver is loaded.
>>>> I'm not following how to implement this, not familiar enough with WMI.
>>>> Could you explain more?
>>> I meant that your driver should, after (!) setting up the input device
>>> and event handling, call
>>> sparse_keymap_report_event() with the code obtained from
>>> wmidev_evaluate_method() so that userspace knows about the initial state
>>> of the input device. You might also CC linux-input@vger.kernel.org for
>>> the next patch series, so that the input driver maintainers can also
>>> review your patch series.
>>>
>>>>> If the drivers handling the event and data GUIDs are fine with being
>>>>> instantiated multiple
>>>>> times, then adding the WMI GUIDs to the allow_duplicates[] list in
>>>>> drivers/platform/x86/wmi.c
>>>>> will allow the WMI driver core to handle duplicated event and data
>>>>> GUIDs.
>>>> Is there an easy way to test if it's fine to run multiple copies?
>>>> Currently testing by compiling the module with an inlined
>>>> ideapad-laptop.h out of the kernel tree and using the insmod command
>>>> to load it.
>>> Drivers can be instantiated multiple times, and each time their probe
>>> callback is invoked,
>>> and many older WMI drivers cannot do this, so the allowlist exists.
>>> The section "State Container" in
>>> Documentation/driver-api/driver-model/design-patterns.rst
>>> explains how to write drivers which can be instantiated multiple times.
>>>
>>> If your driver is not a singleton, i.e. it can safely be instantiated
>>> multiple times, then
>>> you can add its WMI GUID to the allowlist.
>>>
next prev parent reply other threads:[~2023-03-17 9:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 21:43 [RFC PATCH] Add Lenovo Yoga Mode Control driver Gergo Koteles
2022-10-05 13:14 ` Hans de Goede
2022-10-05 15:39 ` Barnabás Pőcze
2023-03-10 4:17 ` [PATCH 0/2] platform/x86: Add driver for Yoga Tablet mode switch Andrew Kallmeyer
2023-03-10 4:17 ` [PATCH 1/2] platform/x86: Move ideapad ACPI helpers to a new header Andrew Kallmeyer
2023-03-10 4:17 ` [PATCH 2/2] platform/x86: Add driver for Yoga Tablet Mode switch Andrew Kallmeyer
2023-03-10 10:28 ` Armin Wolf
2023-03-15 3:37 ` Andrew Kallmeyer
2023-03-15 22:33 ` Armin Wolf
2023-03-15 22:39 ` Armin Wolf
2023-03-16 9:02 ` Hans de Goede
2023-03-17 9:43 ` Armin Wolf [this message]
2023-03-16 9:00 ` Hans de Goede
2023-03-17 12:39 ` Armin Wolf
2023-03-18 17:50 ` Andrew Kallmeyer
2023-03-18 17:55 ` Andrew Kallmeyer
2023-03-20 14:43 ` Hans de Goede
2023-03-20 14:41 ` Hans de Goede
2023-03-20 14:38 ` Hans de Goede
2023-03-21 1:05 ` Gergo Koteles
2023-03-21 2:14 ` Andrew Kallmeyer
2023-03-22 20:39 ` Gergo Koteles
2023-03-22 21:03 ` Andrew Kallmeyer
2023-03-22 21:38 ` Gergo Koteles
2023-03-21 9:13 ` Hans de Goede
2023-03-22 20:49 ` Gergo Koteles
2023-03-22 21:23 ` [RFC PATCH] Add Lenovo Yoga Mode Control driver Gergo Koteles
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=edf7e0da-eb22-b72b-ecb2-8a0579fac2b9@gmx.de \
--to=w_armin@gmx.de \
--cc=hdegoede@redhat.com \
--cc=kallmeyeras@gmail.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=soyer@irl.hu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox