drivers/hwmon/applesmc.c | 4 ++++ 1 file changed, 4 insertions(+)
Add iMacPro to whitelist as one iMacPro is released.
The iMacPro 1,1
Signed-off-by: Atharva Tiwari <evepolonium@gmail.com>
---
drivers/hwmon/applesmc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
index 7964b0e0c5e8..20e390d595e0 100644
--- a/drivers/hwmon/applesmc.c
+++ b/drivers/hwmon/applesmc.c
@@ -1373,6 +1373,10 @@ static const struct dmi_system_id applesmc_whitelist[] __initconst = {
DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
DMI_MATCH(DMI_PRODUCT_NAME, "iMac") },
},
+ { applesmc_dmi_match, "Apple iMacPro", {
+ DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "iMacPro") },
+ },
{ applesmc_dmi_match, "Apple Xserve", {
DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
DMI_MATCH(DMI_PRODUCT_NAME, "Xserve") },
--
2.39.5
On Thu, Jan 23, 2025 at 05:47:28PM +0530, Atharva Tiwari wrote: > Add iMacPro to whitelist as one iMacPro is released. > The iMacPro 1,1 > > Signed-off-by: Atharva Tiwari <evepolonium@gmail.com> Applied to hwmon-next. Note that the branch will only be pushed to linux-next after the commit window closed. Thanks, Guenter
Hi Guenter Sorry to barge in like that but I have some issues with this here. 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 I leave the fate of this to you now. Regards Aditya > On 29 Jan 2025, at 9:36 PM, Guenter Roeck <linux@roeck-us.net> wrote: > > On Thu, Jan 23, 2025 at 05:47:28PM +0530, Atharva Tiwari wrote: >> Add iMacPro to whitelist as one iMacPro is released. >> The iMacPro 1,1 >> >> Signed-off-by: Atharva Tiwari <evepolonium@gmail.com> > > Applied to hwmon-next. > > Note that the branch will only be pushed to linux-next after the commit > window closed. > > Thanks, > Guenter >
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 ? > 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/
On 1/29/25 08:06, Guenter Roeck wrote: > On Thu, Jan 23, 2025 at 05:47:28PM +0530, Atharva Tiwari wrote: >> Add iMacPro to whitelist as one iMacPro is released. >> The iMacPro 1,1 >> >> Signed-off-by: Atharva Tiwari <evepolonium@gmail.com> > > Applied to hwmon-next. > I should add that I fixed the subject line (there is no hwmom subsystem) and adjusted the description, so there is no need to comment on that. Guenter
© 2016 - 2025 Red Hat, Inc.