Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3807877pxk; Tue, 8 Sep 2020 03:06:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLazIeJGCOJxzzDDIXK+F74lE9fIK+wbKLg9femAdwJQG8gppnUWA9oNNZ2mC1F8T7ehMr X-Received: by 2002:a50:fe0f:: with SMTP id f15mr25810359edt.235.1599559565004; Tue, 08 Sep 2020 03:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599559564; cv=none; d=google.com; s=arc-20160816; b=Y1CtGzeQO2U71a2H2/fdFuZLlUOOwmGTxPvUz4IMT/7vXzHSaD7A2VHzgj6iCxKToY ja2xdY1CR5Je7OdPNkc04tVoEcxD4gg2x2Z53kfoZGepgdHUJz0Z2fyQ30KilvCuuOoW Wqh8y5FW/AjgXRLU2Wr59aPjcwIj1fNegeS7SNABuFX2n+Iah+7llZhQQl0tgtP37pAd 2G+aZ2WjFNe4/DX+TctRNTUZd9e16/Bq7pNeKEra69YB2QvXvPKJuDsZbB8tSY2oT7DH S0SctKRccPdeBisq+P/n71torWz9c9OvawMKdfeM2+3DDNUsbgEmXwF/z3bSSzajbsFO S1rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:message-id:date:subject:cc:to :from:dmarc-filter:dkim-signature:dkim-signature; bh=S2D5OZVY0CxzqILMyajltzgZGuK/kh+SJu5XXWzZJ2A=; b=bDoqC5xYd4FB03+6Wc/jhSFGKOSmcGLgYPNxhC8eYF1uuFG55nZf+Rb47/7DnmL94G z5yWJd+qEb3YSg4opBzPjXsGPAAY8atboA+1TIqvtGqR/Ty8fC+j6FvP+yFbomvbWcYd MG3IdibyrEQTBFKOBqxf5U6s3QhJp5Yq0TfuNn/LLwPaY2jY6Mtwbok1LKxzQedp2uFY 2DesSTtNd0hnIUYmUPoaLtGK+7DjMMJBYYtGsBtnY+Xt66x2ZSvshhWwohPZ9507y2pA rkX9ks3goHIETYhjKu8A9diu9bbiSDZSFpLKY8qBqv5Hzt67UMmguPmtO+NvYlpXZKib Q22w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=Rfk2VReX; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=aGP3mS98; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 mb24si11263999ejb.583.2020.09.08.03.05.30; Tue, 08 Sep 2020 03:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=Rfk2VReX; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=aGP3mS98; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729139AbgIHKCG (ORCPT + 99 others); Tue, 8 Sep 2020 06:02:06 -0400 Received: from a27-55.smtp-out.us-west-2.amazonses.com ([54.240.27.55]:47662 "EHLO a27-55.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729023AbgIHKCA (ORCPT ); Tue, 8 Sep 2020 06:02:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599559319; h=From:To:Cc:Subject:Date:Message-Id; bh=/WnOVNuZqkt/ALmLA1kdouN8QxOnf+7kb/JaqYcKkRk=; b=Rfk2VReX61W2na/feCGJXvkBvs1fTa8iyYqDjTh9Z1qD/TT0frUE80a41kSCG4WC klIt7mWSMqoKWCHpIptP3OfYD1m2yZTPrnhWvXAIJ/zAPUv468e/npsBGQ7SbnuPAjC hiTTin8ZsCuBtyzLc8fxEu+Uzxtb3qItkJtN8z1Q= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599559319; h=From:To:Cc:Subject:Date:Message-Id:Feedback-ID; bh=/WnOVNuZqkt/ALmLA1kdouN8QxOnf+7kb/JaqYcKkRk=; b=aGP3mS98lCStOIYI/Rasr80tsRe0lPTWkN8IPxgosFV51xAmkojRXr19jhSTYMSX zlNxpFpMsJde7MX2uQgpaCxQsoEUIiMMPyBdjyFqnreTQqhqBLk4pEl5gDXcXKpFQle EjrBXENrwXKyHSiI9guMzlGzA+wkfTzhZ2BvWFZk= 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 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B9DCCC433C8 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=akolli@codeaurora.org From: Anilkumar Kolli To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Anilkumar Kolli Subject: [PATCH] ath11k: remove calling ath11k_init_hw_params() second time Date: Tue, 8 Sep 2020 10:01:59 +0000 Message-ID: <010101746d2a40d3-25cd7dbe-c0dd-4fdf-8735-366d7fb40207-000000@us-west-2.amazonses.com> X-Mailer: git-send-email 2.7.4 X-SES-Outgoing: 2020.09.08-54.240.27.55 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org During probe ath11k_init_hw_params() is called from ath11k_core_pre_init() and is not needed agian in ath11k_core_init(). Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1 Fixes: 1ff8ed786d5d (ath11k: use remoteproc only with AHB devices) Signed-off-by: Anilkumar Kolli --- drivers/net/wireless/ath/ath11k/core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index 648a697e414a..03e922111cd6 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -849,12 +849,6 @@ int ath11k_core_init(struct ath11k_base *ab) return ret; } - ret = ath11k_init_hw_params(ab); - if (ret) { - ath11k_err(ab, "failed to get hw params %d\n", ret); - return ret; - } - ret = ath11k_core_soc_create(ab); if (ret) { ath11k_err(ab, "failed to create soc core: %d\n", ret); -- 2.7.4