Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp470346pxf; Thu, 11 Mar 2021 07:48:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCZ5Yuul1QIM1Dqx4QT98QClM4ruvtASffkgS7o9Hmkifl0uvA7IOxMjT3n6XReq5EbJb2 X-Received: by 2002:a17:907:7683:: with SMTP id jv3mr3676801ejc.450.1615477736637; Thu, 11 Mar 2021 07:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615477736; cv=none; d=google.com; s=arc-20160816; b=a9sW+0pwAfkbEt8hy1slJqlHF2zmNlWdZv3QpfW8zHD+Jn93i+/q6LeGe+1fTzHHID Nccyhsnznf49cYr262U0tufTKzPTHu2azf7sBwGI9urFD2N0W+M5nf5rurUh1T+WnjSX 5dlSbHWdFdkM+Vy3pQuiOFNaO7q1usv1uwePfLxjzotDTvHeNwetbkt42quBiCx/pFZe Fh/qlgQbv0TqQkFPounuxKkB3g6OsmX4I07arO0iuu8bd0lv4g1zRToNm643LOgC6RBA R6XtJj2n6Oq3G+Z3yyC4E171kHjfruh1tvoSjaKgBMcm+dfHZxw7iY4fEI0lQ8NL3TnS Ncfw== 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 :message-id:date:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=1VBjwvHlfoWkZSq2NKmHy22HPNe4Qn92KKp2+bBnXqE=; b=Nyk6laXB5RfmPRS+yQ3bX1GkFJhzFSvCpRtujaLIJBsnf5D57V2r1yUsQUchFCLGGL Oey710tlq17uP5z49DX55LIy3jCIFUtqKKbYcjZJt0p5cde3etIJjQF5tJ0U4tCx92mV kRsyov0Gbfu90rSujwoIJmvw5VHCjGWAGNi185kR2nDy51dm2SD1juhSZrZHPS8K1Iyz 7Xq3BLNx5oarDhezve+h904wqCPgyUcsdRiS9sOHkPF1/SbQiDX3/2mC8GIEbj6bVJz9 /S/enHgKO93Ss5CHJnU0LqmAeuV08NeBPp3V4IaqJLRAxoraLEujR/wxzDIgt8mjNtI7 kFsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ixsx8t+U; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk9si1910593ejb.474.2021.03.11.07.48.33; Thu, 11 Mar 2021 07:48:56 -0800 (PST) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ixsx8t+U; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234320AbhCKPqq (ORCPT + 99 others); Thu, 11 Mar 2021 10:46:46 -0500 Received: from m42-2.mailgun.net ([69.72.42.2]:36987 "EHLO m42-2.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234327AbhCKPqi (ORCPT ); Thu, 11 Mar 2021 10:46:38 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615477598; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=1VBjwvHlfoWkZSq2NKmHy22HPNe4Qn92KKp2+bBnXqE=; b=ixsx8t+UeXCgaEHh6eJOl9UBIO1rEN/RtzPe3kj1wX+o7L/wl21vVAAX0qzMXQ7tQlJD3TJb W0uuai61Scf9uAnGXD4zD/AUiRx1Pc2tPFs1oDoYejxZZ84UFxWVgUNDp5Ff30/CLgBwIu8m ES7qrdJTQ7Z7iXmId7vPJMasnrI= X-Mailgun-Sending-Ip: 69.72.42.2 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 604a3b46b2591bd5684c7652 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 11 Mar 2021 15:46:14 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0AB62C43464; Thu, 11 Mar 2021 15:46:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld210.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 587C2C433CA; Thu, 11 Mar 2021 15:46:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 587C2C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Srinivasa Rao Mandadapu Subject: [PATCH v2] ASoC: qcom: lpass-cpu: Fix lpass dai ids parse Date: Thu, 11 Mar 2021 21:15:57 +0530 Message-Id: <20210311154557.24978-1-srivasam@codeaurora.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The max boundary check while parsing dai ids makes sound card registration fail after common up dai ids. Fixes: cd3484f7f138 ("ASoC: qcom: Fix broken support to MI2S TERTIARY and QUATERNARY") Signed-off-by: Srinivasa Rao Mandadapu --- Changes since v1: -- Fixes commit message chnaged. sound/soc/qcom/lpass-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 4762286b33fe..c62d2612e8f5 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -739,7 +739,7 @@ static void of_lpass_cpu_parse_dai_data(struct device *dev, for_each_child_of_node(dev->of_node, node) { ret = of_property_read_u32(node, "reg", &id); - if (ret || id < 0 || id >= data->variant->num_dai) { + if (ret || id < 0) { dev_err(dev, "valid dai id not found: %d\n", ret); continue; } -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.