From patchwork Mon Jul 21 08:01:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Fenkart X-Patchwork-Id: 4593591 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 826459F375 for ; Mon, 21 Jul 2014 08:02:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C162020115 for ; Mon, 21 Jul 2014 08:02:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED93620103 for ; Mon, 21 Jul 2014 08:02:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753298AbaGUICX (ORCPT ); Mon, 21 Jul 2014 04:02:23 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:56400 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753028AbaGUICU (ORCPT ); Mon, 21 Jul 2014 04:02:20 -0400 Received: by mail-we0-f173.google.com with SMTP id q58so7181131wes.18 for ; Mon, 21 Jul 2014 01:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ylA5uYd3pf69KSourPQ8Bgcz7fVsZByx2XX9eKV5ees=; b=u8/wgpqeucB4NEwvfKZXjxjBtiOlTN7YkRv8p49FZEGouJVH1D6sKLA9e3zQIVE2bw jIP1xR3vDCJOE88SKlF/4/LPV44pnqEQguV8t12Yd2Ak2Mdc+1tJkntgdQy1ckH1eEXP yjqCXdJVnaMF71CHuqJBhXoN+UZIrJx++/9Vjsz9My3yyc88ZslQEPaVP73NTjHVXysR OFG4T7hqlUAUIuyJs+Cisycd2AaTIV/Yk+EqR4LGGulRmJgvq3sMMWri05kjs2CzVBSK ZULK5qohD7mnDmC8dT21mbKbLA5YdcDfpZXm+CEdlJnNSPeruajDf8d0nUdgUEUMDeIh tlTA== X-Received: by 10.180.103.74 with SMTP id fu10mr1758091wib.47.1405929738142; Mon, 21 Jul 2014 01:02:18 -0700 (PDT) Received: from localhost (ip-94-112-0-184.net.upcbroadband.cz. [94.112.0.184]) by mx.google.com with ESMTPSA id eh10sm39207421wic.0.2014.07.21.01.02.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jul 2014 01:02:17 -0700 (PDT) From: Andreas Fenkart To: linux-wireless@vger.kernel.org Cc: bzhao@marvell.com, daniel@zonque.org, Andreas Fenkart Subject: [PATCH v2 1/1] mwifiex: card reset: enable rescan of non-removable card Date: Mon, 21 Jul 2014 10:01:52 +0200 Message-Id: <1405929712-27268-2-git-send-email-afenkart@gmail.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1405929712-27268-1-git-send-email-afenkart@gmail.com> References: <1405929712-27268-1-git-send-email-afenkart@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP mmc_rescan will scan for non-removable cards only once, hence the card will not be rediscovered. Signed-off-by: Andreas Fenkart Acked-by: Bing Zhao diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index 4ce3d7b..ef22d59 100644 --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c @@ -1931,6 +1931,7 @@ static void sdio_card_reset_worker(struct work_struct *work) mmc_remove_host(target); /* 20ms delay is based on experiment with sdhci controller */ mdelay(20); + target->rescan_entered = 0; /* rescan non-removable cards */ mmc_add_host(target); } static DECLARE_WORK(card_reset_work, sdio_card_reset_worker);