[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<MAZPR01MB828051F6B356FC4BDA029D1AB8E92@MAZPR01MB8280.INDPRD01.PROD.OUTLOOK.COM>
Date: Thu, 30 Jan 2025 03:54:09 +0000
From: Aditya Garg <gargaditya08@...e.com>
To: Guenter Roeck <linux@...ck-us.net>
CC: Atharva Tiwari <evepolonium@...il.com>, Henrik Rydberg
<rydberg@...math.org>, Jean Delvare <jdelvare@...e.com>,
"linux-hwmon@...r.kernel.org" <linux-hwmon@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, Orlando
Chamberlain <orlandoch.dev@...il.com>
Subject: Re: [PATCH v2] hwmom/applesmc: add imacpro
Hi
> On 30 Jan 2025, at 1:06 AM, Guenter Roeck <linux@...ck-us.net> wrote:
>
> Hi Aditya,
>
>> On 1/29/25 10:22, Aditya Garg wrote:
>> Hi Guenter
>> Sorry to barge in like that but I have some issues with this here.
>
> No worries. Thanks for stepping in.
>
>> 1. The iMacPro1,1 is a T2 Mac and the applesmc driver does not support T2 Macs upstream, thus making no point of adding this. We at t2linux have downstream patches to support T2 Macs, but we do not aim to upstream them since we wish to use a separate, and better driver for the SMC on T2 Macs.
>> 2. The person who submitted the patch took it from the t2linux project, of which I am a part of, but didn't care to even credit the original author of the patch. I’m not sure how legal it is to redistribute the code in his own name and removing the original author’s name without taking permission from the author as per the GPL2 license, but I think the author should be credited. In fact the original patch was Signed-off-by the original author.
>> For reference, the original patch, which we never intended to be sent upstream, is given over here:
>> https://github.com/t2linux/linux-t2-patches/blob/main/3007-applesmc-Add-iMacPro-to-applesmc_whitelist.patch
>
> FWIW, that patch looks much better than this patch.
>
> I am a bit confused, though: You are saying above that the patch is pointless.
> Is that because context patches adding support for T2 are missing ?
>
> Also, what about the patch at [1] ? It also adds t2 specific functionality,
> and it seems to match another patch from the t2linux project.
> Is that also missing some context ?
>
As far as patch in [1] in considered:
1. The patch alone cannot make fan work on T2 Macs. As you saw the other T2 patches, the 300x patch series in total is needed for T2 support, the reason is mentioned in the patch description of individual patch, which you may read if interested.
2. The patch becomes pointless again, since the driver still doesn't support T2 Macs. Ideally the whole patch series should be submitted.
3. We do not plan to send the whole patch series to add T2 support in applesmc, since Asahi Linux has a better SMC driver and we aim to use that. Just in case we change our decision to use applesmc, the whole series with proper credits shall be sent upstream, and not random patches without crediting the original people who wrote the code.
4. This patch was originally authored by Paul Pawlowski, and not the submitter, which you might have noticed when you saw the t2linux patch repo (it's the same repo which I sent in the previous email). The author had not yet signed-off the patch, thus requiring permission from the author as well.
I've also noticed the Aun-Ali Zaidi, the who the submitter has added in the signed-off-by was not Cced, which is kinda strange.
Again, like previous patch, the final call stays with you being a maintainer.
Thanks
Aditya
>> I leave the fate of this to you now.
>
> Thanks for letting me know. I dropped the patch. I'll also wait for your feedback
> about the patch at [1] before looking into it further.
>
> Thanks,
> Guenter
>
> ---
> [1] https://patchwork.kernel.org/project/linux-hwmon/patch/20250120183343.3494-1-evepolonium@gmail.com/
>
Powered by blists - more mailing lists