Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp21276pxv; Tue, 13 Jul 2021 20:24:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEz1ZT5lHjEzsdq31nKTNAxR2RRO6Q3JaIuwnimVupyCfIlmUj9JXdODNrDPrVtLEJ0wYC X-Received: by 2002:a05:6602:25da:: with SMTP id d26mr5646140iop.106.1626233083522; Tue, 13 Jul 2021 20:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626233083; cv=none; d=google.com; s=arc-20160816; b=ZFNmMT7s75neZ+6S3XuHbRnnC6pcBSx09XH52jjlUsLuJDEGGslePFw1H5QuHdNVwb PbCF78fPdh219ActUBsvQ8yZIx1lSI2Dl8AC3qm3MCY6DoxnjaYm+eklWQ2P/XHUpYiz uFhbKRLsIaJtE744hTvZV/jiZ1Mr0z4PuSvo7Vpzl1U/BF7u9lI6VbNrT5skNhix7X1l hUixlS5f1q6dgBNh1us7B5iYUVBIiQVLP3PK5jdZqkB2X5WcWng0j6u4WHahk3Ijv+c+ Wi1KH9yZY+AzYyBn7jxHieQr0+BShhvCFqKYlICMit55eRba9aMjRxRt0v6LW7ooiEia kE2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=M0HNWUEpRb1zqRo87topCYIcZ9t2sjXarbdeetp4EoA=; b=W4sunBKEpqUrcKFiOgN1tnetkCGk9lT2UvEPvcoK0iRocLAKYIGjcn7x6cXVTrqPJq upbCRXd8SFYkUnmX6IcZK+p9PsnfdrRyysCa61952TeUtDI/oSR934YF6pbph3ER146a tmC7EdVJPKeBts2kaA4zb+y40Ki5v09JXPE/dPQQkvIDuYTIHl6BXiZnnLMBR90t3QT5 6jKlVbZCsT8F7dnkWgaPeg78qNysNhRuFflyZFBCIhO4kN7lE5BxVFVSXzKv10s20vsl iCWJSObLAXSAsNowviQceL78I34iQrNrloulSkUZQpj++6nbH9RuXy7brT4AprfTugss CLcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si905477ilm.77.2021.07.13.20.24.31; Tue, 13 Jul 2021 20:24:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237848AbhGNDZi (ORCPT + 99 others); Tue, 13 Jul 2021 23:25:38 -0400 Received: from mga05.intel.com ([192.55.52.43]:61186 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237829AbhGNDZg (ORCPT ); Tue, 13 Jul 2021 23:25:36 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10044"; a="295924109" X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="295924109" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 20:22:45 -0700 X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="459818196" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 20:22:42 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, bard.liao@intel.com Subject: [PATCH 08/10] soundwire: stream: don't program mockup device ports Date: Wed, 14 Jul 2021 11:22:07 +0800 Message-Id: <20210714032209.11284-9-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210714032209.11284-1-yung-chuan.liao@linux.intel.com> References: <20210714032209.11284-1-yung-chuan.liao@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mockup devices don't take part in command/control operations and their virtual ports shall not be programmed. Signed-off-by: Bard Liao Reviewed-by: Rander Wang --- drivers/soundwire/stream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/stream.c b/drivers/soundwire/stream.c index d84aaf115c13..5d4f6b308ef7 100644 --- a/drivers/soundwire/stream.c +++ b/drivers/soundwire/stream.c @@ -133,6 +133,9 @@ static int sdw_program_slave_port_params(struct sdw_bus *bus, int ret; u8 wbuf; + if (s_rt->slave->is_mockup_device) + return 0; + dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, s_rt->direction, t_params->port_num); -- 2.17.1