Return-path: Received: from mail-ve0-f176.google.com ([209.85.128.176]:54927 "EHLO mail-ve0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756622AbaGAPJj (ORCPT ); Tue, 1 Jul 2014 11:09:39 -0400 Received: by mail-ve0-f176.google.com with SMTP id db12so9738521veb.21 for ; Tue, 01 Jul 2014 08:09:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20140628052220.GG10407@us.netrek.org> <20140628072322.GC7410@atomide.com> <20140630061912.GA2461@atomide.com> <53B1BAC1.3090902@zonque.org> <477F20668A386D41ADCC57781B1F70430FE5F37540@SC-VEXCH1.marvell.com> <20140701065721.GM24891@us.netrek.org> Date: Tue, 1 Jul 2014 08:09:38 -0700 Message-ID: (sfid-20140701_170945_442481_3E599B3A) Subject: Re: mwifiex card reset From: Doug Anderson To: Yuvaraj Cd , Olof Johansson Cc: James Cameron , Bing Zhao , Daniel Mack , Tony Lindgren , Andreas Fenkart , Ulf Hansson , "linux-wireless@vger.kernel.org" , linux-mmc , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-samsung-soc , Tomasz Figa , sunil joshi , Prashanth G Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: +Olof who posted the patch that Yuvaraj referenced. On Tue, Jul 1, 2014 at 5:20 AM, Yuvaraj Cd wrote: > On Tue, Jul 1, 2014 at 12:27 PM, James Cameron wrote: >> On Mon, Jun 30, 2014 at 11:44:29PM -0700, Bing Zhao wrote: >>> I may have missed something, but doesn't the MMC_POWER_OFF and >>> MMC_POWER_ON|UP handling in controller driver help? >>> Anyway the clocks/GPIOs/regulators are sort of platform >>> dependent. Would it be better putting it in /arch/arm/mach-xxxxx/? >> >> Wouldn't device tree for mmc be better? > I have come across same problem.Below is the thread in which more > discussions happened on this. > http://patchwork.ozlabs.org/patch/312444/ > I am adding few more those who are interested in this solution. Thanks to Yuvaraj for referencing the old thread. It seems like there are already enough chefs in the kitchen so I'm not going to add any more suggestions myself. I'll point out that on all ARM Chromebooks (which to date have a Marvell part connected via SDIO) all face the same problem. In production kernels we've continued to get by with various hacks. The current kernels use a hack with regulator chaining and assumptions about 32K clocks already being on. This is less egregious than the hacks in older kernels which initted WiFi in the LCD backlight function (dont ask) but is still a hack. -Doug