Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1392232rwb; Fri, 28 Jul 2023 08:47:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGI/5qm2p5eChaGRuc2MzRfjdxHH8D1xYGBFsMrlVxJTqKuMcNqpgVuJPSgsKDGV0DIl5Mk X-Received: by 2002:a05:6a20:1586:b0:134:d4d3:f0ab with SMTP id h6-20020a056a20158600b00134d4d3f0abmr2208853pzj.4.1690559236926; Fri, 28 Jul 2023 08:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690559236; cv=none; d=google.com; s=arc-20160816; b=Bb8flAsXkQxBd+e6EOlTvG3mqpXdviXemrIWwmOVoSmOFkJhYirnX6TYBKX1v6Zpsd bPSRZbYbeGg/T0Ub0iYxzfldHQeAaBlr2ihgBij96l35GABZS910ARixX/Fvc0iOty/J ZNbr9srJ7+aPV0ULKKZBjenIwYrDylr+BtYBK9BsgfCQOf0KCS3p9Kyjob5k4ahpaPpW ps//lT/Eo6Uh3vTkbIMCZAGtuHaXmiMOJ39Sx0nRKixA1hQ48bNI7aYLE3nzs58zaQUl SLKiI/lCQ5Rz+D+x6AszrG7niw7k4bSaJYl7Nn4f+mpLg57TGpwiY25OQBPjNudNmWK9 NkYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ABWn9xG1C1yuE0KBaVxBxf8Ie/L3XUjpvZ/CLriS60c=; fh=EqD7wzXkeppxHZLAALJSOzzHtGSETzob5ohuTjQZ9UI=; b=E1ENQnhCfdyaUhq6DPeNjvINyl7twE73OJA+Qixe7VRu5FiaQjaAmXxDZHqw+IPv4T 6bhkt5pyDdIO6n0G/10DzsnrySbDTcPIYQeqEwPzKqe4Y51VnrhS2UwvSGZtKXdM5sJU 4+fGc028RXTtxbMVdvD3rY9s/CUCrbZjjXZbhqn88m6mY2L803+JmCn6EqHmdcc53aZO kjfFjiPBVLc3qEw+plNe9enshqaq30a0oQfYMv6/Z5MZmJEJ2cZLwynj/XmZlGDKYzBr T0V0a1GM9kI5fzC6c7xyxHooUggNVTUUgvX+RVHBazTp5V20x2Iydv+jtv4TW2uIpiRY 4Dxw== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 199-20020a6301d0000000b00563de9d4ed4si3069431pgb.828.2023.07.28.08.47.04; Fri, 28 Jul 2023 08:47:16 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237169AbjG1PbW convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 Jul 2023 11:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjG1PbV (ORCPT ); Fri, 28 Jul 2023 11:31:21 -0400 Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4824335A8; Fri, 28 Jul 2023 08:31:20 -0700 (PDT) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-565e64ed9f7so264656eaf.1; Fri, 28 Jul 2023 08:31:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690558279; x=1691163079; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1hVzfuNh9MUjr8i57XR6qph+tGTTd2zJJ4as7llKbWk=; b=G9x1/sbAZWydm0xql2fwrZLwlPPnm7/njtnQSP9E+R0URaixOtfvH6akrRfNDU2VRm 7dqTcb6lHNqj99IuLYHMxi7trI9/fyFmX2vKIcPShmzKpMCmpcvL7r1RnT4IcbIaFuQ3 VeKFxYrwjzjcvQaagXBwofcMe5qEBOeOAOuiUY4VPofB8CNlkjDFDUBfye0DpnCtOPEg dnBkYF0ko0jPRylEiAWqSVyyNDhWMiG9QVb+BJnE7NwucfZvd5OUWLXgoUKwCz4bx2HA el/yDkPwsHcZkVnaMa5S1F8UCKGdqjTa4r1rkY3CvmlrBKdz/HP4Us86S16JhcYXZVgx uuEg== X-Gm-Message-State: ABy/qLYTScKE0uZiVxD7ff+djjL+R4RWA987UJPpGBnrXSwoU92uWtfg M6hEtrPaZzKgl3+FBS1h9EQ5lI2fhXR1XN5PIrZo8f3p X-Received: by 2002:a4a:ba07:0:b0:56c:5e21:c730 with SMTP id b7-20020a4aba07000000b0056c5e21c730mr2383772oop.1.1690558279483; Fri, 28 Jul 2023 08:31:19 -0700 (PDT) MIME-Version: 1.0 References: <20230728111345.7224-1-rf@opensource.cirrus.com> In-Reply-To: <20230728111345.7224-1-rf@opensource.cirrus.com> From: "Rafael J. Wysocki" Date: Fri, 28 Jul 2023 17:31:08 +0200 Message-ID: Subject: Re: [PATCH v3] ACPI: scan: Create platform device for CS35L56 To: Richard Fitzgerald Cc: rafael@kernel.org, hdegoede@redhat.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@opensource.cirrus.com, Simon Trimmer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Jul 28, 2023 at 1:13 PM Richard Fitzgerald wrote: > > 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. > > There can be a 5th I2cSerialBusV2, but this is an alias address and doesn't > represent a real device. Ignore this by having a dummy 5th entry in the > serial-multi-instantiate instance list with the name of a non-existent > driver, on the same pattern as done for bsg2150. > > Signed-off-by: Simon Trimmer > Signed-off-by: Richard Fitzgerald Still ACKed. > --- > drivers/acpi/scan.c | 1 + > drivers/platform/x86/serial-multi-instantiate.c | 14 ++++++++++++++ > 2 files changed, 15 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..8158e3cf5d6d 100644 > --- a/drivers/platform/x86/serial-multi-instantiate.c > +++ b/drivers/platform/x86/serial-multi-instantiate.c > @@ -329,6 +329,19 @@ 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 }, > + /* a 5th entry is an alias address, not a real device */ > + { "cs35l56-hda_dummy_dev" }, > + {} > + }, > + .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 +350,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 >