Return-path: Received: from smtp47.i.mail.ru ([94.100.177.107]:36298 "EHLO smtp47.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968Ab3KEIin (ORCPT ); Tue, 5 Nov 2013 03:38:43 -0500 Message-ID: <5278AE8E.9060203@mail.ru> (sfid-20131105_093900_879719_2E3DC85C) Date: Tue, 05 Nov 2013 12:38:38 +0400 From: Alexander Varnin MIME-Version: 1.0 To: Bing Zhao , "linux-wireless@vger.kernel.org" CC: "linux-mmc@vger.kernel.org" Subject: Re: mwifiex_sdio on chromebook References: <5276491F.20207@mail.ru> <477F20668A386D41ADCC57781B1F70430F45757E63@SC-VEXCH1.marvell.com> <527703E6.8040504@mail.ru> <477F20668A386D41ADCC57781B1F70430F45758053@SC-VEXCH1.marvell.com> In-Reply-To: <477F20668A386D41ADCC57781B1F70430F45758053@SC-VEXCH1.marvell.com> Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: 04.11.2013 23:46, Bing Zhao пишет: > Hi Alexander, > >>> Your Chromebook supports SDIO high speed mode (SDIO 2.0 spec). So >>> 50MHz is correct. >> Ok, but mainline kernel doesn't try this frequency. It tries 400kHz at >> most. >> >>> What are you trying to do here? Are you trying to run a mainline kernel on your Chromebook? >> Yes. I've got kernel 3.4 from Google Chrome OS. It works ok for >> mwifiex_sdio. But I want to run mainline kernel. As of 3.11 it is able >> to boot on Chromebook, but WiFi doesn't work. > I don't know why you want to do that, but the mainline kernel won't work on your Chromebook unless you port all platform specific changes over from chromeos-3.4 tree. > >>> You said mmc_attach_sdio function fails. The mwifiex_sdio driver and >>> the firmware will not be loaded at all. >> Ok, that is clear. >> >>> CONFIG_MMC_DEBUG=y, and collect the debug logs. >> This way seems not very useful, because there is also internal and >> external storage on mmc bus, so log quickly get garbaged with it. Dmesg >> seems to be overflowed and forgets early initialization. I have made a >> dirty hack to collect some useful info about initialization. I am >> attaching it. Please check, if I need to add something. Will it be >> useful this way? > As said above, this won’t work because the Chromebook specific changes aren't present in mainline kernel. Anyway you can take a look at the chromium OS developer guide. > > http://www.chromium.org/chromium-os/developer-guide > > Thanks, > Bing > It is ported at most already and mainline kernel works good on Chromebook. It is just peripheral problem.