From patchwork Fri Jul 18 08:00:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Fenkart X-Patchwork-Id: 4581371 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DEB46C0514 for ; Fri, 18 Jul 2014 08:01:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCE332018E for ; Fri, 18 Jul 2014 08:01:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2FAC820176 for ; Fri, 18 Jul 2014 08:00:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754016AbaGRIA5 (ORCPT ); Fri, 18 Jul 2014 04:00:57 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:43432 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbaGRIA4 (ORCPT ); Fri, 18 Jul 2014 04:00:56 -0400 Received: by mail-we0-f175.google.com with SMTP id t60so4226813wes.34 for ; Fri, 18 Jul 2014 01:00:54 -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; bh=yJOxz1icYSV8GzBXad/k3HVe0zXUOIqGeyKnEkIyd5A=; b=Jjmx1nsW8oRJ/OyL2AlDD+5wtHlZ2GMrx53yMYJ+Svjhe5KRCJqY5suyFErVFLR5dg tUXixpBhfL0mUaEcHdJbIMGhheLI++04xu7YSwhRHZ+JPuvoGKXMunOHcbUOoQbDcHap tLeTol09XwVYUCeJT2i9G2YYEIjZQMdtVYzxeAloQHoAQPTWz4PH3EpTfQHOJOwBovu1 djrpuPamkoMmcK8u4LtLWNex/m6f3ja+PAkiVZqOW+AYbY48GHr5NZuAh4fPFU3x4NO4 axBrkSAgsHyl6sJb++yesKPZiUivd48QTBzkdEMv+eLL9++PHYn0mhfA/2JNsVzWpoGz w6Ow== X-Received: by 10.194.177.168 with SMTP id cr8mr3847815wjc.134.1405670453419; Fri, 18 Jul 2014 01:00:53 -0700 (PDT) Received: from localhost (ip-89-176-190-177.net.upcbroadband.cz. [89.176.190.177]) by mx.google.com with ESMTPSA id de5sm3837857wib.18.2014.07.18.01.00.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jul 2014 01:00:52 -0700 (PDT) From: Andreas Fenkart To: linux-wireless@vger.kernel.org Cc: bzhao@marvell.com, daniel@zonque.org, Andreas Fenkart Subject: [PATCH] mwifiex: card reset: enable rescan of non-removable card Date: Fri, 18 Jul 2014 10:00:37 +0200 Message-Id: <1405670437-18723-1-git-send-email-afenkart@gmail.com> X-Mailer: git-send-email 2.0.1 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 --- drivers/net/wireless/mwifiex/sdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index 4ce3d7b..eff3d6e 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); + reset_host->rescan_entered = 0; /* rescan non-removable cards */ mmc_add_host(target); } static DECLARE_WORK(card_reset_work, sdio_card_reset_worker);