From patchwork Mon Jul 16 13:39:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Rebbagondla X-Patchwork-Id: 10526815 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C03060348 for ; Mon, 16 Jul 2018 13:36:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1C02287B4 for ; Mon, 16 Jul 2018 13:36:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6593287E5; Mon, 16 Jul 2018 13:36:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F862287B4 for ; Mon, 16 Jul 2018 13:36:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728787AbeGPODz (ORCPT ); Mon, 16 Jul 2018 10:03:55 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40887 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728037AbeGPODz (ORCPT ); Mon, 16 Jul 2018 10:03:55 -0400 Received: by mail-pg1-f195.google.com with SMTP id x5-v6so7514430pgp.7 for ; Mon, 16 Jul 2018 06:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fahLUVJlAAG15o3n+t4LfYf5XKJflF75NuUozqOoAWI=; b=LtwY0d6vVhwW9cjR/k9JjI4TzPoTqwsQ1qKBwVb8WZtw+dcLt4K9ZEzlg3+l74OR0u lZFczYhhQdvM20nWja6nrtIVzUzK/96QNZO8KpAHbrkEG1k2j8tA3osHiiy/gcvO+uNy kS9FgPV1+xYgCA3QGYAR1yL2sp9O/bOY74EdOLJcw8cDH3Og4Y8yGZyZEdmYD3qBnIy8 oGdeVNnoOKCpBQ8MNN0y1WQ7hk519znXKdU/Du3Bw8XATpBBr7x5W1fdFXR33jYEhCBE 3/vFssPd3RvvlkmpAa7J9gqSe4VOLQG1DFwANUTjc2uHfkSf3LW9an3yqDno0vPNhOyE 9MFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fahLUVJlAAG15o3n+t4LfYf5XKJflF75NuUozqOoAWI=; b=LUZV7YNVYhqlaAC0n7gFvzrBMuN/FderBlK/qqFqhlR6pR5DeV7G0lhGOCC7TalzVc HuEEln4jyxqRoFEDBmos1pe9xkEnPkA4xL+/azLhVGJgkeNXY0KJ38ZZm5xs7Dktw5c4 xoMJAANFPJFvUDr2csoohT9PRu/4k7eXeRXH9saJ9hFRWdhBWbXxvtvt8qUrd7QcjQm/ BREkohSqsNSu0OutzhBB7X/sOyCBbOv85gFm1RHuwuqdmYkffdK6ZNn6rndYu+47mzlw OoJ4vBMijXWfUMMQwMbya/nAcUI6AcMc3UaZHgB10F3BsAha9zfV0KYCHazc6KzYrK30 3ofw== X-Gm-Message-State: AOUpUlFRJYpQvMn02IdKK+/3abSUd0B4OHKUEGkEqDOhpUtxG51tjam4 iDquUht0txOAh/x6l6ay0kk= X-Google-Smtp-Source: AAOMgpe5QUxYZnBB+pPqYz6QYRloXgC8xJZgNHij4UxLnbKwTCAFGNcIasdTFWXDaCi8NdPEeoTCAA== X-Received: by 2002:a63:7c5c:: with SMTP id l28-v6mr15862101pgn.352.1531748185935; Mon, 16 Jul 2018 06:36:25 -0700 (PDT) Received: from cpu459.localdomain ([27.59.226.48]) by smtp.gmail.com with ESMTPSA id t3-v6sm53756167pfk.161.2018.07.16.06.36.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jul 2018 06:36:25 -0700 (PDT) From: Siva Rebbagondla To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Sushant Kumar Mishra , Siva Rebbagondla , Amol Hanwate Subject: [PATCH 6/6] rsi: move init_done flag to end of rsi_91x_init(). Date: Mon, 16 Jul 2018 19:09:37 +0530 Message-Id: <1531748377-29215-7-git-send-email-siva8118@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1531748377-29215-1-git-send-email-siva8118@gmail.com> References: <1531748377-29215-1-git-send-email-siva8118@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Amol Hanwate common->init_done flag should set after basic initialization. Hence, moving init_done flag at end of rsi_91x_init(). Signed-off-by: Amol Hanwate Signed-off-by: Siva Rebbagondla --- drivers/net/wireless/rsi/rsi_91x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/rsi/rsi_91x_main.c b/drivers/net/wireless/rsi/rsi_91x_main.c index 34a5d9c..01d99ed 100644 --- a/drivers/net/wireless/rsi/rsi_91x_main.c +++ b/drivers/net/wireless/rsi/rsi_91x_main.c @@ -331,7 +331,6 @@ struct rsi_hw *rsi_91x_init(u16 oper_mode) spin_lock_init(&adapter->ps_lock); timer_setup(&common->roc_timer, rsi_roc_timeout, 0); init_completion(&common->wlan_init_completion); - common->init_done = true; adapter->device_model = RSI_DEV_9113; common->oper_mode = oper_mode; @@ -369,6 +368,7 @@ struct rsi_hw *rsi_91x_init(u16 oper_mode) } #endif + common->init_done = true; return adapter; err: