Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1543971rwb; Thu, 10 Nov 2022 18:34:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM5aVmAPfjfkdQBfVRJL/PXqN+1K1WgKHKS1zqJspI0a8f19Ef4GPbOldRwojRVYQTk41kce X-Received: by 2002:a63:557:0:b0:470:1186:de85 with SMTP id 84-20020a630557000000b004701186de85mr3988196pgf.609.1668134088203; Thu, 10 Nov 2022 18:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668134088; cv=none; d=google.com; s=arc-20160816; b=lsXZ43AEPGrEPKNg16lUFsEnLGntWTYYfTg8lM3wdkqRWzDXCls68CTheg11w+u+LC VKZ6xmxd38Mrw2xEXeuZd8wXqN7Pe6/dsxYmIPhXQ/GaNwj/z8qgFOKn5w5Gj7tiD1bM VORbhKIRn46FRU8BodcgIk+Qz1KPP0dBx3/tgWf6O3GqFDMqFEVVQQXPNl2k9c78eW16 h+LT8T/4yY4IPoPV9IoK4AUgY633S4KPZX1Ix0BZZIVL3hKu8AcwgO9+nRMp7PhiSWPZ DsdhfdWkXLzXac5Iu4459ckZvQFSy64aR7ft5mhRzsddgFwZn3+TMgFItFypB9xrS70B 3Kzw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rEiKholsl17S03IVuNZd+DsAwdOqDqDV+3lSCo3KyG4=; b=nSOoPnEDWrOikBalOoF+37fEgFDM4t/UpxXgwGwVVRTudDRYVq+ij7Rj+wIZg+n+sf fHvfveZVn95xzPe4RjbKqAHaybo9CndWOM72FRYjCEK2yCeLQXT1c/WwDPNpmDl+BVa6 9LmTWqU1DK3rWdFjyXbPlgkxY+nKc3t8xkgfZR9/0kAOgPtOoB0RLX2jsPciqmLdUIAG N7+xuaeXImT4s0zZYMuxo5r62hEvmd7zLl0qf16U2Lgf3w+K20yQxo2ERdB42oLvLVOb yiRhLmUqy95FpHGJw9zHmzNWeQpFMpRpJF2rk0e2cm0m5YsCOdm7jYKM32qdN6spJuxq CkCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kf6nWZSr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v70-20020a638949000000b004637c92d7ecsi964553pgd.129.2022.11.10.18.34.36; Thu, 10 Nov 2022 18:34:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kf6nWZSr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231955AbiKKCOt (ORCPT + 92 others); Thu, 10 Nov 2022 21:14:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbiKKCOr (ORCPT ); Thu, 10 Nov 2022 21:14:47 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 515E81057C for ; Thu, 10 Nov 2022 18:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668132886; x=1699668886; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aszcFf1expwwBBUpdvSSxdjfZppq0RpVWeHal7GmSks=; b=kf6nWZSrATcmSecIdeQqyy8Koza9bZc1JgTeLfnQ60dP/5iPsEPLjOz4 Z4iXJp6LI6l9N0ikhx+TRfhfpVvVOe2dBG5/6YMtljL6upUZJfoPG7dhc xfAkq9VOJyWSP+gPmqa1UacCx2BG20vhbZeYs8YEWkXe09+VMkQu+YZgZ 7QwbinIHUweqcXmALFaC69BRqOvLRvB2ykOCdUMOQ8FFveasIe6JDA1aB H/+JijV9P74a7QSYpyXjAecVJL5/rRdRzCdyS4QOHHYwK3JH4+JnA4RCZ MItV79ZJz2JH+00Szqx6WqpC7dKfB3RAnsNVAJKw2CqgQaHWjCMhJKSfh A==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="299007575" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="299007575" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 18:14:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="615335547" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="615335547" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 18:14:44 -0800 From: Bard Liao To: alsa-devel@alsa-project.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 1/2] soundwire: remove is_sdca boolean property Date: Fri, 11 Nov 2022 10:16:32 +0800 Message-Id: <20221111021633.39908-2-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221111021633.39908-1-yung-chuan.liao@linux.intel.com> References: <20221111021633.39908-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Louis Bossart The Device_ID registers already tell us if a device supports the SDCA specification or not, in hindsight we never needed a property when the information is reported by both hardware and ACPI. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Péter Ujfalusi Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 4 ++-- include/linux/soundwire/sdw.h | 2 -- sound/soc/codecs/rt1316-sdw.c | 1 - sound/soc/codecs/rt711-sdca-sdw.c | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index 76515c33e639..c23275b443ac 100644 --- a/drivers/soundwire/bus.c +++ b/drivers/soundwire/bus.c @@ -1587,7 +1587,7 @@ static int sdw_handle_slave_alerts(struct sdw_slave *slave) goto io_err; } - if (slave->prop.is_sdca) { + if (slave->id.class_id) { ret = sdw_read_no_pm(slave, SDW_DP0_INT); if (ret < 0) { dev_err(&slave->dev, @@ -1724,7 +1724,7 @@ static int sdw_handle_slave_alerts(struct sdw_slave *slave) goto io_err; } - if (slave->prop.is_sdca) { + if (slave->id.class_id) { ret = sdw_read_no_pm(slave, SDW_DP0_INT); if (ret < 0) { dev_err(&slave->dev, diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 9e4537f409c2..8fb458931772 100644 --- a/include/linux/soundwire/sdw.h +++ b/include/linux/soundwire/sdw.h @@ -365,7 +365,6 @@ struct sdw_dpn_prop { * @sink_dpn_prop: Sink Data Port N properties * @scp_int1_mask: SCP_INT1_MASK desired settings * @quirks: bitmask identifying deltas from the MIPI specification - * @is_sdca: the Slave supports the SDCA specification */ struct sdw_slave_prop { u32 mipi_revision; @@ -389,7 +388,6 @@ struct sdw_slave_prop { struct sdw_dpn_prop *sink_dpn_prop; u8 scp_int1_mask; u32 quirks; - bool is_sdca; }; #define SDW_SLAVE_QUIRKS_INVALID_INITIAL_PARITY BIT(0) diff --git a/sound/soc/codecs/rt1316-sdw.c b/sound/soc/codecs/rt1316-sdw.c index ed0a11436362..8b27401237f7 100644 --- a/sound/soc/codecs/rt1316-sdw.c +++ b/sound/soc/codecs/rt1316-sdw.c @@ -203,7 +203,6 @@ static int rt1316_read_prop(struct sdw_slave *slave) prop->scp_int1_mask = SDW_SCP_INT1_BUS_CLASH | SDW_SCP_INT1_PARITY; prop->quirks = SDW_SLAVE_QUIRKS_INVALID_INITIAL_PARITY; - prop->is_sdca = true; prop->paging_support = true; diff --git a/sound/soc/codecs/rt711-sdca-sdw.c b/sound/soc/codecs/rt711-sdca-sdw.c index 4120842fe699..6ca8795eed68 100644 --- a/sound/soc/codecs/rt711-sdca-sdw.c +++ b/sound/soc/codecs/rt711-sdca-sdw.c @@ -186,7 +186,6 @@ static int rt711_sdca_read_prop(struct sdw_slave *slave) prop->scp_int1_mask = SDW_SCP_INT1_BUS_CLASH | SDW_SCP_INT1_PARITY; prop->quirks = SDW_SLAVE_QUIRKS_INVALID_INITIAL_PARITY; - prop->is_sdca = true; prop->paging_support = true; -- 2.25.1