Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1292344pxb; Wed, 20 Oct 2021 02:04:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPKR0QFBMTosQLc5xI7dxPR6xmjVJ2baa4lN0qmYAfZQCaFKHpQR636ttxGHmPR69gjHF7 X-Received: by 2002:a50:eb92:: with SMTP id y18mr56544315edr.153.1634720661068; Wed, 20 Oct 2021 02:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634720661; cv=none; d=google.com; s=arc-20160816; b=NGzTDuE/7hU6EKsytpaWmDXKReADpFmt2RKogeUINBa6jFJF+EPEFZGsMVKoUvpewP oUh9VuSfLst8Wb0noZa1YuggAPpL+LEk9wohFmnofFsZXuka+Mgfy0C1jOa5BYAhBP6I qZVckCjKgyVk5Ur0Eu4Oo+vuIHJYE8QH79BC2OeMlQJd7ZsYZ7QPFnYfdrrznh+qGsh/ w8Rdtfxcgs20ofeVNKaJPdmphG1DZWPhza1ULY371PSabYcjvyF3mpw52l7GBTEl1CCw bMzPvwgUShEMrhYwM7hG7yJASiHmLRyW6DImo+YHgNNYgT+yXZMhXMmQ9QaAVUfmUFe3 Iy0A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BRB15INUzbwgExlLEwJMjzHHvgiQARdV2CIXbCq4f98=; b=bYNOgApgj3B6fKD77h8LqAFBbXEEk8LXtn5hZBuelu9KMnmAP1TrjSRJDRnMT3my// TU8+kawQ0h3mtSyPRXgB9ZGkp+9EcrKLD2HVM6r6OgMDUVgxz4wlyRIDuvygx/jQFUvW oOycEUXD+P2RWppC8NXCg/5+1+/J3hB8z8FTvPCQ8ZE8wMkPcxdqVf049sTwzLkDV9I2 T6gMK4ug+yDbSpVgHwwYJcRpsKsezTYy0pcMlitpIz7VHmfZho7o2YqFpBZfJC5mrEbn pwDKvZE7gStOCwQ9FcjdOYpsthBEWJzMnskruChbZfHIrWyHSgYIToiZPMLkmYZsgvkN yPwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=DeTaS6OZ; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si2288695edf.416.2021.10.20.02.03.55; Wed, 20 Oct 2021 02:04:21 -0700 (PDT) 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=@cirrus.com header.s=PODMain02222019 header.b=DeTaS6OZ; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230076AbhJTJDD (ORCPT + 99 others); Wed, 20 Oct 2021 05:03:03 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:48986 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229833AbhJTJDC (ORCPT ); Wed, 20 Oct 2021 05:03:02 -0400 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 SMTP id 19K5NeVY008304; Wed, 20 Oct 2021 04:00:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=BRB15INUzbwgExlLEwJMjzHHvgiQARdV2CIXbCq4f98=; b=DeTaS6OZqt5p4ZZuOYrge9xq2+RqPkcItJyQOtJy2K6RaDL3GiK8to09z7qgI/irwybS 6nokCwLDzkZH/lmMBWUVZVXDQr3NV0clsaFDcEsFHpAGySmJ6AdrufT2HSmCc15zpIqi N2IG8mJ7bgKhi9mmeYXyFfT+PB/wFp8RFpDbX6o2yvGrzcsP0R6zuY9Zq9X6g+G/Ya8P DoBgG8vs3pMZnPDqOduDOAAVBoQiinoJTJAS/95l8SaQGdtYrsu8DycSLCdBUb8zLmhB wiYmQqMzdiLMcNOxGAUdLvcm2YHt6l997689T+z1WZa0K43dQh/gJrohQHi4EyFXvODl Rg== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 3bt9k0gcqs-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 20 Oct 2021 04:00:02 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 20 Oct 2021 09:59:47 +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.1.2375.7 via Frontend Transport; Wed, 20 Oct 2021 09:59:47 +0100 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.166]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 3F41411DA; Wed, 20 Oct 2021 08:59:47 +0000 (UTC) From: Lucas Tanure To: Mark Brown , Takashi Iwai , "Jaroslav Kysela" , Len Brown , David Rhodes , Liam Girdwood , "Rafael J . Wysocki" CC: , , , , Lucas Tanure Subject: [RFC PATCH v2 3/3] ACPI / scan: Create platform device for INT3515 ACPI nodes Date: Wed, 20 Oct 2021 09:59:44 +0100 Message-ID: <20211020085944.17577-4-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211020085944.17577-1-tanureal@opensource.cirrus.com> References: <20211020085944.17577-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 5MX4qB7iondzzwsyrMViwtIQPcIq5Kpy X-Proofpoint-ORIG-GUID: 5MX4qB7iondzzwsyrMViwtIQPcIq5Kpy X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ACPI device with CLSA0100 is a sound card with multiple instances of CS35L41. We add an ID to the I2C multi instantiate list to enumerate all I2C slaves correctly. Signed-off-by: Lucas Tanure --- drivers/acpi/scan.c | 1 + drivers/platform/x86/i2c-multi-instantiate.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 5b54c80b9d32..c1c27a408420 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1703,6 +1703,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG2150", }, {"INT33FE", }, {"INT3515", }, + {"CLSA0100", }, {} }; diff --git a/drivers/platform/x86/i2c-multi-instantiate.c b/drivers/platform/x86/i2c-multi-instantiate.c index a50153ecd560..b61f7e30d42a 100644 --- a/drivers/platform/x86/i2c-multi-instantiate.c +++ b/drivers/platform/x86/i2c-multi-instantiate.c @@ -139,6 +139,12 @@ static const struct i2c_inst_data bsg2150_data[] = { {} }; +static const struct i2c_inst_data clsa0100_data[] = { + { "cs35l41", IRQ_RESOURCE_GPIO, 0 }, + { "cs35l41", IRQ_RESOURCE_GPIO, 0 }, + {} +}; + /* * Device with _HID INT3515 (TI PD controllers) has some unresolved interrupt * issues. The most common problem seen is interrupt flood. @@ -170,6 +176,7 @@ static const struct i2c_inst_data bsg2150_data[] = { static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { { "BSG1160", (unsigned long)bsg1160_data }, { "BSG2150", (unsigned long)bsg2150_data }, + { "CLSA0100", (unsigned long)clsa0100_data }, { } }; MODULE_DEVICE_TABLE(acpi, i2c_multi_inst_acpi_ids); -- 2.33.1