From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 864D8C433F5 for ; Tue, 26 Oct 2021 12:58:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 67C7960F6F for ; Tue, 26 Oct 2021 12:58:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 67C7960F6F Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 44ACE16ED; Tue, 26 Oct 2021 14:57:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 44ACE16ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1635253103; bh=TNCxyx9eCl99xmP/sE0Q5KzWg3Pz4i6CYoNf6OvbPWE=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=XIsrBJPtjind6QqKuhEoz3lwrp0TfoX0N/UsG+E2cTVkZhe/6ZYDi7aVpKEg6wgth KsGP07wfmcCCIHUmlxZMVFzlIPz7IGilLkn4VYyfoOYRJUQcYgTFRif9c2VshxVDBH F4d5+8Cqf35UuoSzOqieowWDtuFhSel+ViU2/XwM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A518EF80269; Tue, 26 Oct 2021 14:57:32 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 99742F802C8; Tue, 26 Oct 2021 14:57:31 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (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 E1A44F8010A for ; Tue, 26 Oct 2021 14:57:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E1A44F8010A Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="pVEv880F" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19Q8ssha024219; Tue, 26 Oct 2021 07:57:26 -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=xUQK4rx84DDhMKa29vtKDzqYEvWyNPAtmVXrRmpJ0v8=; b=pVEv880FtofQKBb7Bqibuo+X6YIahUjMX6rfijnZOk6uhaOTqtWjMok2uxVJf05qY64A r9mQDK/M9XfrorIwwyp8HvKmMFrxvi8sGtMZGa+oRWgkN+ioj2Fhyd9HybOmYJlkYXIR YcSVPil+CB/mTClXcz24IfficlrTCKPss4p99T8Ksq8NVOvmJADKnryoTff8mR6bfHjx PLXOc9XniayHc4/soGGlZ24RqXyxcaDbiG4lxaHYf5Q3TQGuYqJTRqEI5OaZSjq+lfx8 P2L+x2F93dgr9E36REBfA8zE3qpiw+lTCLmthzzpi7gGD+TxtdEQ9a6ulisTj3a80DrJ zA== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3bx4fx0rf2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 26 Oct 2021 07:57:26 -0500 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.7; Tue, 26 Oct 2021 13:57:25 +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; Tue, 26 Oct 2021 13:57:25 +0100 Received: from AUSNPC0LSNW1-debian.cirrus.com (AUSNPC0LSNW1.ad.cirrus.com [198.61.65.32]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 665CE11DA; Tue, 26 Oct 2021 12:57:24 +0000 (UTC) From: Richard Fitzgerald To: Subject: [PATCH 0/2] ASoC: cs42l42: Fixes to power-down Date: Tue, 26 Oct 2021 13:57:20 +0100 Message-ID: <20211026125722.10220-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: JcWvijM98kzowk_a4mDt8MYTb7Jb1p50 X-Proofpoint-ORIG-GUID: JcWvijM98kzowk_a4mDt8MYTb7Jb1p50 X-Proofpoint-Spam-Reason: safe Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, Richard Fitzgerald , linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Driver probe and remove were inconsistent in what they did to power-down and neither did all steps. In addition to that, neither function prevented the interrupt handler from running during and after power-down. Richard Fitzgerald (2): ASoC: cs42l42: Reset and power-down on remove() and failed probe() ASoC: cs42l42: free_irq() before powering-down on probe() fail sound/soc/codecs/cs42l42.c | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) -- 2.11.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 615C1C433F5 for ; Tue, 26 Oct 2021 12:57:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E4FD60C49 for ; Tue, 26 Oct 2021 12:57:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235988AbhJZM75 (ORCPT ); Tue, 26 Oct 2021 08:59:57 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:10678 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbhJZM7z (ORCPT ); Tue, 26 Oct 2021 08:59:55 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19Q8ssha024219; Tue, 26 Oct 2021 07:57:26 -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=xUQK4rx84DDhMKa29vtKDzqYEvWyNPAtmVXrRmpJ0v8=; b=pVEv880FtofQKBb7Bqibuo+X6YIahUjMX6rfijnZOk6uhaOTqtWjMok2uxVJf05qY64A r9mQDK/M9XfrorIwwyp8HvKmMFrxvi8sGtMZGa+oRWgkN+ioj2Fhyd9HybOmYJlkYXIR YcSVPil+CB/mTClXcz24IfficlrTCKPss4p99T8Ksq8NVOvmJADKnryoTff8mR6bfHjx PLXOc9XniayHc4/soGGlZ24RqXyxcaDbiG4lxaHYf5Q3TQGuYqJTRqEI5OaZSjq+lfx8 P2L+x2F93dgr9E36REBfA8zE3qpiw+lTCLmthzzpi7gGD+TxtdEQ9a6ulisTj3a80DrJ zA== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3bx4fx0rf2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 26 Oct 2021 07:57:26 -0500 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.7; Tue, 26 Oct 2021 13:57:25 +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; Tue, 26 Oct 2021 13:57:25 +0100 Received: from AUSNPC0LSNW1-debian.cirrus.com (AUSNPC0LSNW1.ad.cirrus.com [198.61.65.32]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 665CE11DA; Tue, 26 Oct 2021 12:57:24 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Richard Fitzgerald Subject: [PATCH 0/2] ASoC: cs42l42: Fixes to power-down Date: Tue, 26 Oct 2021 13:57:20 +0100 Message-ID: <20211026125722.10220-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: JcWvijM98kzowk_a4mDt8MYTb7Jb1p50 X-Proofpoint-ORIG-GUID: JcWvijM98kzowk_a4mDt8MYTb7Jb1p50 X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Driver probe and remove were inconsistent in what they did to power-down and neither did all steps. In addition to that, neither function prevented the interrupt handler from running during and after power-down. Richard Fitzgerald (2): ASoC: cs42l42: Reset and power-down on remove() and failed probe() ASoC: cs42l42: free_irq() before powering-down on probe() fail sound/soc/codecs/cs42l42.c | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) -- 2.11.0