Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp871499lqj; Mon, 3 Jun 2024 03:36:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVn0aoAte9etsF0T0dbEfrITecN6NcnvjcdtKkbEc63vYLStCyqql4W8Xq1YXA/x7Fj6DUIN4IkqXseROkgGwBXaAimlWLQexTAbU/CuA== X-Google-Smtp-Source: AGHT+IEiBac9EWKKtvp9pjZQwt4PUpTEUYfoQcze/SMAayCN1pH2Qr2E68mW4Qb+il45/BgHyh0R X-Received: by 2002:a17:906:d1cd:b0:a68:fe44:91f7 with SMTP id a640c23a62f3a-a68fe449282mr270570366b.31.1717410977192; Mon, 03 Jun 2024 03:36:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717410977; cv=pass; d=google.com; s=arc-20160816; b=dV0EJUvJtp5fjXDYmderUN7x2VaCFhtPmsLWfPY6AIuza7sn9wor/L6PAQpWp2ZPSD EuNZwjLAG7tWcR284+YQrfsLNh+0x4wmDlZbiulg/tWHsRYW0FRW70G5V6RQ9sqLCEfV ZHA+EndNHrODTtxJq9v2ERdEp+TP+Td6ZVYF8Ryw7DFyTYAP/+sfolF4M+MtEdPzUgcX n9O4YjtJJPq3a2C5Ef8mq55ws9vanmtHR/HXANVCUJePFa/HQVZAPZuxDrMzzTpE16He fmGFHnwXfvuGS+MZjm1LsHaEY+8B5ZT3D5IGb6YDlGzQrVQgLGxKZTPGpinmlEodPMpj RoWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qUsSAY8N7AKSenNGLa8xZV3wN1+8yO51gSj1XEWRIaQ=; fh=EelKNb4C4N/Kh+Qnxp5AWU4KZJWkttCqVVez9a39kjc=; b=fckIcE8Sr5zdnDly5Mgn60Qtr2ydhe/wVCQIwHqYV2m1w5l5+WnLoX6WZxzO40JjLn aXdxlZaArkw634Flxa0hUOkoJ5nRZEU0xqY2IkxNY1mc7vGBZHrVZA146LwXB1CyNH1M HmKFOkqqvd8K/yYUx+DKqosRsuHDLlSXhU+fPV+hJzOsi6UwSmVdqlO4RI+1yS1xgsLK SRwVjooEDBLyUWyaEj4LXCP5NUuOLekSRfaLG6qmTXXMLM97q5QTv9DmjDFHRXLHj+7F jheMxOael5r+mt484BFFnamlkNd2EOcKZx18YdiGHdGjWoYSZF7j7c8Rd3442lEUtxpl ovmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="mqp/8NIM"; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-198982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68e7b2fd1esi166144466b.927.2024.06.03.03.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:36:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="mqp/8NIM"; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-198982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E2B961F22AC8 for ; Mon, 3 Jun 2024 10:36:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07AF782D6D; Mon, 3 Jun 2024 10:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="mqp/8NIM" 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 smtp.subspace.kernel.org (Postfix) with ESMTPS id C00B783CBE; Mon, 3 Jun 2024 10:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717410949; cv=none; b=tZzJubcve9wBz22GdTBrB7pSfcycrFiW8rRkypmlNp3thCAEsivH2RkvagObacwS8R1P6yCPb9Mx9udAXvl1Zd/X67W7WNLP777PTzgSC4y5vLCqiDr3KGaK28geMtRTYtIhajYOlDZBq4QpmD2ATMIIJSujG7xvDysI1MfVI4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717410949; c=relaxed/simple; bh=e+bL2RoRUJlaWlprGpWktgCZQsKmm2hk0ARDnnJF7nM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KCvJ54VgNePK5VEuTIT7pW4eUpTvNv43sA6EXbgI/wL3OSMygR8eKzlyx7Tj75w05FubqlA0Rmm5Db7BZTBbDdbft1Zu92d/CxEWCMzAMOMMyOe1iSluiTMrXCilqCx37uJOlLym+J0g5FHyj/SE8t4izh+l52Gds5bMzYv9tlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=mqp/8NIM; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4535l7pZ018316; Mon, 3 Jun 2024 05:35:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=qUsSAY8N7AKSenNGLa8xZV3wN1+8yO51gSj1XEWRIaQ=; b= mqp/8NIMfMXUEB1p+3SScrbswFbIZikggZm7YjPUVXzfqdG1lxLMebI278cgzOhu GnWmYeFaTPCf1oTTT/Ycnmy9YVgmwp0Ni75ymInN3d1CrK3y13YiWJBlR2KVYCNJ eaZD3QQ2MGsajIfGw4JmWYPtFkKwXwO8y17TDMlHLFSSxm9frp+1u17rG15bIe7a zDEv0C2ss+nkzJcVXzV82+YQxLtFQdPY7i+StcxtFK5NDOhe0ymX7ZqUSCzAmtpv cHnAr6tIDaOe9uXY0R0onTdNy/6MDgfL5eL+k4K15KvsnV2gfyjUFOg1+PHbH/ro CsfRupQ6MtqGsy/zigLu+Q== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3yg11xscbq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jun 2024 05:35:29 -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.1544.9; Mon, 3 Jun 2024 11:35:26 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Mon, 3 Jun 2024 11:35:26 +0100 Received: from EDIN6ZZ2FY3.ad.cirrus.com (EDIN6ZZ2FY3.ad.cirrus.com [198.61.64.166]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 4FF3F82024A; Mon, 3 Jun 2024 10:35:26 +0000 (UTC) From: Simon Trimmer To: CC: , , , , , , , , , Simon Trimmer Subject: [PATCH 1/7] ALSA: hda: cs35l56: Component should be unbound before deconstruction Date: Mon, 3 Jun 2024 11:35:18 +0100 Message-ID: <20240603103524.32442-2-simont@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240603103524.32442-1-simont@opensource.cirrus.com> References: <20240603103524.32442-1-simont@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: TTkyztoDiUDSkeFZwReoU0LNOof7MjL_ X-Proofpoint-ORIG-GUID: TTkyztoDiUDSkeFZwReoU0LNOof7MjL_ X-Proofpoint-Spam-Reason: safe The interface associated with the hda_component should be deactivated before the driver is deconstructed during removal. Signed-off-by: Simon Trimmer --- sound/pci/hda/cs35l56_hda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c index 0923e2589f5f..e134ede6c5aa 100644 --- a/sound/pci/hda/cs35l56_hda.c +++ b/sound/pci/hda/cs35l56_hda.c @@ -1077,12 +1077,12 @@ void cs35l56_hda_remove(struct device *dev) { struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev); + component_del(cs35l56->base.dev, &cs35l56_hda_comp_ops); + pm_runtime_dont_use_autosuspend(cs35l56->base.dev); pm_runtime_get_sync(cs35l56->base.dev); pm_runtime_disable(cs35l56->base.dev); - component_del(cs35l56->base.dev, &cs35l56_hda_comp_ops); - cs_dsp_remove(&cs35l56->cs_dsp); kfree(cs35l56->system_name); -- 2.34.1