Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796181226; b=OKxnD055drVp8TEnUjxYmUmUxV739mUw6UQP2HnZgCMv8HaNaiOv84alI+8GCDd3oiEC 9xlFRov3d5L84exNTvDLOSlgHCphLxrhTrlilz6J76YZO7mCz2VTKyMuO70CkwvHtalHw S2nnEtd/ti93OaBI3tokmc8jdhAWsZRtfGIOh4PVhnJ8CF5ZINmM8U3qRqv0i0wLnA8Hv bm/4Zbr0vikfRdf/UrGNA/0pBsXm/LE8rTMLSGl4FqL0e40sU+LBTSc/r62Tf/KTYczJW xgh3t0+9d0/Nsysy3oN94IzRdq9TvC7to1zd6Qg/UK2pHFxycMsmWfoxfvGU3yvNqWQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796181226; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=qz72PHQ9Pn8R4swFpIOPLg+aeh0qNsgPeuv/6vrWG8E=; b=w7gxNGhR3mO4AJb9axQ1N686Fv7t4U+vYWZDibIqDqAqNiWIRNOhNo3P/KzN0nED956Y XvYoeVtDPZptv2GjiQLC5uOUjSVJnG08a59GMM1JGv212GhXe5NN5ECwIfxfkppkqNm/r M+bf/aAqgZGJ6vW/vxGZjpUREF4j40mDd+DGoz+5KxcPR1PRC9blHiW9u+TIeaoshUx7C hlgT89FF9blvUbNsuW+TsPghY/0EGzmWb/jtMOv35okCbBU9JbsFA78pRZcFT8zXm8q9D UK17KdwtANn23E2mHTrBOSHeEu5epLQW9Ih8nwQpCITi/EYwu0CeAumWziRfKk2/L+w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=slensky.com; spf=pass smtp.mailfrom=slensky.com; dkim=pass header.d=slensky.com header.i=@slensky.com header.a=rsa-sha256 header.s=MBO0001 header.b=OsEtPigD; arc=none smtp.remote-ip=80.241.56.172 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E5A6606A32A; Wed, 2 Dec 2026 03:13:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9E5A6606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=slensky.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=slensky.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=slensky.com header.i=@slensky.com header.a=rsa-sha256 header.s=MBO0001 header.b=OsEtPigD Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4jfNBb54XNzMm0B; Wed, 02 Dec 2026 04:13:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slensky.com; s=MBO0001; t=1796181223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qz72PHQ9Pn8R4swFpIOPLg+aeh0qNsgPeuv/6vrWG8E=; b=OsEtPigDTZdn7oyGhydVGCpLhzuYfSDyvwJHZWNf8gaXpoQyJPoMNeF75BW5otNArMjUo0 aKgW6knpoVARAhzVyuL5xeq3RedMWF2FPsBOvNX9WqVh9QE7g/MwIV39Tx8ODhPrJIb6al hsWPORMgkfgH04eQotO2Q/PjiYz8lUxn7B0Rb1eY0dim//ylO770eMr9ZcLIAP+gA5dJ4z KO5R/E2vu2uiLI1zUbX/+pbMtQyjQPnZBxPAGOMPoQgth4ZoVQdA+uBI/g469eWe6gmysV ydG2/tjaRYCbtX4Ez4xtckpVHz1SsS0uuUTxlzskV/XoEy8p7PhlmwiIziD61w== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of linux@slensky.com designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=linux@slensky.com From: Stephan Lensky To: Takashi Iwai Cc: Jaroslav Kysela , Mark Brown , Liam Girdwood , "Rafael J . Wysocki" , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede , Len Brown , Kevin Cuperus , linux-sound@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, Stephan Lensky Subject: [PATCH 2/4] ACPI/platform: Add MAX98390 to serial-multi-instantiate Date: Tue, 1 Dec 2026 22:12:31 -0500 Message-ID: <20261202031233.171555-3-linux@slensky.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261202031233.171555-1-linux@slensky.com> References: <20261202031233.171555-1-linux@slensky.com> X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4jfNBb54XNzMm0B From: Kevin Cuperus The Samsung Galaxy Book4 Pro 360 (NP960QGK) describes its four MAX98390 speaker amplifiers with a single ACPI device, _HID "MAX98390" (\_SB.PC00.I2C2.MX98), which has one I2cSerialBusV2 resource per amplifier at addresses 0x38, 0x39, 0x3c and 0x3d. "MAX98390" is not a valid ACPI or PNP ID, but it ships in the laptop's firmware, so list it with the other non-conforming IDs. Register the "MAX98390" hardware ID with the serial-multi-instantiate driver and add it to the ACPI scan ignore list so that the ACPI core creates a platform device for serial-multi-instantiate, which instantiates one I2C client named "max98390-hda" per amplifier, instead of a single I2C client for the first resource. The amplifiers have no interrupt lines, so the instances use IRQ_RESOURCE_NONE. The ASoC max98390 driver matches the "MX98390" ID used on Chromebooks and is not affected. Signed-off-by: Kevin Cuperus [stephan: moved the ID to a non-conforming _HID section] Signed-off-by: Stephan Lensky --- The scan.c hunk conflicts with commit 7a3eb8c45ff1 ("ACPI: Use named initializers for acpi_device_id arrays") in linux-pm's linux-next branch. The resolution is to add the entry as { .id = "MAX98390" }. --- drivers/acpi/scan.c | 2 ++ drivers/platform/x86/serial-multi-instantiate.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 9218264f8da1..88fc8de61690 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1835,6 +1835,8 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"CLSA0100", }, {"CLSA0101", }, {"CLSA0102", }, + /* Non-conforming _HID for MAX98390 already released by Samsung */ + {"MAX98390", }, /* * Some ACPI devs contain SerialBus resources even though they are not * attached to a serial bus at all. diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c index ffec4f0a4992..f958136beb16 100644 --- a/drivers/platform/x86/serial-multi-instantiate.c +++ b/drivers/platform/x86/serial-multi-instantiate.c @@ -409,6 +409,17 @@ static const struct smi_node tas2781_hda = { .bus_type = SMI_AUTO_DETECT, }; +static const struct smi_node max98390_hda = { + .instances = { + { "max98390-hda", IRQ_RESOURCE_NONE, 0 }, + { "max98390-hda", IRQ_RESOURCE_NONE, 0 }, + { "max98390-hda", IRQ_RESOURCE_NONE, 0 }, + { "max98390-hda", IRQ_RESOURCE_NONE, 0 }, + {} + }, + .bus_type = SMI_I2C, +}; + /* * Note new device-ids must also be added to ignore_serial_bus_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). @@ -427,6 +438,8 @@ static const struct acpi_device_id smi_acpi_ids[] = { { "CLSA0100", (unsigned long)&cs35l41_hda }, { "CLSA0101", (unsigned long)&cs35l41_hda }, { "CLSA0102", (unsigned long)&cs35l41_hda }, + /* Non-conforming _HID for MAX98390 already released by Samsung */ + { "MAX98390", (unsigned long)&max98390_hda }, { } }; MODULE_DEVICE_TABLE(acpi, smi_acpi_ids); -- 2.55.0