Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1449966rdb; Mon, 2 Oct 2023 09:47:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEObZYt8kZScN72H7W5gZ8XaVnjtuQ6vq1B3PNLKi/vObqChjlk8vgSWVIhzcezg7896RTf X-Received: by 2002:a05:6a20:4323:b0:159:fe1d:2f09 with SMTP id h35-20020a056a20432300b00159fe1d2f09mr14416287pzk.6.1696265259451; Mon, 02 Oct 2023 09:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696265259; cv=none; d=google.com; s=arc-20160816; b=wOjaXBUoEYEcwX0rr8MzTig0qjyhw2j0GXsx3gYIRhgKVZUSmaomFWd9HcR4xUPLbc kh0bmN+5+zPimUGV9TCqZLf7KRzL8EdXEyD0qEt6X8vEg6NIXn8c8Je3Z5WLw53AP6CS crCFA03wBM3NsJt+XqEz+qzd0l6V3rpnjQoHKMDjXTN1wkxbaREsr8ap+k/eA3Pked7O v9Lhwkv70SE5LwDllz+vSj724wZzgVty38zkMEdNApLdCInffULHsy5wnR5LjxOlkGvC 4bmPX86bwzltPg5N9K1oZ+cuZNC4OOtmGnllYviS5Dp1nGqmf0mp69KtKDCFQspBWNHN At0g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Wj4F+bHn9pzMOzyfsWKN+qDwvvtBojn1C4VrichB830=; fh=YlZAI+QB5vPrPOW1hhgXPoM9r081YKQZTdbJVQp2bI8=; b=pLVbh5nRoWcJD1MmxTuiMdSbRKQPOXmTi7/OvWZPOssnaFK/SCHCSrKPCEPHgN9sHu G30721XjdkifRVZLXzoAzQEnJyx0MI8422v953iF/blWUewAsKYqwhlpn8QITsJgIwNV cmxyyK5yDyiq69z6NlZbZcKAHXSKmtDFzZXGM8r4WYcIfN4edikv2p2N4ynvgba1APeR ai7tCM3Unzma3HjIau2MqmF69ZYBQLarF7H8A0LFNul5XTGN87huR4+a674SBOBRqrnJ i36Gl/OP2o80vOFui6Xr7E4kv2PpgrpFXWyCFrd5lqXY/nVFwJU6ZsiFEgKIgUwFE82M Fzzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Z+4B7QxW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f1-20020a170902f38100b001c752a540cdsi5600727ple.145.2023.10.02.09.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 09:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Z+4B7QxW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 229988084636; Mon, 2 Oct 2023 05:51:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236158AbjJBMv2 (ORCPT + 99 others); Mon, 2 Oct 2023 08:51:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236472AbjJBMv0 (ORCPT ); Mon, 2 Oct 2023 08:51:26 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D17A6; Mon, 2 Oct 2023 05:51:23 -0700 (PDT) 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 3926VdoF031278; Mon, 2 Oct 2023 07:51:02 -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=W j4F+bHn9pzMOzyfsWKN+qDwvvtBojn1C4VrichB830=; b=Z+4B7QxW3O+5r0D20 RXAuYgp7xfEdj6x0LSOwdKWBdBdi58oBiXsq5DEp3yKdYNv9N0M494I/UyJjtlKp 5aFefbLHjFF+2x4yG5gngZCN895MgEeYY2QF9GGXlwCE+uD4tceDNvd/Of7cM4Mm WBi6u97mBXpDqG9AG86w2nB1NWm+ZXi73vlRId69I3SnkhySK9MxxvqandBXp8Y3 x9J640ZE9pEW2nnR5P6V6cb69aDYSdzhDFrrIIWLVsOQIqDw1f/qHkIhJK/MFfs+ n/zR0RMaTUw/S/0WH0p3xMvRjg25wMgBBnnIpCNhdrESg+z4JUp87vnKK+RVdpPg vllDw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3teh2xtv0w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Oct 2023 07:51:02 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) 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; Mon, 2 Oct 2023 13:51:00 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Mon, 2 Oct 2023 13:51:00 +0100 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.13]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id DC63FB2F; Mon, 2 Oct 2023 12:50:59 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Richard Fitzgerald Subject: [PATCH 6.5] ASoC: cs35l56: Call pm_runtime_dont_use_autosuspend() Date: Mon, 2 Oct 2023 13:50:59 +0100 Message-ID: <20231002125059.4091982-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: xm7Z10fTc1btYr-LSqioz1irOK1SGnBg X-Proofpoint-ORIG-GUID: xm7Z10fTc1btYr-LSqioz1irOK1SGnBg X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 05:51:44 -0700 (PDT) commit ec03804552e9a723569e14d2512f36a8e70dc640 upstream Driver remove() must call pm_runtime_dont_use_autosuspend(). Drivers that call pm_runtime_use_autosuspend() must disable it in driver remove(). Unfortunately until recently this was only mentioned in 1 line in a 900+ line document so most people hadn't noticed this. It has only recently been added to the kerneldoc of pm_runtime_use_autosuspend(). Backport note: This is the same change as the upstream commit but the cs35l56->base.dev argument in the upstream code is cs35l56->dev in older releases. Signed-off-by: Richard Fitzgerald Link: https://lore.kernel.org/r/20230908101716.2658582-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown --- Please apply to 6.5. --- sound/soc/codecs/cs35l56.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c index fd06b9f9d496..7e241908b5f1 100644 --- a/sound/soc/codecs/cs35l56.c +++ b/sound/soc/codecs/cs35l56.c @@ -1594,6 +1594,7 @@ void cs35l56_remove(struct cs35l56_private *cs35l56) flush_workqueue(cs35l56->dsp_wq); destroy_workqueue(cs35l56->dsp_wq); + pm_runtime_dont_use_autosuspend(cs35l56->dev); pm_runtime_suspend(cs35l56->dev); pm_runtime_disable(cs35l56->dev); -- 2.30.2