From patchwork Wed Sep 13 15:00:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Binding X-Patchwork-Id: 722628 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 501D4EDEC70 for ; Wed, 13 Sep 2023 15:02:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9B3F3DF5; Wed, 13 Sep 2023 17:01:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9B3F3DF5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1694617326; bh=qsJkUGtFTBIdHhfbfjeyiEWXVlma/JbvLXxRT2Oku7I=; h=From:To:CC:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=L5byKnI1RGay7V6Ob3pWDS9KcDaaV5q6HA8GmfgvAPlhoaqlgMwskSj9vmx6i5s/8 1UwLcG+S3yA48f+SJRpmIJUrg9dpagJaXDvjwsV9VvTsrJeRBlKVvGBdMmFcdifA5t HszWobJiDyEGTc4IP+Ku1e/VSa1VYZMq1V87HnYA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 880F6F8057B; Wed, 13 Sep 2023 17:00:38 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7A840F8057F; Wed, 13 Sep 2023 17:00:37 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 76D24F8055A; Wed, 13 Sep 2023 17:00:30 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0079CF8047D for ; Wed, 13 Sep 2023 17:00:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0079CF8047D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=cirrus.com header.i=@cirrus.com header.a=rsa-sha256 header.s=PODMain02222019 header.b=fDrm011e Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38CMxBYr012824; Wed, 13 Sep 2023 10:00:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=C 2aOQUnst1sSvwyVTyYjTBnLEp5Xj6haYIZlFfs9Kyg=; b=fDrm011es/4gR/YmM SZZZwb4pgxzbui3FEXV2+d0bqASSQvR4obfUVf8BhkPzVCtNxyToQRyoqlJNbaMr ukbGIqfBJRfSJdRvOZS9yoVVtvzQYVfgpat9495aUR+n0au6im1V0A8hQSkL2bj7 VkR3jyLx0MpZ6laq75UUdaabDji5J16LNSKxE0+zCS1UDaV87Rd4taQV9CPZxuTB px09dRwRc/1yy6weJY/33FYaB7JiExjed2eY+4TiEiyIrbg2rMg3s/eaoI7mITNu t8+qwBOY2TBZwfo5hwd28+IVVfb21uvN4YEV8P1adA/RTI/cV+ZohvV/f+ph/xWp Q/5Fw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3t2y7u125n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2023 10:00:22 -0500 (CDT) 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_256_GCM_SHA384) id 15.2.1118.37; Wed, 13 Sep 2023 16:00:20 +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.2.1118.37 via Frontend Transport; Wed, 13 Sep 2023 16:00:20 +0100 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.120]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id D249C15B9; Wed, 13 Sep 2023 15:00:19 +0000 (UTC) From: Stefan Binding To: Mark Brown , Uday M Bhat , Pierre-Louis Bossart CC: , , , Stefan Binding Subject: [PATCH v1 0/3] ASoC: cs42l42: Fix handling of hard reset Date: Wed, 13 Sep 2023 16:00:09 +0100 Message-ID: <20230913150012.604775-1-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: 8iOFmS7J4x_emYUOqk3LNtz3skRREkJV X-Proofpoint-ORIG-GUID: 8iOFmS7J4x_emYUOqk3LNtz3skRREkJV X-Proofpoint-Spam-Reason: safe Message-ID-Hash: NK5RPAL4F7MWDECNZDADAQMQWSDDNLRN X-Message-ID-Hash: NK5RPAL4F7MWDECNZDADAQMQWSDDNLRN X-MailFrom: prvs=4620b17109=sbinding@opensource.cirrus.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: These patches fix 3 problems with hard reset: 1. Ensure a minimum reset pulse width 2. Deal with ACPI overriding the requested default GPIO state 3. Avoid a race condition when hard-resetting a SoundWire peripheral that is already enumerated Richard Fitzgerald (3): ASoC: cs42l42: Ensure a reset pulse meets minimum pulse width. ASoC: cs42l42: Don't rely on GPIOD_OUT_LOW to set RESET initially low ASoC: cs42l42: Avoid stale SoundWire ATTACH after hard reset sound/soc/codecs/cs42l42-sdw.c | 20 ++++++++++++++++++++ sound/soc/codecs/cs42l42.c | 21 ++++++++++++++++++++- sound/soc/codecs/cs42l42.h | 1 + 3 files changed, 41 insertions(+), 1 deletion(-)