From: Hans de Goede <hdegoede@redhat.com>
To: Huacai Chen <chenhuacai@kernel.org>
Cc: Huacai Chen <chenhuacai@loongson.cn>,
Arnd Bergmann <arnd@arndb.de>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>,
Robert Moore <robert.moore@intel.com>,
Mark Gross <markgross@kernel.org>,
loongarch@lists.linux.dev,
linux-arch <linux-arch@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Xuefeng Li <lixuefeng@loongson.cn>,
Jianmin Lv <lvjianmin@loongson.cn>,
Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: Re: [PATCH V3] LoongArch: Add ACPI-based generic laptop driver
Date: Sat, 17 Sep 2022 23:02:06 +0200 [thread overview]
Message-ID: <8d9c5cb5-ef1e-d46e-bfa6-39c80e3f060e@redhat.com> (raw)
In-Reply-To: <CAAhV-H7zwtJ06=2LQXg_uonRA8vzUif4AQNbzF_L2jewf7cVTA@mail.gmail.com>
Hi,
On 9/17/22 17:39, Huacai Chen wrote:
> Hi, Hans,
>
> On Sat, Sep 17, 2022 at 6:00 PM Hans de Goede <hdegoede@redhat.com> wrote:
<snip>
>>> + /* Prepare input device, but don't register */
>>> + generic_inputdev->name =
>>> + "Loongson Generic Laptop/All-in-one Extra Buttons";
>>> + generic_inputdev->phys = ACPI_LAPTOP_DRVR_NAME "/input0";
>>> + generic_inputdev->id.bustype = BUS_HOST;
>>> + generic_inputdev->dev.parent = NULL;
>>> +
>>> + /* Init subdrivers */
>>> + for (i = 0; i < ARRAY_SIZE(generic_sub_drivers); i++) {
>>> + ret = generic_subdriver_init(&generic_sub_drivers[i]);
>>> + if (ret < 0) {
>>> + input_free_device(generic_inputdev);
>>> + return ret;
>>> + }
>>> + }
>>
>> I see above that you have only 1 subdriver. Do you expect there to be
>> more in the future ? If not then it would be better to just completely
>> remove the subdriver abstraction and simply do everything directly
>> from the main probe/remove functions (see below).
> At this time we only add the most basic subdriver, and more subdrivers
> will be added, so I want to keep it here.
Ok, that is fine.
Regards,
Hans
next prev parent reply other threads:[~2022-09-17 21:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-17 6:52 [PATCH V3] LoongArch: Add ACPI-based generic laptop driver Huacai Chen
2022-09-17 9:41 ` Hans de Goede
2022-09-17 15:34 ` Huacai Chen
2022-09-17 10:00 ` Hans de Goede
2022-09-17 15:39 ` Huacai Chen
2022-09-17 21:02 ` Hans de Goede [this message]
2022-09-17 13:27 ` kernel test robot
2022-09-18 7:38 ` kernel test robot
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=8d9c5cb5-ef1e-d46e-bfa6-39c80e3f060e@redhat.com \
--to=hdegoede@redhat.com \
--cc=arnd@arndb.de \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=jiaxun.yang@flygoat.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=lixuefeng@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=lvjianmin@loongson.cn \
--cc=markgross@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=robert.moore@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).