Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp871563lqj; Mon, 3 Jun 2024 03:36:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIF66MH+3YuoO/2/2HS/NXQRBXt7RYFomChuwN2NGYm24nG1PKJOg7gQylyQQvwo37P8MfkYxH3r4tutZtj4NMPp/7ImeGxL/sobw23Q== X-Google-Smtp-Source: AGHT+IEAi4+k516t4jXtIt50kC8o8NKTBbDKrAFJrWT9ZkFXGppx+5VbmU+9yCEiWXsVJFmvXftx X-Received: by 2002:a05:6214:5886:b0:6ad:6447:a23f with SMTP id 6a1803df08f44-6aecd6bc412mr89684306d6.30.1717410987693; Mon, 03 Jun 2024 03:36:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717410987; cv=pass; d=google.com; s=arc-20160816; b=L9YtpJ1XOZECKVEGKtfXLWPW6gQWdaFRM3dbn3lLWGHvGtr2jTFJ19sqz0j/iTcACI vOtcqV6BAbeYsCc794UWGt29GW2s6aXwMHAwiBbJZf8eWebaLwnBcpXXD81Fm1jsWm+9 zj2a/N8r9YvVMZ2Z+SuRN8eIC8Ptl2sxtgUmFhvanHS7hDzbzzPz/Rm982bL1eyeIuyF fe5iPz7UK0B4LDl1phuMO8ZEx3fc+LHfNm3DHjtV5kFO/mQeu+JXhOuLNQcEgFuS1l+k 3iScjO4gWAfn3R5ld/25ddmP3LG963SWoOBHZbSQ2P0y3Falj7qQUkheNSWbO33EIB4i EqZg== 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=/31H52Kx5dI0pIOnMzUjAMQTByFunlPMmeUhLGzbe3M=; fh=EelKNb4C4N/Kh+Qnxp5AWU4KZJWkttCqVVez9a39kjc=; b=hZh/jJTdLeicEXCgrjl6bzTWEi6tjH1L53Z/to/mji4BMZPcqjRnjl/a0c2nzEN/tc 5oG7CfPu9DN+7eQY2IcOEIYLFTeP5yuSvh/3VP3KI52zvZcQlkcqgOul8z8a/6tOPEIt U1IR9klpwwg6/8m7HJ8hQNrQFYxkwSIu9dNFGxQtRUaiWj3F+ZZaltXd+I6YNnWL9m5U 1VQ+mFSB31WdicJtORaxGWhEFK0IIeJVD59lYLgSQJaC/ZS3aKEdhtri5jtgHDEyBpFB Q/Y5QqA5qNSObfgmW4Tgq+Jksx5TFvyGN4e2XDz2Z681EoY+1ZybPXh9JS3lJ0IUIZbE 5xJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=esInwkes; 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-198984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b40222csi84158116d6.201.2024.06.03.03.36.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=esInwkes; 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-198984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198984-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B30C1C236E3 for ; Mon, 3 Jun 2024 10:36:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3A9E84D10; 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="esInwkes" 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 C007C83CBB; 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=1717410950; cv=none; b=q7NqDXlJ2bnxGnMD07DZOcGuYKg2GO7nAqBMnQrEKD0ohrxnYVzhMMVlWoytGhvW/13IBSGRPq73pHs/o4Ia8rkN5Mzkd8OqadhVw/Rr2cYOxWgdI7R2M/PU/YUilxD3XSMMw20zD3FZVMKYCi1XtNYD5UXvjmT07fBaupfgd60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717410950; c=relaxed/simple; bh=fY7MkT5JoP238inIzvp80l8R/QuTlnYxL8jXzTxaxIk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nWXbAnpjO+Bdn9sWMtDyjbzV2HzebfpmIlh+F+FwXiSBEHKloh+eL1AwxHXkwfsYFOqKIy6SGVNfKT9gkmXwmm5vRO71j2dAs/dN0BpHS30NPdQCd9AoIt5IQxonC9Gw5GLsz1KTM3N1GlUFmSuFF9MUZYdNGoMZOAwi1ZYBqn4= 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=esInwkes; 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 4535l7pa018316; Mon, 3 Jun 2024 05:35:30 -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=/31H52Kx5dI0pIOnMzUjAMQTByFunlPMmeUhLGzbe3M=; b= esInwkesGZxuY9WQXAW7bal3RcRess6/NZTC8VqIo0F+OvOWc5Phky2+XofLecqs eos08IUjLrBlnCcXaYRIbSp3ut4ZSClomMxz0wLpH/gmDIi4xbNJZh8loNuKbyea gT9FDk4716U7GOwJDp2P+ynzdMOWXmfUMG8HNuNE8r5fh63bvqSU9J7pXgGODZor zETJ8vEcHd5apv0lGm23g/q2+afrZHBJz0IRL7I8DbbGpMYN/HyvuaRT7IZHtIDu jZXx7MyY1e1Kpq/4urjd/8ut/gO2Q0/DeraQl3BEmQwMRpbkKYA73+WxSfWe9ord FTRJ1lN49oS5Z17euLj6Vw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3yg11xscbq-2 (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:27 +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:27 +0100 Received: from EDIN6ZZ2FY3.ad.cirrus.com (EDIN6ZZ2FY3.ad.cirrus.com [198.61.64.166]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id C6AB0820249; Mon, 3 Jun 2024 10:35:26 +0000 (UTC) From: Simon Trimmer To: CC: , , , , , , , , , Simon Trimmer Subject: [PATCH 2/7] ALSA: hda: cs35l41: Component should be unbound before deconstruction Date: Mon, 3 Jun 2024 11:35:19 +0100 Message-ID: <20240603103524.32442-3-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: arj-FzRXEhriQRbaUqWCkdnBZsMDL4Dg X-Proofpoint-ORIG-GUID: arj-FzRXEhriQRbaUqWCkdnBZsMDL4Dg 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/cs35l41_hda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index d54d4d60b03e..031703f010be 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -2019,6 +2019,8 @@ void cs35l41_hda_remove(struct device *dev) { struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); + component_del(cs35l41->dev, &cs35l41_hda_comp_ops); + pm_runtime_get_sync(cs35l41->dev); pm_runtime_dont_use_autosuspend(cs35l41->dev); pm_runtime_disable(cs35l41->dev); @@ -2026,8 +2028,6 @@ void cs35l41_hda_remove(struct device *dev) if (cs35l41->halo_initialized) cs35l41_remove_dsp(cs35l41); - component_del(cs35l41->dev, &cs35l41_hda_comp_ops); - acpi_dev_put(cs35l41->dacpi); pm_runtime_put_noidle(cs35l41->dev); -- 2.34.1