Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp531708rwi; Wed, 26 Oct 2022 04:14:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FNyJDnrSFkZb8yLYNGyZTjiitnvoPG8hqmc82zL8D2x0uBrCj2unuZnckmITYGNbBjSFP X-Received: by 2002:a17:907:608a:b0:791:9dbc:cc11 with SMTP id ht10-20020a170907608a00b007919dbccc11mr36299971ejc.357.1666782890804; Wed, 26 Oct 2022 04:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666782890; cv=none; d=google.com; s=arc-20160816; b=f5y8Ch0jvVybQK1I1Gkw9nwbeA+BalxN9gZ5VTg6XkzDwgGFp52AP9JeYonHtW/g+K RDlEHGlu7XB8WW9chelmE5FlGrFb/BI0o2lCYU7ZS6eSJIU0egz011Z2GieRfHXrE+Bz qVjHNdeddjHmyRRrmKr+rUuf31rd5rBzTq1NvE9kx+718J1w8BBUDD9Fcl+O9FVk+bnJ ftVWKMa+l+XPMLrTJqNCtoG1qc6tQJsnWvKw5r5r2AhzOqa99GfAa5LkWDkNJB0elFCK WZgIeN8nGJuhCCSk6NE2j6vSkWfTDk08Z/jUpFhFj+048iDwhPG5Dy+hg5nXPWaOSnss x8lg== 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=9qO/JbNRzACWJ+/BPqzyo1ybZ7r6Vd9pEOf9FoOyjmc=; b=KMeJ69cJi4TUmQvUQlSuKvt11dN5tnP9+sQdcwJRzOrXNogQAXCR4saJXxBrTq6YNb KKKHCPIEelobcyL68uqoxPKyWO3Jtlkkzx0IjdTjP1KVSxok2mEAJkoSU7/W2XV0rO3W WYkKjy0vMykdOUUkmc1Or9hWzOzDoQYJqwSY5XuaymeEmDiBXuU/rfJeGjTVNUBVwv2G OvLx/sKF1YDdWBKs41z8o9f6eI4zlC08MUxkhJlEuc864LD/bEcWgOgAqU40joqpZGEq dDW44xSv2dlhw43MmdSySOZyi41meeiqu3sjOVBvyUwMjXi8Mrw3fKYtf1tzBGv7PHGq ca0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RWGT62z0; 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 k27-20020a17090627db00b007ab349af9f9si4730541ejc.158.2022.10.26.04.14.24; Wed, 26 Oct 2022 04:14:50 -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=RWGT62z0; 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 S233265AbiJZLCk (ORCPT + 99 others); Wed, 26 Oct 2022 07:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbiJZLC3 (ORCPT ); Wed, 26 Oct 2022 07:02:29 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85688B5FED for ; Wed, 26 Oct 2022 04:02:28 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id r6-20020a1c4406000000b003cf4d389c41so232092wma.3 for ; Wed, 26 Oct 2022 04:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9qO/JbNRzACWJ+/BPqzyo1ybZ7r6Vd9pEOf9FoOyjmc=; b=RWGT62z0OrUByMt9GrSpD27EAROj86fo8TCkjjtRrXYNZ6HPIPQ5r5t5vpxfZQi0hd QoBX2qHvro7m4+uOucRRcVawjJZD8M+NXwqHESqMKuVmPmFN0EEJpFUOxhi1Tv0NCQvq 5oSkrVszv1SKhJb5bc/UmpozOVeaCe01pKmr0hMCFKF5at8bs0Knx/L0vEg055RsahMi 5wgwPKOvh22s18cE2oZvGjSg0h3z1hhDKNPe22z3CxTt/ntFrf2/3Q0Ltzl2YLpErooj 3tdAEwQyKaSdYqfroQEnF+6gxG0O9YEFrAL35sjVpftNC6WinLATzAZHFZ5sNgad9J+r /Dcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9qO/JbNRzACWJ+/BPqzyo1ybZ7r6Vd9pEOf9FoOyjmc=; b=pkBpvZM3/u4ExeDZ1oxxthvuBtjIuLW7toyFjZgQkCg6kCBB0+E6/f3VA04z+URQeO bgOTR5FJvLIr0Y7ULq33dl/2IFVL9i2MZB+ywNSbZkyGIDLV8NHn+q8UeuUW/BfI8Nm3 n9j9uG4yDYxsHIYLsesRJVAvZl6Vlrvnvrj2kGo3QCUbSyzRUT4OQ3yMpY1498+KDQJC 0rnDboF4CbNx4sIJmbHq9sEBu+/sQ/FhjCvqXJdKxwLwxl+u3M5lZ18QCbqI/U/vR5sI exhGXcWVKvbTIcMOk7CH0okmdfYr/2um8qsVol4GHWmrB5VrJJorof2nWRrYRdyDJNP4 HzpQ== X-Gm-Message-State: ACrzQf2ivuZF0VxKdPXABSar/yKsMcYr4lBv1t5n4jTJpMODGDzu8wg9 I92IyWVq3pfHFEzs+Fadtd78SQ== X-Received: by 2002:a7b:cc15:0:b0:3b4:ca90:970d with SMTP id f21-20020a7bcc15000000b003b4ca90970dmr2043088wmh.198.1666782147100; Wed, 26 Oct 2022 04:02:27 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id z7-20020a5d44c7000000b0023672104c24sm5237415wrr.74.2022.10.26.04.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 04:02:26 -0700 (PDT) From: Srinivas Kandagatla To: vkoul@kernel.org, yung-chuan.liao@linux.intel.com Cc: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 4/6] soundwire: qcom: make reset optional for v1.6 controller Date: Wed, 26 Oct 2022 12:02:08 +0100 Message-Id: <20221026110210.6575-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20221026110210.6575-1-srinivas.kandagatla@linaro.org> References: <20221026110210.6575-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED autolearn=unavailable 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 Some Qualcomm SOCs like sc8280xp which uses v1.6 soundwire controller reset is not mandatory, so make this an optional one. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 7bc8cd0e906b..54d370f4b291 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1330,8 +1330,8 @@ static int qcom_swrm_probe(struct platform_device *pdev) } if (data->sw_clk_gate_required) { - ctrl->audio_cgcr = devm_reset_control_get_exclusive(dev, "swr_audio_cgcr"); - if (IS_ERR_OR_NULL(ctrl->audio_cgcr)) { + ctrl->audio_cgcr = devm_reset_control_get_optional_exclusive(dev, "swr_audio_cgcr"); + if (IS_ERR(ctrl->audio_cgcr)) { dev_err(dev, "Failed to get cgcr reset ctrl required for SW gating\n"); ret = PTR_ERR(ctrl->audio_cgcr); goto err_init; -- 2.21.0