Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3123061lqp; Mon, 25 Mar 2024 23:00:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkccaiBbr1FJFQwC09f6Uwn0PxrlMh048Qr4AnH6y7B3pZCRpcsd28qJLc1bbcEjuawoq4fs/0AYW7StDQAUJIuSO9kVs9LMesZKxKdA== X-Google-Smtp-Source: AGHT+IEgn3Zw/8FEMtaVe6swdZMoDFqdsLVoY/Nr+x1YY+qffNZzO9ubzIXOawylZmwIA3JLvmQC X-Received: by 2002:a05:620a:298a:b0:78a:59df:274f with SMTP id r10-20020a05620a298a00b0078a59df274fmr4572678qkp.44.1711432839311; Mon, 25 Mar 2024 23:00:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711432839; cv=pass; d=google.com; s=arc-20160816; b=ramlcfs9wTe+5Mlmj+7MnTxwLpUb6PJv4Xq3UzR04vaJ+hYdtajVlsGetAA0dHlUxD e6CN+U1EYaGWVmIoaTnB9AcsP5igMDAl5QDSQ8ElMprC6vwBRczHRSCPW+GGD8RD/5hY rYZCUAcJDS7E83Kt9gDeyTZfNg30q1BXTy9wp/tmng3xpDvJ4NkL6K/rV2Hko0Fwu5YH lH5ISlcepFiopptSh0LrLebbQeW+DrPPaGvGuNZwIirQHWMvt1UPxkrbBMzAEyYsbU+U 1ZxWTTfzbcyR6b0xc+2ampbo2K9td6wlzxeDmehgw6JYi/87wVmnd+LLpKHnJKSW6iaM AzPA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=1i0pKpUl6JyY/aOCuQfa25FK8Ok2ZdjT9qKHRqFTfE8=; fh=DQfWcJ7a6lABpgAjlslbt+lALChD4jPOSQFW0XC7h54=; b=bWtSSI+y3CZFVB1y8mYThKWCoU0ZKSrwS7VA0GNiw2lw0rsT6xohn/xXyco9w+KZfz IpUzVjdadJ/jV5j+WAc6kaeDMQ6UiWh3YhLfwtPMazCeKT8jaJaEMrsT+y6S2tK31EOZ uPHk+uq//zknAHZqs6ic1lOuePmG74DEjVhZztj1oCStH8mJTzHKLhg1EwZ62oyrbXVS fM/J6wBEscJ+CxEQ+M2xFyhPVzUzMOC/gFrdaN+quhgK6fHYHnbPLaxvGSvXuhHIQgSh knjiZt1tib+gBlG2jo9EQVqBYxty49hv0iF0YEFz2l7bss9VrwxHRXiQMiIWSsx4l+nf ki6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E1Tf4vkw; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 w5-20020ae9e505000000b0078a5705c10bsi3602566qkf.34.2024.03.25.23.00.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 23:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118391-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=@intel.com header.s=Intel header.b=E1Tf4vkw; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 0AF6B1C31319 for ; Tue, 26 Mar 2024 06:00:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3E2312AAE0; Tue, 26 Mar 2024 06:00:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E1Tf4vkw" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 460CC84D0D; Tue, 26 Mar 2024 06:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711432832; cv=none; b=Cmrzr5YFjJAaqS4ur+bLSf6sZhpys2U+R3eqPIelfXEvqKiSaELrI4pwWVG5f5Zu31zNVVEw4SjMQJciOVGcLnsM5j03TwzwmR+buMcW6QhO4ZpDJksac7YFtMozHwQ1RUlQ0ifBbz8hlgPWyJX8bMmPZkjvCuIecjB6DDLqm4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711432832; c=relaxed/simple; bh=fzNeaLHkLg0VusIvgEvDrmnEwarZkEwpZ+t9NlQBe78=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=NIfRQu3ZYjV15xnA7xmcRSUqV/eGJfTYCnfyei/U9Z6pMfKVNLcKEJDLSxDDgI2ljT49DzAzlaUotIQQDgmQpvMxGFY3L0zzq0w5wi2d/Kv7hNNUL1FxkRHL/lHrFu6TWLOq2jAHPyk0XHbNjpwnyoY0jW1Yzap54e3Q/9HfAqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=E1Tf4vkw; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711432830; x=1742968830; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fzNeaLHkLg0VusIvgEvDrmnEwarZkEwpZ+t9NlQBe78=; b=E1Tf4vkwDsF4H+kAruLCOiCtS6eutFzaS8HlmSLcIKPZvqPEWOW++RDs xVgyFyKwr6yoTAzLXhuEoUZCjGfiXMrsYwypvJkJ+K5AxAs++l+EOQONP v9+MiMHpOw9sUK7Ccwb9YuCDLzMFzUoJ1427iEL+AyLJ2Zw8p9PFYFW/9 Q5Jxeye1Xby9p6bk9a5ley8TUU7n439W7MIJBwUb372mJ3racs+ZsjUMZ T7QpdyiUxytmPgL10K/wTh09Tt5FqUGEjhZZHAgWC5XZ4qwcmEc1Ip6wY 1ZX40/Ufpuxq4NFutN6lH1mXixMzgrh92cFX/BDWLhp/h9CJX21XBCNv3 w==; X-IronPort-AV: E=McAfee;i="6600,9927,11024"; a="6327507" X-IronPort-AV: E=Sophos;i="6.07,155,1708416000"; d="scan'208";a="6327507" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 23:00:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,155,1708416000"; d="scan'208";a="16513653" Received: from yungchua-ws.ostc.intel.com (HELO yungchua-ws.intel.com) ([10.54.69.90]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 23:00:29 -0700 From: Bard Liao To: linux-sound@vger.kernel.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH] soundwire: bus: don't clear SDCA_CASCADE bit Date: Tue, 26 Mar 2024 06:00:21 +0000 Message-Id: <20240326060021.973501-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Pierre-Louis Bossart The SDCA_CASCADE bit is a SoundWire 1.2 addition. It is technically in the DP0_INT register, but SDCA interrupts shall not be handled as part of the DP0 interrupt processing. The existing code has clear comments that we don't want to touch the SDCA_CASCADE bit, but it's actually cleared due to faulty logic dating from SoundWire 1.0 In theory clearing this bit should have no effect: a cascade bit remains set while all ORed status are set, but better safe than sorry. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Chao Song Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index f3fec15c3112..05b2db00d9cd 100644 --- a/drivers/soundwire/bus.c +++ b/drivers/soundwire/bus.c @@ -1474,7 +1474,7 @@ static int sdw_handle_dp0_interrupt(struct sdw_slave *slave, u8 *slave_status) } do { - clear = status & ~SDW_DP0_INTERRUPTS; + clear = status & ~(SDW_DP0_INTERRUPTS | SDW_DP0_SDCA_CASCADE); if (status & SDW_DP0_INT_TEST_FAIL) { dev_err(&slave->dev, "Test fail for port 0\n"); -- 2.34.1