mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Aditya Garg <gargaditya08@live.com>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "maarten.lankhorst@linux.intel.com"
	<maarten.lankhorst@linux.intel.com>,
	"mripard@kernel.org" <mripard@kernel.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"simona@ffwll.ch" <simona@ffwll.ch>,
	"andriy.shevchenko@linux.intel.com"
	<andriy.shevchenko@linux.intel.com>,
	Kerem Karabay <kekrby@gmail.com>,
	Atharva Tiwari <evepolonium@gmail.com>,
	Aun-Ali Zaidi <admin@kodeit.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH v7 2/2] drm/tiny: add driver for Apple Touch Bars in x86 Macs
Date: Mon, 3 Mar 2025 16:18:15 +0000	[thread overview]
Message-ID: <PN3PR01MB95972F1CD27FDF6FF6DA37EAB8C92@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM> (raw)



> On 3 Mar 2025, at 9:15 PM, Thomas Zimmermann <tzimmermann@suse.de> wrote:
> 
> Hi
> 
>> Am 27.02.25 um 10:42 schrieb Aditya Garg:
>>>> On 27 Feb 2025, at 3:04 PM, Thomas Zimmermann <tzimmermann@suse.de> wrote:
>>> Hi
>>>> Am 26.02.25 um 17:04 schrieb Aditya Garg:
>>>> From: Kerem Karabay <kekrby@gmail.com>
>>>> The Touch Bars found on x86 Macs support two USB configurations: one
>>>> where the device presents itself as a HID keyboard and can display
>>>> predefined sets of keys, and one where the operating system has full
>>>> control over what is displayed.
>>>> This commit adds support for the display functionality of the second
>>>> configuration. Functionality for the first configuration has been
>>>> merged in the HID tree.
>>>> Note that this driver has only been tested on T2 Macs, and only includes
>>>> the USB device ID for these devices. Testing on T1 Macs would be
>>>> appreciated.
>>>> Credit goes to Ben (Bingxing) Wang on GitHub for reverse engineering
>>>> most of the protocol.
>>>> Also, as requested by Andy, I would like to clarify the use of __packed
>>>> structs in this driver:
>>>> - All the packed structs are aligned except for appletbdrm_msg_information.
>>>> - We have to pack appletbdrm_msg_information since it is requirement of
>>>>  the protocol.
>>>> - We compared binaries compiled by keeping the rest structs __packed and
>>>>  not __packed using bloat-o-meter, and __packed was not affecting code
>>>>  generation.
>>>> - To maintain consistency, rest structs have been kept __packed.
>>>> I would also like to point out that since the driver was reverse-engineered
>>>> the actual data types of the protocol might be different, including, but
>>>> not limited to, endianness.
>>>> Link: https://github.com/imbushuo/DFRDisplayKm
>>>> Signed-off-by: Kerem Karabay <kekrby@gmail.com>
>>>> Co-developed-by: Atharva Tiwari <evepolonium@gmail.com>
>>>> Signed-off-by: Atharva Tiwari <evepolonium@gmail.com>
>>>> Co-developed-by: Aditya Garg <gargaditya08@live.com>
>>>> Signed-off-by: Aditya Garg <gargaditya08@live.com>
>>>> Signed-off-by: Aun-Ali Zaidi <admin@kodeit.net>
>>> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
>>> Thanks for the effort. As far as I'm concerned, this driver looks good. If no further comments come in, I can add it to the DRM tree in a few days.
>> Thanks a lot Thomas, as well as Andy for reviewing the driver and making it better!
> 
> I've merged the driver into the DRM misc tree and it should be available in v6.15.

Thanks Thomas!

             reply	other threads:[~2025-03-03 16:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-03 16:18 Aditya Garg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-26 16:03 [PATCH v7 0/2] Touch Bar DRM driver for " Aditya Garg
2025-02-26 16:04 ` [PATCH v7 2/2] drm/tiny: add driver for Apple Touch Bars in " Aditya Garg
2025-02-27  9:34   ` Thomas Zimmermann
2025-02-27  9:42     ` Aditya Garg
2025-03-03 15:45       ` Thomas Zimmermann

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=PN3PR01MB95972F1CD27FDF6FF6DA37EAB8C92@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM \
    --to=gargaditya08@live.com \
    --cc=admin@kodeit.net \
    --cc=airlied@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=evepolonium@gmail.com \
    --cc=kekrby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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

all inboxes | Powered by JetHome®