Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2229787rwn; Fri, 16 Sep 2022 07:29:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fouMg/s7fV4Azl+RJFeDmApvy5lqPDmpl5k6IQ7hGwzSfYqf2cvhrkHEcNntSIpIm2gfN X-Received: by 2002:a17:907:2cd8:b0:776:64a8:1adf with SMTP id hg24-20020a1709072cd800b0077664a81adfmr3830586ejc.151.1663338546104; Fri, 16 Sep 2022 07:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663338546; cv=none; d=google.com; s=arc-20160816; b=TtvMOMaeHR8UUr/c3T27BjR9dkHMwJRbjyNeCsEufu+/Au7dY60w9osgIgvkFdYAB1 L9MapusAq1asz6rejpCtm22tchxy4lrTN/MSLmKA53wJJixK8t1FfqBDd8wVtTdoyche cKBPDfBb28mPk3hrlBVzYsXak/oWPy8qoqfvlZjfEHN6CEsDED1YnXPkh8ggmnsidKuE iDF26VqHtAIbFxFhBZiexNYXD0GW+V6C8ZHesefH0+TkNzUpNIk8z5Sd7Lj69+6+hmRX hYrzlFC+EwQnVL2JwD/n+qGoNNapf+Pg9GMP84yHEf3gzlKA/JK2v9y8pGa9A5ENfKzQ b68Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=f9/OUxsqFEoK+ALxSyq2jM2MVUd0223bJWn3HBg41kE=; b=lIQt0BfB5oNjYVD5dPRm0jy//qGbfl7itW3TLUEnxKyzdQZQRi+/2jBA+AC9FLx/Jl YONqqS32CdXiHz0dLj5KvLb0lyzQGzXi5kVOvoVZ6sczlZZDKgeAdIVh7nE+e4NVLCls sBKPHF56O2aWxs+zsOP0jxnv3Ca0MiihJvJ7xPR4va4+56Q6DVZ/4k7amMN6inSMgcRH 8bfRtOUkATLQhmH06LbDUrrsC9qc9qx8KYRE86Vc+2lwaPv2DF3iQqLif8x5Rxl+W9Ob FRg+UaDKKZ662dwqyUW56LUQUILzlknxNZKuNIDmJBZ7N6EpfBOpcyOSi0Ftkhv8iMIH jLZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U7Z9WWVm; 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 t25-20020aa7db19000000b0044e6e3302cesi2111895eds.469.2022.09.16.07.28.40; Fri, 16 Sep 2022 07:29:06 -0700 (PDT) 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=U7Z9WWVm; 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 S231908AbiIPOYz (ORCPT + 99 others); Fri, 16 Sep 2022 10:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232095AbiIPOYq (ORCPT ); Fri, 16 Sep 2022 10:24:46 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42BD82CDC8; Fri, 16 Sep 2022 07:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663338283; x=1694874283; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=xjBzwUqb8jHwtsdnaFdl5y3s0GzS9ZhCO/JEXoWOV0w=; b=U7Z9WWVmOsRnw+QpULUinJWEtvKDshbfoteQpe8yknGlM/uQBYoRa3b2 /EaLqjVYVN0NXanYxuurLXnANSx2xrB52d1YM1Dvnm6DDdE4btKchaPYr eFvezVGWVNZIlvJuiUFM2cOUF58U/Yh3r+OZOC81+HuaOqe5bcvDuZH6i 2w5DZSYn79DK7egWs6vZ6DsY6EhIksL+08xxCddic2gSrW+m+3UbUYTWr 6Mhdhursfpei2y8o+Q+COHHJmNM2ma1WKOi8gxINME3k3B03LYw3xt76O GmeS+SrnvRAr/PiFYp2yVpY7DYmDzQg64PEDYgX+MJKRtQWc7vrkLFEI1 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10472"; a="298994157" X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="298994157" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2022 07:24:36 -0700 X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="650889151" Received: from kchan21-mobl1.ger.corp.intel.com (HELO [10.252.61.56]) ([10.252.61.56]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2022 07:24:33 -0700 Message-ID: <78c9421e-d66a-3477-9dff-f819e1ac9414@linux.intel.com> Date: Fri, 16 Sep 2022 16:22:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/2] soundwire: qcom: do not send status of device 0 during alert Content-Language: en-US To: Srinivas Kandagatla , vkoul@kernel.org Cc: alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, sanyog.r.kale@intel.com, yung-chuan.liao@linux.intel.com, quic_srivasam@quicinc.com References: <20220916135352.19114-1-srinivas.kandagatla@linaro.org> <20220916135352.19114-2-srinivas.kandagatla@linaro.org> From: Pierre-Louis Bossart In-Reply-To: <20220916135352.19114-2-srinivas.kandagatla@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, 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 On 9/16/22 15:53, Srinivas Kandagatla wrote: > Device0 can not be in alter status. And for consistency reasons do not typo: alert > send status of device0 to core. > > Signed-off-by: Srinivas Kandagatla Reviewed-by: Pierre-Louis Bossart > --- > drivers/soundwire/qcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c > index d3ce580cdeaf..a04a8863b228 100644 > --- a/drivers/soundwire/qcom.c > +++ b/drivers/soundwire/qcom.c > @@ -428,7 +428,7 @@ static int qcom_swrm_get_alert_slave_dev_num(struct qcom_swrm_ctrl *ctrl) > > ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &val); > > - for (dev_num = 0; dev_num <= SDW_MAX_DEVICES; dev_num++) { > + for (dev_num = 1; dev_num <= SDW_MAX_DEVICES; dev_num++) { > status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ)); > > if ((status & SWRM_MCP_SLV_STATUS_MASK) == SDW_SLAVE_ALERT) {