Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2238802rwb; Thu, 27 Jul 2023 04:30:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlGzov7pL6gyRZep1deNuco4DGXc80ug7I+3f7pqCofSK+dCcYAoWoTQH1y96gCxjC2gRDgp X-Received: by 2002:a17:907:7715:b0:98e:3cef:68ff with SMTP id kw21-20020a170907771500b0098e3cef68ffmr1743969ejc.43.1690457414670; Thu, 27 Jul 2023 04:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690457414; cv=none; d=google.com; s=arc-20160816; b=RWzPUiIQV38o6pdfkDS9QIgboQO8DLwEKs4ag/6sLJ7MOKwS5mzONWNWlbxsyc6lvq W17rvkZDyhDGilXZ1E0DtSb3DRzfSNEfUbrPWrLRMzzu7Uk+QPAdYLVjTKyR9xC7LuSa CNO9BGI+iNGKOWd92rHRNBMNB/Qn5klZ6vtdVgRQTzaEYb+QV7ny27/kHqpf81EcJVR6 oUWFoS713joRKdYD+yY5NCIDYqG/FHEmx4iSDzDTongrtRL3iZGDvCkBEHMAQfc+GOGI JVdgUpJ8T8tBx79jUL2US4GfeenkaDLdl5z7EwEv0Hvnbef5lZkb7+Blpscq6EO6nePN zZRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nNTgqr4yvsi49EeWilsO6dT55ZXkVS4hNXcw1nvD10M=; fh=+UnqjzWRKlpIVyOnCfZrTrhG6G7i98b2IyJX4QK5aHY=; b=fDplCVAwoZtaaClEjd9iUn3WMyHkf00HzVXvQpoCzUrlTMvgaCYINRyX+UtzXLneJ7 hBoaTElB8YGrxEBprDvGVi1Om5XISbjOGrEp484qSeBExf76uWvLzMRo2NO/wc0a2eM7 nvtnsf1kU/7yeLp2h9IroXBX6MicVEpfpKUG9GmpfUhZqxV6WH9cr7eWOvgi+j7z3KTL fusJvgTOAEoimlhav3Bf/nmXgbYg+l5HbZnbuSZcr15gBkQ2U8QBWEwyEOiyw0ZOXnmt UBja/QCvYNB+I7Xlw3VZV+EQ1m4ZSp3pjayVWgDf59na3ujdpMUyy6Xei+1v2Ag0b3Kf ikxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=fpShysrR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gx20-20020a170906f1d400b0098e2a30ec3asi818665ejb.385.2023.07.27.04.29.49; Thu, 27 Jul 2023 04:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=fpShysrR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234252AbjG0KiT (ORCPT + 99 others); Thu, 27 Jul 2023 06:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234482AbjG0KiM (ORCPT ); Thu, 27 Jul 2023 06:38:12 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18995269E; Thu, 27 Jul 2023 03:38:10 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 36R70rMr014780; Thu, 27 Jul 2023 05:38:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=n NTgqr4yvsi49EeWilsO6dT55ZXkVS4hNXcw1nvD10M=; b=fpShysrRjoTa2BgUQ pPTLRPXxq5d7EBo5BuOKqaLShUJoSXjfj0924Y8bCecNcujPR6TJtFWneVI1DBVZ rOVHV1/QN8CFOYG6o+4SA9E5xtILDkhJQgigp48890xnMzWlDNRY8VAYBIKCt+hO JcG2gLowzdobO0dpw8sqnnWmWVXJGLJ/RuZ/yUN0p+LRpv556HoPif9fN0RvFyac t+PjGLMH7/7syOHDeIJEV0Uq/9TV7VvpFe89XwhToXGnLbeHWDxkleVHn1LY2/ap DHlHiz3sqbMQsm/PxyPb1UcySW0CBghzM0hllaCWlR6R/3uwH+u9EWBISklU5kUH okK5Q== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3s2q7121h4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 05:38:05 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 27 Jul 2023 11:38:03 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.30 via Frontend Transport; Thu, 27 Jul 2023 11:38:03 +0100 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.196]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 2364E45D; Thu, 27 Jul 2023 10:38:03 +0000 (UTC) From: Richard Fitzgerald To: , CC: , , , , Simon Trimmer , Richard Fitzgerald Subject: [PATCH v2] ACPI: scan: Create platform device for CS35L56 Date: Thu, 27 Jul 2023 11:37:54 +0100 Message-ID: <20230727103754.9914-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: iHJnrucHbbJIPKeNcK56SnkQmrp3LCI0 X-Proofpoint-ORIG-GUID: iHJnrucHbbJIPKeNcK56SnkQmrp3LCI0 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Simon Trimmer The ACPI device CSC3556 is a Cirrus Logic CS35L56 mono amplifier which is used in multiples, and can be connected either to I2C or SPI. There will be multiple instances under the same Device() node. Add it to ignore_serial_bus_ids and handle it in the serial-multi-instantiate driver. Signed-off-by: Simon Trimmer Signed-off-by: Richard Fitzgerald --- drivers/acpi/scan.c | 1 + drivers/platform/x86/serial-multi-instantiate.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 5b145f1aaa1b..87e385542576 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1714,6 +1714,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG1160", }, {"BSG2150", }, {"CSC3551", }, + {"CSC3556", }, {"INT33FE", }, {"INT3515", }, /* Non-conforming _HID for Cirrus Logic already released */ diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c index 2c2abf69f049..8afbeb008d3e 100644 --- a/drivers/platform/x86/serial-multi-instantiate.c +++ b/drivers/platform/x86/serial-multi-instantiate.c @@ -329,6 +329,17 @@ static const struct smi_node cs35l41_hda = { .bus_type = SMI_AUTO_DETECT, }; +static const struct smi_node cs35l56_hda = { + .instances = { + { "cs35l56-hda", IRQ_RESOURCE_AUTO, 0 }, + { "cs35l56-hda", IRQ_RESOURCE_AUTO, 0 }, + { "cs35l56-hda", IRQ_RESOURCE_AUTO, 0 }, + { "cs35l56-hda", IRQ_RESOURCE_AUTO, 0 }, + {} + }, + .bus_type = SMI_AUTO_DETECT, +}; + /* * Note new device-ids must also be added to ignore_serial_bus_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). @@ -337,6 +348,7 @@ static const struct acpi_device_id smi_acpi_ids[] = { { "BSG1160", (unsigned long)&bsg1160_data }, { "BSG2150", (unsigned long)&bsg2150_data }, { "CSC3551", (unsigned long)&cs35l41_hda }, + { "CSC3556", (unsigned long)&cs35l56_hda }, { "INT3515", (unsigned long)&int3515_data }, /* Non-conforming _HID for Cirrus Logic already released */ { "CLSA0100", (unsigned long)&cs35l41_hda }, -- 2.30.2