From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796404507; b=5lW8l0YKguHlB4nNyQ/DCcv3Ro5T+OvBNY3zFl0eBew07Dna29ZI/14ByrC2Xrdk7U8G O9Ow+8HcuHjPtn0LfecFZsz9XUgIm864rXx38KQ7SMm4jucUOR6CrWHZM7Wx1s9hejpya gaWyM02D6mD2DfiwcRlsycogZnh0tadSUJUkolnOORERir5Uvz2hsxRv8/QwPBWf6sH8h gEwlkFvYuIeH3HGL8oS+Iyd7hvuZ/vJFArU8J/2MoeuZ4chlFRGnmaPS9dxilxgfGLfa+ 0SlBbn4OXv+/dbciH5rAo1m1xNm1sv70WDc8FmyZSeqEQ6ooprx0VGRkjQIhIM6vXdQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404507; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=b5+QY1YBrlUGE0cDXzMkRJeIvVFTj4XkIHU60HnU6Ps=; b=TjI8ZhoqFcFaupkRrvAIIpa85mYdj7VnYVe5sNBfEG/N2g6339XMeCjQfpv/PCVScn7k nhEfFgRMpMjIsb1L4id0tRnZoh3OyERjl09JlPnJ7J4vXFIXv19dNtumDhYMqXYkXaPWj ubWGFbgT5R4OE665mgwvxN3DFE8hq9MCt1SM27IIVgNKubWBjv7EB8HlfoCCDYkY3XVp2 eVmfWI3jyYFZwonk9iFgjKoOpPQpRXE1dsiBbGVMK+Y32UOhP3Fx/PwtpPTXUtjjsmXHG IZ9BxXWi6bFqI2foQ2wCMrcXnk9c5OYvnRmFvuJan9XHTJK5j/nQVxZ/Ll/UOpGGPDw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RlbJ2iR2; arc=none smtp.remote-ip=192.198.163.11 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F5F9606A32D; Fri, 4 Dec 2026 17:15:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6F5F9606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RlbJ2iR2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796404507; x=1827940507; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=b5+QY1YBrlUGE0cDXzMkRJeIvVFTj4XkIHU60HnU6Ps=; b=RlbJ2iR2ZfF5pnu/dM6DdVNx2+AwWJhzbCrTNjG6sx4gQJlZpFKF+sqV 1OM4W/t0RZqy1CZzMFqrAzIQJhMKhbYI2SuWAVNp106X5Mkf7HN+45H4g 4KbG38XK1Y/rQBg5x5k/WKTW4Q43Um+k1+I3nTwHLMEoiVkZYNkjp10CC Nw2kAZZtVlwwW1Sa0n9yA2H1XU4rlgUpnRKoads0ixcPIVIoU8IjzzAWk 2JDz13hmnVSwaefbt5Hfa9/LcMQgd5K5tpZKFRRTw7vmn1tS1AGbAqYtL phIrxt0s6xRaM1sS0ieFidpkcaRsPXe+A+oc1RAeYgDRd+gpX9Twnad6o A==; X-CSE-ConnectionGUID: zTfbCSvIRj+SC/MJkQRodQ== X-CSE-MsgGUID: 2GSjy81oQGW3n0/dg66OkA== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5297808" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5297808" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 09:15:06 -0800 X-CSE-ConnectionGUID: DZMbvO+hSE2h2HfW/u7f6A== X-CSE-MsgGUID: hnFWEsB7SwSDiCTWLxCpMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5600040" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 09:14:54 -0800 Date: Fri, 4 Dec 2026 19:14:51 +0200 From: Andy Shevchenko To: Aditya Garg Cc: Atharva Tiwari , Ihor Odainyi , Antoine Sidem , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Len Brown , Linus Walleij , Bartosz Golaszewski , Sven Peter , Janne Grunau , Neal Gompa , Guenter Roeck , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Sebastian Reichel , Alexandre Belloni , Wim Van Sebroeck , Jarkko Sakkinen , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Paul Moore , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-leds@vger.kernel.org, mfd@lists.linux.dev, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 11/14] acpi: disable battery and adapter for x86 apple machines Message-ID: References: <20261204131619.5059-1-atharvatiwarilinuxdev@gmail.com> <20261204131619.5059-12-atharvatiwarilinuxdev@gmail.com> <185f1d2a-fdf8-44f5-95b4-148dade83930@linux.dev> X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <185f1d2a-fdf8-44f5-95b4-148dade83930@linux.dev> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Fri, Dec 04, 2026 at 08:26:48PM +0530, Aditya Garg wrote: > On 04-Dec-26 07:38 PM, Andy Shevchenko wrote: > > On Fri, Dec 04, 2026 at 08:12:51AM -0500, Atharva Tiwari wrote: ... > >> + if (IS_ENABLED(CONFIG_MACSMC_ACPI) && > >> + IS_ENABLED(CONFIG_MACSMC_POWER) && x86_apple_machine) > >> + return -ENODEV; > > > > This is a hack. And it's even indented wrongly. > > Do you have a better idea to avoid using duplicate devices? The commit message is poorly written to advice anything. It's unclear why we have duplicate drivers for the same ACPI HID to begin with. Can MAC case be enumerated differently? When the SMS driver is not compiled this one is still in use, why is it not a problem? So, there are many unaswered questions... -- With Best Regards, Andy Shevchenko