Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp359518lqp; Fri, 12 Apr 2024 23:43:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7ZYaE+m8ORirrUqNxASc2gD6g/0cveHUK37Tod3ZxSIDpl3DhK1eg9LnBwuBzYAV2lnJ8tc0B3oesQkW9rAuk4sPbp08jH8JqQIrOFg== X-Google-Smtp-Source: AGHT+IEkjP8AeLTvEy9lTC6CZxh8qO6K8360KFLHpnHrLC0BmmXO++SumAMFBSFwcgO7CxI5sRsB X-Received: by 2002:a05:6870:a40c:b0:22e:dec0:f652 with SMTP id m12-20020a056870a40c00b0022edec0f652mr5116189oal.1.1712990580340; Fri, 12 Apr 2024 23:43:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712990580; cv=pass; d=google.com; s=arc-20160816; b=vNWxpINSm8bk8NwsmJZg3RSY7DnWERhXG8B3JeLRHHTrJgHRqiONxZPaZel5stCAZj hXMPN0W4Bal364sxeuX6Z65l0uZ8YyeOAjuY6/HpsnimrVIoZWyDMfotIl1AYPsNazPI XlOj+keNaY4cGGJjbhjfX34SrQraikNqPcToPsycyzuKvpsCh9g2XEs2aEkxnXWpxToA mJeNqqcWkuihdKYVkm70snm1PZH9pZmQSh/mtGiBUFHdJCjelBOT0Ev/2wLY/lnCyy7O zJAWXkspugozAMB7OU+QB1VF33uAYMPEvnchZmSwqy4WwRCFoMe/u/cDieKdKL8g1F9z xHGA== 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=YqqeOyiGrV8oFKHRZ+mFzcuczR3R+aCyjCSPhTMm31s=; fh=SI+tl/eQ3fIEFQUzdsoyTawN3A+kutPX2m/69FX65K0=; b=GmygwnmPqChjFhjBODEf3RnCyaqd6Sw/LGW4cNmDp6eXFJKOL9VhM3RvnlFeBxvvOP rV3fVGAExpOMd7moZtLGRwJlBJC9I0ZimorlNPpPbCwOa67L5I3HvkfFIZ02g2Cganz6 gT+/SoHq+pFrj0EvPTfRPT3hS2gQnzcBtoorGDVDfajuIvsIIaAb6fayapTqE4ilshLg dYiETdbvlfv3MsCpkqFfWegz+oCEq07Kxp5Shre4hSSKbDL0/FpiAk30p1Nj5S/8wbQG vWPwbZ7Nx3z4ycvVXUPj2Qu+cVonU2RFRdlcc5a6GPT9lRX4h/859V3IKbPJ8rjt8bMO MBrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=QQOM8PXq; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-143599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n26-20020aa78a5a000000b006ea7e52efe8si4574720pfa.384.2024.04.12.23.43.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 23:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=key1 header.b=QQOM8PXq; arc=pass (i=1 spf=pass spfdomain=postmarketos.org dkim=pass dkdomain=postmarketos.org dmarc=pass fromdomain=postmarketos.org); spf=pass (google.com: domain of linux-kernel+bounces-143599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=postmarketos.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 06B0928432F for ; Sat, 13 Apr 2024 06:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D78833C5; Sat, 13 Apr 2024 06:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="QQOM8PXq" Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 DB94D208BC for ; Sat, 13 Apr 2024 06:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712990569; cv=none; b=QvLF1uL9bGbUn2fWnnuvuWFh1PXiCwVzpiVhG2K4pWbU/bxgUXGD6GYg5xMKtFA+nu/MYTVHwRLW1GbsUJDqnJP6cB3W8wpxQfBLfL1qMzH0wO47+dIXuz9O/TVN/sDrGKTvwqvaEZfU3T1DRJRX4DDpKukjIm2ZKJoletvdqEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712990569; c=relaxed/simple; bh=1I+k1C6YL3NgWZs2rJjCaajJuVIulYenNNvjUcgaP4E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aZkdAY9nX2Gz/yfKZUs1WI8tfUB+o//cZMJig9G0zW5lPUp4bznCWvvrjdFP4yMsfIRWVHBC5Sw6fm7YLK9+0Ios3e39SUK66aJu1zqQRKBSmQLh5wiKo1wu/6eCU9cGJ3a1BoUpt/s0tQfizBfOpkIu5kKTY/cl6X4/mf2Z1co= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=QQOM8PXq; arc=none smtp.client-ip=95.215.58.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1712990566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YqqeOyiGrV8oFKHRZ+mFzcuczR3R+aCyjCSPhTMm31s=; b=QQOM8PXqIHLaSwjDv6OAKfVEAI6G7796mSoVOHawE34M91pd0UEemuZw7RI9/ehLBwhsH8 OqdeeMRgknPK9UFIdTwNMz3931PxePT776hH+BlTJ99lwrULI2S88KWjFWqMTfgAnUPshc Nw4qlFLUJFkyFzk3elPzvCLR6xKMhtJABRvPtG/q5n0A161z65QCxTfhhwQOhoQLnwH0Gd UO4wcRqRDUb9PBQe3uotTiBeeRWkUWo2eJ/ZnZ0WopjeFuKhnu9eDLJSntbUckfHNCUBRb YojEx1qicRrRikSbfeERilShZkrtR+rg3ylIqI1BwvY3qc9bFapk1CUT5D2BYA== From: Anton Bambura To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , Srinivas Kandagatla Cc: linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/1] soundwire: qcom: disable stop clock on 1.3.0 and below Date: Sat, 13 Apr 2024 09:42:24 +0300 Message-ID: <20240413064225.39643-2-jenneron@postmarketos.org> In-Reply-To: <20240413064225.39643-1-jenneron@postmarketos.org> References: <20240413064225.39643-1-jenneron@postmarketos.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This patch returns back the behavior of disabling stop clock on soundwire 1.3.0 and below which seems to have been altered by accident which results in broken audio on sdm845 + wcd9340. For example, on AYN Odin and Lenovo Yoga C630 devices. Fixes: 4830bfa2c812 ("soundwire: qcom: set clk stop need reset flag at runtime") Signed-off-by: Anton Bambura --- drivers/soundwire/qcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index a1e2d6c98186..bc03484a28e8 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -628,6 +628,9 @@ static int qcom_swrm_enumerate(struct sdw_bus *bus) } } + if (ctrl->version <= SWRM_VERSION_1_3_0) + ctrl->clock_stop_not_supported = true; + if (!found) { qcom_swrm_set_slave_dev_num(bus, NULL, i); sdw_slave_add(bus, &id, NULL); -- 2.43.0