X86 platform drivers
 help / color / mirror / Atom feed
From: Andrew Kallmeyer <kallmeyeras@gmail.com>
To: platform-driver-x86@vger.kernel.org, hdegoede@redhat.com, soyer@irl.hu
Cc: Andrew Kallmeyer <kallmeyeras@gmail.com>
Subject: [PATCH 0/2] platform/x86: Add driver for Yoga Tablet mode switch
Date: Thu,  9 Mar 2023 20:17:24 -0800	[thread overview]
Message-ID: <20230310041726.217447-1-kallmeyeras@gmail.com> (raw)
In-Reply-To: <20221004214332.35934-1-soyer@irl.hu>

This driver maps the Lenovo Yoga tablet mode switch to a SW_TABLET_MODE input
device. This will make the tablet status available to desktop environments.

This patch series is the result of the discussion at
https://lore.kernel.org/r/CAG4kvq9US=-NjyXFMzJYu2zCJryJWtOc7FGZbrewpgCDjdAkbg@mail.gmail.com/

I decided to follow-up on the patch Gergo wrote and respond to the review
comments to get it merged and available for everyone.

As Gergo said: It should work with  models like the Yoga C940, Ideapad
flex 14API, Yoga 9 14IAP7, Yoga 7 14ARB7.
The 14ARB7 model must trigger the EC to send mode change events. This
might be a firmware bug.

I have additionally tested this on the Yoga 7 14IAL7.

Andrew Kallmeyer (1):
  platform/x86: Move ideapad ACPI helpers to a new header

Gergo Koteles (1):
  platform/x86: Add driver for Yoga Tablet Mode switch

 drivers/platform/x86/Kconfig          |  10 ++
 drivers/platform/x86/Makefile         |   1 +
 drivers/platform/x86/ideapad-laptop.c | 135 +-------------------
 drivers/platform/x86/ideapad-laptop.h | 152 ++++++++++++++++++++++
 drivers/platform/x86/lenovo-ymc.c     | 177 ++++++++++++++++++++++++++
 5 files changed, 341 insertions(+), 134 deletions(-)
 create mode 100644 drivers/platform/x86/ideapad-laptop.h
 create mode 100644 drivers/platform/x86/lenovo-ymc.c

-- 
2.39.2


  parent reply	other threads:[~2023-03-10  4:22 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 ` Andrew Kallmeyer [this message]
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
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=20230310041726.217447-1-kallmeyeras@gmail.com \
    --to=kallmeyeras@gmail.com \
    --cc=hdegoede@redhat.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