Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1173410rwb; Wed, 26 Jul 2023 08:34:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAOgj4zj3hl+/de03qRQFRh/vTjkyU5Gg6kV13jBx+czdz8GYQFh8UmXrIDsmKc+xJCIQr X-Received: by 2002:a05:6a20:d408:b0:138:dbff:f0c1 with SMTP id il8-20020a056a20d40800b00138dbfff0c1mr2032384pzb.1.1690385662062; Wed, 26 Jul 2023 08:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690385662; cv=none; d=google.com; s=arc-20160816; b=lqLraznqPCtpR1bGiieYMFVl2zrm+moz9nwJsBN5D0B1rQEXqP25dz2+HmFdUvSuxh FXgyfQSahbksBAb+Jk7MJ0LhoyZ3NuJmZdWpCWT7tWz7ZT0xg8oXHdRJA+NwhAoj/fvU UsWoV7dOHCE76nJldkX7RDZIhvhX8aqNE93d+hxrBpK1Oo4ywfABkbyruXZyEBUQUtd2 Umt2yCOlMU9i19ddFAep6PzCBYzucVbM8ly3K44/XMCCre4YLVPtxX2BpxkFwCK9uHVr 5GQKRxWQejWGLd0gZTSLkAT2rcoflRz7ke+cAxQNnz6XjUJubdAAMqI7DsFZiFez2gSY krIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KyY1COWWZwFG4H+/fy8Ic1ZEI+oVlwAbyLmr8esJTF4=; fh=6pHe83Tco+6xPWbi2g4epq9n5bkQvLa8sPMi/4b1lxU=; b=hwXXI62z93Xt8ICIIDgDDzG9gIp79TxeaBuYnXwXzVmp5/0TVU/YdePcaHOMpuetc3 caxQf52gZRpC90ZAbc8f1FYlMw3YJqF7WASfQPLrBlAeCLcZYn0HADUmV893VQ6cDASX xbJ7te0z7nMYPKmSNvMG5OO3ZcAQOMcMk6dU0YDn+uPwgkyN3IBpUO7yLjT6vqXxcb5U KPt15O5Vg6gciow6ULQ+NkS2RHV57ijFoIJvxXVFoNTC8XraGo7FzTQCECnQTkEkWhxm DFnun2k6Gi29XEbp6rBlmcg3A4Dgng47Zx55VDppyVqcOp5nmZoaeP5IEuDk9zIUPzeY 6TMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fg2mPODs; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a637442000000b0055fce913d52si12749200pgn.761.2023.07.26.08.34.08; Wed, 26 Jul 2023 08:34:22 -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=@redhat.com header.s=mimecast20190719 header.b=fg2mPODs; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234471AbjGZOQ2 (ORCPT + 99 others); Wed, 26 Jul 2023 10:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234458AbjGZOQL (ORCPT ); Wed, 26 Jul 2023 10:16:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7BF4201 for ; Wed, 26 Jul 2023 07:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690380812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KyY1COWWZwFG4H+/fy8Ic1ZEI+oVlwAbyLmr8esJTF4=; b=fg2mPODsIlbBFUASFAqq5z3cZ6tc0CtUYViinG5GRhM96tqpv3jsGuyY1blivSN57CNeVa JiUP/096B3j3H+iIODwFyHAvwL0s2u37FQAKUIJFFntnGzwIHgrTXF3zN5+2U8ODhpMuRD x+WofMw+UXSpTOdPOP049HeWvAkRqkg= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-656-Dz9_jGYCOS2AGsRiW5yI3Q-1; Wed, 26 Jul 2023 10:13:30 -0400 X-MC-Unique: Dz9_jGYCOS2AGsRiW5yI3Q-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-993d7ca4607so437052066b.1 for ; Wed, 26 Jul 2023 07:13:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690380809; x=1690985609; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KyY1COWWZwFG4H+/fy8Ic1ZEI+oVlwAbyLmr8esJTF4=; b=C2OyiDKGNBspL7upUVyj+20g3itLWQLfyQsOpq76nVOpCtbv4KzgxW5fwzoTAf/Rmx a/xDmgrwbFBinEUDdooqAA6gP8w3+cEPuKupkK/APexye2U17qe/K0EmGe3o3jzrSoA6 eoMhz07m4Q5yDTlNd0IVCCUR5Sa78hqLrQ9eo8RhPBSksikiWFfJoxPmT5C9BTg8YeFO N2BgfIfhLm7zsbyXvKaZHXiCio2u3qlmdLLeifFvE3sMLnUQxxg+hbDNBZhCznNizq+P DnXi1Ig87pgrF0QRBEbSVcMvyDNtA0dTiSBHH8ST9HV7M2CFHafwVUuQH6hUU6LeIXQL bfOA== X-Gm-Message-State: ABy/qLYXUTqzYASpRi+5fXncdzEp7xwknlf/Of5bn6TmE5OpvJZNOwDO s+vH9+1Qno5iCFuUfefFvV//+sfMWb57ST+jP9V+C5fhkrD3D0ktqO1ns7/doqg6ZyvutlGVEhn sPbRXl8DvCAy+w7v8Dm1+y7GO X-Received: by 2002:a17:907:78c9:b0:99a:7ff1:9b5a with SMTP id kv9-20020a17090778c900b0099a7ff19b5amr1914198ejc.4.1690380809505; Wed, 26 Jul 2023 07:13:29 -0700 (PDT) X-Received: by 2002:a17:907:78c9:b0:99a:7ff1:9b5a with SMTP id kv9-20020a17090778c900b0099a7ff19b5amr1914182ejc.4.1690380809169; Wed, 26 Jul 2023 07:13:29 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id ko5-20020a170907986500b00988781076e2sm9639387ejc.78.2023.07.26.07.13.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 07:13:28 -0700 (PDT) Message-ID: <33cdbf63-8fe4-da7e-5d36-6e63fe303b24@redhat.com> Date: Wed, 26 Jul 2023 16:13:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] ACPI: scan: Create platform device for CS35L56 Content-Language: en-US, nl To: Richard Fitzgerald , rafael@kernel.org, lenb@kernel.org, markgross@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@opensource.cirrus.com, Simon Trimmer References: <20230726112759.18814-1-rf@opensource.cirrus.com> From: Hans de Goede In-Reply-To: <20230726112759.18814-1-rf@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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 Hi Richard, On 7/26/23 13:27, 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. > > Signed-off-by: Simon Trimmer > Signed-off-by: Richard Fitzgerald Thanks, patch looks good to me: Reviewed-by: Hans de Goede I have 1 other serial-multi-instantiate.c patches in my fixes branch (see below) and since this just adds new hw-ids I think this can go upstream through my fixes branch too. Rafael, do you agree with me taking this upstream as a 6.5 fix? And if yes may I have your ack for that ? About that 1 patch, that adds a new IRQ type: IRQ_RESOURCE_AUTO and I wonder if this patch should not use that same new type right from the start: https://git.kernel.org/pub/scm/linux/kernel/agit/pdx86/platform-drivers-x86.git/commit/?h=fixes&id=676b7c5ecab36274442887ceadd6dee8248a244f This makes me realize that I should probably have pinged you and ask for feedback on that patch since it was send by a community member rather then by Cirrus. Note this is currently in Linus' master tree, so any fixes to it need to be submitted on top (not that I expect any issues since it still behaves as before on acpi_dev_gpio_irq_get() success and only adds an platform_get_irq() fallback when that fails). Regards, Hans > --- > 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 f3dcbdd72fec..dcf2914b97c9 100644 > --- a/drivers/platform/x86/serial-multi-instantiate.c > +++ b/drivers/platform/x86/serial-multi-instantiate.c > @@ -316,6 +316,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_GPIO, 0 }, > + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 0 }, > + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 0 }, > + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 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(). > @@ -324,6 +335,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 },