Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC1D2C433EF for ; Wed, 12 Jan 2022 13:06:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353365AbiALNGP (ORCPT ); Wed, 12 Jan 2022 08:06:15 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:22846 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1353345AbiALNGI (ORCPT ); Wed, 12 Jan 2022 08:06:08 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20C3aG3Y027128; Wed, 12 Jan 2022 07:05:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=PODMain02222019; bh=6qEp7FIsfc2aS94Jjc56bNCIgPLbqWS3T1SvLIBjUzE=; b=RTcH2yqLWjxmklKE8NQMJ03l4vdJ07C+B4M6+eItgrJlND5bx7kfEJXNeANW09ELlMQ3 JBam2b0z6Md05j+RIxYAX99ZFN7cNjnrd4k6+EZx29CLzFTAlrT1FJGUYM/FYWjm2JB0 QP/6fSppab5gblhCXq5pHNklrUAL0RTTXSLpaVOXMOmQCv/Tj4I5ekc6x81ebpwrwrqj Nsj44n9P6GAe/ed17yTm19U8gYjsi45Gcah2LDNrdeGVSW2RXcknQ5zE4C2e5XXx7H5U EefrdFEGdY/eQ8MBDoSAdpZF0exoRGWnbn9d4NPWck+LZFsLVGFwzm55OP8gt2CdG5JN fw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3dhmc30ja9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 12 Jan 2022 07:05:11 -0600 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_128_GCM_SHA256) id 15.1.2375.18; Wed, 12 Jan 2022 13:05:09 +0000 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.1.2375.18 via Frontend Transport; Wed, 12 Jan 2022 13:05:09 +0000 Received: from [198.61.65.50] (unknown [198.61.65.50]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id EB8BCB10; Wed, 12 Jan 2022 13:05:02 +0000 (UTC) Message-ID: Date: Wed, 12 Jan 2022 13:05:02 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v6 08/10] ACPI / scan: Create platform device for CLSA0100 and CSC3551 ACPI nodes Content-Language: en-US To: Stefan Binding , 'Hans de Goede' , "'Rafael J. Wysocki'" CC: 'Len Brown' , 'Mark Gross' , 'Liam Girdwood' , 'Jaroslav Kysela' , 'Mark Brown' , 'Takashi Iwai' , "'moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...'" , 'ACPI Devel Maling List' , , 'Platform Driver' , 'Linux Kernel Mailing List' References: <20211217115708.882525-1-tanureal@opensource.cirrus.com> <20211217115708.882525-9-tanureal@opensource.cirrus.com> <4b5506b1-20c6-3983-d541-86dc2388b2a7@redhat.com> <004001d7f5c6$7329d4d0$597d7e70$@opensource.cirrus.com> From: Lucas tanure In-Reply-To: <004001d7f5c6$7329d4d0$597d7e70$@opensource.cirrus.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: ajAjh2HRcUl_MYpVwTUQ65XDdiVlIFiQ X-Proofpoint-GUID: ajAjh2HRcUl_MYpVwTUQ65XDdiVlIFiQ X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/21 17:24, Stefan Binding wrote: > Hi, > >> -----Original Message----- >> From: Hans de Goede >> Sent: 17 December 2021 18:27 >> To: Rafael J. Wysocki ; Lucas Tanure >> ; Stefan Binding >> >> Cc: Len Brown ; Mark Gross ; >> Liam Girdwood ; Jaroslav Kysela ; >> Mark Brown ; Takashi Iwai ; >> moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM... >> ; ACPI Devel Maling List > acpi@vger.kernel.org>; patches@opensource.cirrus.com; Platform Driver >> ; Linux Kernel Mailing List > kernel@vger.kernel.org> >> Subject: Re: [PATCH v6 08/10] ACPI / scan: Create platform device for >> CLSA0100 and CSC3551 ACPI nodes >> >> Hi, >> >> On 12/17/21 18:19, Rafael J. Wysocki wrote: >>> On Fri, Dec 17, 2021 at 12:57 PM Lucas Tanure >>> wrote: >>>> >>>> The ACPI device with CLSA0100 or CSC3551 is a sound card >>>> with multiple instances of CS35L41 connectec by I2C to >>> >>> "connected" I suppose? >>> >>>> the main CPU. >>>> >>>> We add an ID to the i2c_multi_instantiate_ids list to enumerate >>>> all I2C slaves correctly. >>>> >>>> Signed-off-by: Lucas Tanure >>> >>> This requires an ACK from Hans. >>> >>> If you receive one, please feel free to add my ACK to it too. >> >> One problem which I see here is that this change conflicts with >> this series: >> >> https://lore.kernel.org/all/20211210154050.3713-1- >> sbinding@opensource.cirrus.com/ >> >> I have reviewing that series on my todo list. >> >> One interesting question for you (Rafael) about that series is >> that i2c-multi-instantiate.c, which after the series also handles >> spi devices,is being moved to drivers/acpi . >> >> This is fine with me, but I wonder if it would not be better >> to keep it under drivers/platform/x86 ? Since the new SPI >> use-cases are also all on x86 laptops AFAICT. >> >> But back to this series, as said the 2 series conflict, since >> both are being submitted by @opensource.cirrus.com people, >> it would be good if the Cirrus folks can decide in which >> order these series should be merged. >> >> It might be best to just move this one patch to the other series? >> Thus removing the conflict between the 2 series. >> >> Regards, >> >> Hans >> > > We don’t really have a preference which order these two chains > should be merged in. We would rebase the other chain if one > got merged first. > If pushed for an answer, maybe: > https://lore.kernel.org/all/20211210154050.3713-1-sbinding@opensource.cirrus.com/ > should be merged first? > > Thanks, > Stefan > >> >> >>>> --- >>>> drivers/acpi/scan.c | 3 +++ >>>> drivers/platform/x86/i2c-multi-instantiate.c | 11 +++++++++++ >>>> 2 files changed, 14 insertions(+) >>>> >>>> diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c >>>> index b7a6b982226e..8740cfa11f59 100644 >>>> --- a/drivers/acpi/scan.c >>>> +++ b/drivers/acpi/scan.c >>>> @@ -1712,8 +1712,11 @@ static bool >> acpi_device_enumeration_by_parent(struct acpi_device *device) >>>> static const struct acpi_device_id i2c_multi_instantiate_ids[] = { >>>> {"BSG1160", }, >>>> {"BSG2150", }, >>>> + {"CSC3551", }, >>>> {"INT33FE", }, >>>> {"INT3515", }, >>>> + /* 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..a889789b966c 100644 >>>> --- a/drivers/platform/x86/i2c-multi-instantiate.c >>>> +++ b/drivers/platform/x86/i2c-multi-instantiate.c >>>> @@ -147,6 +147,14 @@ 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 }, >>>> + { "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(). >>>> @@ -154,7 +162,10 @@ static const struct i2c_inst_data int3515_data[] = >> { >>>> static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { >>>> { "BSG1160", (unsigned long)bsg1160_data }, >>>> { "BSG2150", (unsigned long)bsg2150_data }, >>>> + { "CSC3551", (unsigned long)cs35l41_hda }, >>>> { "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 >>>> >>> > > As the ic2-multi-instantiate patch chain is still being worked out, we would like to submit a new chain for CLSA0100 id and a few fixes for the HDA cs35l41 driver. And to avoid conflicts the ic2-multi-instantiate patch chain will wait for this new patch chain to be merged. Thanks, Lucas Tanure