Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1359716rwb; Fri, 19 Aug 2022 02:10:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5rXMjKewP+f/QGmwYxir5E3/iMmYI/vdkxpQzbNuqjqXaD8izLAhsBMl+qAjeS6zxQ81Gi X-Received: by 2002:a17:903:124e:b0:172:7d49:b843 with SMTP id u14-20020a170903124e00b001727d49b843mr6541484plh.52.1660900220694; Fri, 19 Aug 2022 02:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660900220; cv=none; d=google.com; s=arc-20160816; b=ISYDtTdAi2YrQ/GgCFvljNpujnf+oU1fnsPtZTX+Uqu3E+Cdt3/eGnLpCcRbAj8nrV l+GYldNR1NtuV/HwL7+XPsIlnVa6ynWNB3N61zBuQFHjCzLigTXwPCMoEQijr0wTGp2t sNeE644ubNaBih6gJHKY+5CkVUUXYs4LcJURR6cfiUm2+Ypebfkl0SzRqeQsA8oAn6O7 B9N/Gqp+y+Xznm3ndkKQ3616lWs/7zEs+WmopQXAeAtA5shwwI8BsYUnpgV81l+vWrzt 6xCktOflZC2Bezmoa+nM0whnS5v5bZzRyPVqhxS/BSwmQAbjVGOQXZAXZfRNCStYwraC wafQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nF0tn/gqHX2oF+4Z5pCAzKHZIqOMWauw7VYS0cwAOok=; b=slBgqSKWoI3mVPwIDfCZhvjvMjTanlfEL5IrUk0NZBbhegG0NnR161RXBEDyxS0f5x kT8jrPSLZTI1kW84IDHGERzaIG/kIDUvixxTsm7M0viPeFvof2tt+LhyoRojyElKXSI6 kR3rXwAnLqTrhzFKjB4kYBecNLe1+TIj6vsOXgfuVIEMJuPhzcouEpz3rlCqifiXGevD B6AU7EqSXByBZJl4XJKvHEHtT6fThYlazimbpqjm7YW6JkD8MMI4J/xopyfTF5wuRv74 kEp2skCIrypIyRwljRd1/eGpYYUtDVFcc8aDcxaNCVT8SKqq3DgJUoyTXmGarcdE9V63 09UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="blMjc/6k"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv13-20020a17090b1b4d00b001f3395b7483si7029510pjb.183.2022.08.19.02.10.08; Fri, 19 Aug 2022 02:10:20 -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=@linaro.org header.s=google header.b="blMjc/6k"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346578AbiHSIvz (ORCPT + 99 others); Fri, 19 Aug 2022 04:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343696AbiHSIvx (ORCPT ); Fri, 19 Aug 2022 04:51:53 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05142E9AAF for ; Fri, 19 Aug 2022 01:51:52 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id t8so4113420oie.8 for ; Fri, 19 Aug 2022 01:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=nF0tn/gqHX2oF+4Z5pCAzKHZIqOMWauw7VYS0cwAOok=; b=blMjc/6ksopKkDzK5Zegh4Xaa2gWWCSmBGbBg1g5Oc94skjuei7Z8cN2xWs8mLwfSA EZdZU7741dKg5L40fpwDT9AtXZkm/9zMb30QMZoB800mBtS0sK5R4bYp/DCdwi9WLzTj xBjYsU4ZgfefRaDFE9KYGbljqrOPmLtG7UAroVbzFhEE7y571TjJg1IvHGfKHbucSvub nggJMerbg1UGKacrAOxu8iqH++pusk8sL2MnVQmnGVciC+FAczlchs76hdTV0oesbYLK KFOffT5mH62nfGubDd/hW/+nuItXDRT6bOnrRKEqouuJFcT0c5cmMTpDvuvtvPxs7Xs0 S2dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=nF0tn/gqHX2oF+4Z5pCAzKHZIqOMWauw7VYS0cwAOok=; b=KWvylY52EjAFA/tUTpoS+p6JrGwEDdCEquROQGSOX+ViIQucSjpy4TtbYEUFGBKBsU gUmRJ+vsPpgYXHuOQWcZExT8fLG/fCcgQmmYefvPYvHx/jSUG+YXctGuQ3J8OQcu+8vZ f9nrseIEGo4xJ89b33KOSiPBd3B6OkSvaiElyGxr5LGBCC/KPjAo4Tzk6MtQS5krspUd moL58E/550E63UBcf+fywW/RaCF9ggZdsGxeGB9RAk8WhhsN0iQ1/3yVhJmMu7LYqy3+ yUF0kqiFy+s5jx44gDOOuQtVXKxIGi41tjgpGKXgHmqlqZdclvcbQNQc3F5do7t0WDjg W27w== X-Gm-Message-State: ACgBeo2l8HFtqSVYunnDT8FhtEzUEFLtaIDlML4I8PXnh2HGxgPdPPjA 1RNF5JFQFfFac84S90wGoFhaey7eZZrvgOneYMkhBA== X-Received: by 2002:a05:6808:3:b0:343:7d5c:ac50 with SMTP id u3-20020a056808000300b003437d5cac50mr3057270oic.108.1660899112103; Fri, 19 Aug 2022 01:51:52 -0700 (PDT) MIME-Version: 1.0 References: <20220818035105.5510-1-steev@kali.org> In-Reply-To: <20220818035105.5510-1-steev@kali.org> From: Amit Pundir Date: Fri, 19 Aug 2022 14:21:14 +0530 Message-ID: Subject: Re: [PATCH] soundwire: qcom: remove unneeded check To: Steev Klimaszewski , Srini Kandagatla Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , Philipp Zabel , Srinivasa Rao Mandadapu , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Steev, Thank you for looking into this crash. Srini submitted the same fix earlier this week https://www.spinics.net/lists/alsa-devel/msg146137.html Regards, Amit Pundir On Thu, 18 Aug 2022 at 09:21, Steev Klimaszewski wrote: > > commit 1fd0d85affe4d6 ("soundwire: qcom: Add flag for software clock gating check") > added a flag for software clock gating check, however in commit > 33ba01788889666 ("soundwire: qcom: Add support for controlling audio CGCR from HLOS") > the same check was added without the flag, so we would still end up failing > the software clock gating check. > > Originally reported by Amit Pundir on DB845c, I also saw it on the > Lenovo Yoga C630, right before the splat, we would see > > qcom-soundwire wcd934x-soundwire.6.auto: Failed to get audio_cgcr reset required for soundwire-v1.6.0 > > however, SDM845 has a soundwire-v1.3.0 > > Since the flag was added in 1fd0d85affe, lets just remove this one. > > Fixes: 33ba01788889 ("soundwire: qcom: Add support for controlling audio CGCR from HLOS") > Signed-off-by: Steev Klimaszewski > Reported-by: Amit Pundir > --- > drivers/soundwire/qcom.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c > index 709a7c1e0704..b621f7fb866f 100644 > --- a/drivers/soundwire/qcom.c > +++ b/drivers/soundwire/qcom.c > @@ -1355,10 +1355,6 @@ static int qcom_swrm_probe(struct platform_device *pdev) > ctrl->bus.compute_params = &qcom_swrm_compute_params; > ctrl->bus.clk_stop_timeout = 300; > > - ctrl->audio_cgcr = devm_reset_control_get_exclusive(dev, "swr_audio_cgcr"); > - if (IS_ERR(ctrl->audio_cgcr)) > - dev_err(dev, "Failed to get audio_cgcr reset required for soundwire-v1.6.0\n"); > - > ret = qcom_swrm_get_port_config(ctrl); > if (ret) > goto err_clk; > -- > 2.35.1 >