Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp723034pxb; Fri, 14 Jan 2022 15:02:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAO9bZBP7HuxiivWOSw/Vq5DKl3P3K8jvTWs/pkuhqy6Mr/bGWjf5H9B7aK/6WkBV45DPH X-Received: by 2002:a63:7209:: with SMTP id n9mr9960435pgc.550.1642201366565; Fri, 14 Jan 2022 15:02:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642201366; cv=none; d=google.com; s=arc-20160816; b=AY/VfBgD+lDWR0kSRlxTdb6FxbFRzeUoI/8CHPQkBLWK6s9IS++xRBAt1KrSktPpuY 0ljsQAAAwjCHvfJ7LTvRXkS4S6J141PNFe6FJAhoKDarAFAbng/Qg1ZR0FsoqQETa6mb mT2/jaTP5kGDHQu5Bpdt4SFjo5djeRn8GUV4+Qxmf2xCYiMTIPpp/ZioYNoB35As8waj QT3KagGR0HIKXAF6K4Ok4NKRsK6Q7mI31zocnTd/WOhPfHWorVNEeZ+F8VXhxWq+FpN7 iBLx58wbz8SKX4hzCSeUfCHE8MexmihSYLpbIQlgj4lsRHEUepERr1bIrDhN4OgjxDJb mWlQ== 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=51ImlDEadEsctg6nVH5bEBazgwQXCgp/FsQbc0BxjHM=; b=ViX3YTTnUDFhfatbTtYI/jorRkm4EWAh1V+V1Ir41GCcbOQV2hcnUKprvIgVEgnJIH OdPx6pQa7rDSyP1Ru9SwM6m4U5gSk7WOKkUdj2+SsZayy6EDFjeCL5fKadmexXI5TV03 JtNkW5VCh1Zm5dKSWNeEcUn2u7X98GKZGcBafPiLg/0hvenSkC3URd0zoWAAWe6fIm1r aJscaokfM/so31UFDLqbqJQtltyrAvixn/q0/7PRy1VORlQ3zSEGLb5/IGi1cXApTas/ nn6uycVsD+JKd7zdJ2/HbTRSQoGPpke2cfhnKwA9jEnfJXOiTFq24A1Z9berpGSJ18mU uFEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TXwiIDFv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x23si6700195pln.65.2022.01.14.15.02.34; Fri, 14 Jan 2022 15:02:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TXwiIDFv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S243600AbiANS4M (ORCPT + 99 others); Fri, 14 Jan 2022 13:56:12 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:39983 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243503AbiANS4K (ORCPT ); Fri, 14 Jan 2022 13:56:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642186568; 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=51ImlDEadEsctg6nVH5bEBazgwQXCgp/FsQbc0BxjHM=; b=TXwiIDFvsUZmxqS8YtaR4O58vY1s2m195rtKKzGxQlhx24rOPJfzJ1YNR9HaXniRkUVhf9 I2Ltlc/h5N7heS/dJckyfTbHGpw1R+6ytyHStToqyhTGp0Y3cVAzN07fo7YYl50DwBh95D wAzYixajvbSl84CMYs67o5cMsGm9XCA= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-29-eEr_p3bVOa2tWkMAEMMwUA-1; Fri, 14 Jan 2022 13:56:07 -0500 X-MC-Unique: eEr_p3bVOa2tWkMAEMMwUA-1 Received: by mail-ed1-f70.google.com with SMTP id l10-20020a056402124a00b0040186fbe40dso331337edw.7 for ; Fri, 14 Jan 2022 10:56:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=51ImlDEadEsctg6nVH5bEBazgwQXCgp/FsQbc0BxjHM=; b=fmVw6KMDgMk3AHNlp6hOoMGP8JtjRxG5gYlz3b37PjULwf5AQh5cTTvHbgWT1c3AT+ Pvo0rkVncogUe0DHl6na99db6cNsveqthYBvDDQr/7I6IlTg7l3NAg2bcRoRcdbw3WFA YuSz4uqnlcJ63Cu0eUJGpcFtEfgoK7BhNHF5A7T7dqAke+eRlVNhHAT7b4la8wGIrc80 d1tsraUqYgy6hkeOt3eR6K5HudC/1r/P2YL0hBAVZJl+TND4h6OLCBXyy+OH48vdX+Ly FqQNmQSANqdwEp7Xo8GAv9B6TOOBIuvXAXI+8f5+9i9XjJUocbl3FiVCGVT9/YpZpshU Hhlg== X-Gm-Message-State: AOAM532EFkYTfdselkxTUvt6V8Q8wUPE7xcD1a36xQbRt1OmouZET22t Y17c9PZ5QQfz1RPN9SYWrod1qpTNT6PCt7QktxXvbNaZlo/lX7UtG3F3UtovjwR+kJRyGq/VUB+ di6eOz251+/WM3+cHX+MAEk77 X-Received: by 2002:a05:6402:217:: with SMTP id t23mr7399930edv.283.1642186566035; Fri, 14 Jan 2022 10:56:06 -0800 (PST) X-Received: by 2002:a05:6402:217:: with SMTP id t23mr7399910edv.283.1642186565843; Fri, 14 Jan 2022 10:56:05 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1? (2001-1c00-0c1e-bf00-1db8-22d3-1bc9-8ca1.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1]) by smtp.gmail.com with ESMTPSA id hd16sm2000023ejc.62.2022.01.14.10.56.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jan 2022 10:56:05 -0800 (PST) Message-ID: <55cb8127-65e2-4d56-5127-2722c5bfe11f@redhat.com> Date: Fri, 14 Jan 2022 19:56:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH 5/5] ACPI / scan: Create platform device for CLSA0100 Content-Language: en-US To: "Rafael J. Wysocki" , Takashi Iwai Cc: Lucas Tanure , Len Brown , Mark Gross , Jaroslav Kysela , Takashi Iwai , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , ACPI Devel Maling List , patches@opensource.cirrus.com, Platform Driver , Linux Kernel Mailing List References: <20220113170728.1953559-1-tanureal@opensource.cirrus.com> <20220113170728.1953559-5-tanureal@opensource.cirrus.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 1/14/22 18:51, Rafael J. Wysocki wrote: > On Fri, Jan 14, 2022 at 5:19 PM Takashi Iwai wrote: >> >> On Thu, 13 Jan 2022 18:07:28 +0100, >> Lucas Tanure wrote: >>> >>> The ACPI device with CLSA0100 is a sound card with >>> multiple instances of CS35L41 connected by I2C to >>> the main CPU. >>> >>> We add an ID to the i2c_multi_instantiate_idsi list >>> to enumerate all I2C slaves correctly. >>> >>> Signed-off-by: Lucas Tanure >> >> I think it's better to merge this from sound git tree together with >> others in the patch set, presumably for rc1. >> >> It'd be great if ACPI people can take a review and give an ack/nack. > > Hans, what do you think? This patch (5/5) applies on top of: https://lore.kernel.org/linux-acpi/20211210154050.3713-1-sbinding@opensource.cirrus.com/ Which still needs some work and which really should be merged through the ACPI tree. IMHO it would be best to simply drop this (5/5) from this series and move it to the v3 of the series which I've linked to above. 1-4 can be merged through the alsa tree independently of 5/5 AFAIK. Regards, Hans > >>> --- >>> drivers/acpi/scan.c | 2 ++ >>> drivers/platform/x86/i2c-multi-instantiate.c | 8 ++++++++ >>> 2 files changed, 10 insertions(+) >>> >>> diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c >>> index c215bc8723d0..2a68031d953e 100644 >>> --- a/drivers/acpi/scan.c >>> +++ b/drivers/acpi/scan.c >>> @@ -1753,6 +1753,8 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) >>> */ >>> {"BCM4752", }, >>> {"LNV4752", }, >>> + /* Non-conforming _HID for Cirrus Logic already released */ >>> + {"CLSA0100", }, >>> {} >>> }; >>> >>> diff --git a/drivers/platform/x86/i2c-multi-instantiate.c b/drivers/platform/x86/i2c-multi-instantiate.c >>> index 4956a1df5b90..a51a74933fa9 100644 >>> --- a/drivers/platform/x86/i2c-multi-instantiate.c >>> +++ b/drivers/platform/x86/i2c-multi-instantiate.c >>> @@ -147,6 +147,12 @@ static const struct i2c_inst_data int3515_data[] = { >>> {} >>> }; >>> >>> +static const struct i2c_inst_data cs35l41_hda[] = { >>> + { "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 }, >>> + { "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 }, >>> + {} >>> +}; >>> + >>> /* >>> * Note new device-ids must also be added to i2c_multi_instantiate_ids in >>> * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). >>> @@ -155,6 +161,8 @@ static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { >>> { "BSG1160", (unsigned long)bsg1160_data }, >>> { "BSG2150", (unsigned long)bsg2150_data }, >>> { "INT3515", (unsigned long)int3515_data }, >>> + /* Non-conforming _HID for Cirrus Logic already released */ >>> + { "CLSA0100", (unsigned long)cs35l41_hda }, >>> { } >>> }; >>> MODULE_DEVICE_TABLE(acpi, i2c_multi_inst_acpi_ids); >>> -- >>> 2.34.1 >>> >