Return-path: Received: from smtp102.biz.mail.re2.yahoo.com ([68.142.229.216]:39860 "HELO smtp102.biz.mail.re2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751495AbYLPSMk (ORCPT ); Tue, 16 Dec 2008 13:12:40 -0500 Message-ID: <4947EE05.7080302@mdesystems.com> (sfid-20081216_191243_831884_1EA54F75) Date: Tue, 16 Dec 2008 13:05:57 -0500 From: Angel Roman MIME-Version: 1.0 To: Dan Williams CC: Andrey Yurovsky , linux-wireless@vger.kernel.org, Colin McCabe , libertas-dev@lists.infradead.org Subject: Re: [PATCH 3/3] libertas: if_spi, driver for libertas GSPI devices References: <1229398052-27465-1-git-send-email-colin@cozybit.com> <1229398052-27465-2-git-send-email-colin@cozybit.com> <1229398052-27465-3-git-send-email-colin@cozybit.com> <1229398052-27465-4-git-send-email-colin@cozybit.com> <4947241F.10305@mdesystems.com> <1229449129.7307.51.camel@localhost.localdomain> In-Reply-To: <1229449129.7307.51.camel@localhost.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: Dan Williams wrote: > On Mon, 2008-12-15 at 22:44 -0500, Angel Roman wrote: >> Hi Colin, >> >> I have support for the gspi as well. I've been trying to get in contact >> with Dan Williams in order to contribute it to the list. > > Sorry about that... it's in my queue and I'll try to get to do some > review in the next few days. Doing the new interface isn't a ton of > code, and I'd expect both yours and Colin's drivers to be quite similar > as there's only a few ways this thing can be done :) > > The submission process is basically just like Colin did; generate a > series of patches of your latest code (split into independent patches if > possible) based on a kernel version (ideally the latest kernel version > or better yet, wireless-testing.git) and then post it to linux-wireless > and maybe cc libertas-dev as well. Thanks, will do. I look forward to combining our efforts. > >> If you want, you can take a look at the code via: >> >> svn list -R >> svn://svn.buglabs.net/bug/trunk/bug-linux-2.6.27.2/drivers/net/wireless/libertas >> >> >> >> This is currently working in the mx31 processor. Maybe we can work out a >> way to merge the two drivers. The mx31 was a little tricky since there's >> an error in the processor where one is not able to keep the chip select >> signal active during multiple spi transfers as requried by the wifi >> module. I've also abstracted the board interface from the GSPI code as >> much as I could. > > Is there a generic SPI layer that could be used for the board-specific > bits too, rather than putting that stuff in the libertas tree? I assume > that the SPI bus is more or less generic on your hardware (ie you could > put something else on the other end instead of the 8686), and thus it > would be better if we could figure out way not to put some much board > specific logic into the libertas driver itself. Yes, the spi libertas core driver in buglabs' tree does not depend on any particular spi implementation. The board specific code - if_bmi.c and if_bmi.h - in my code registers a call back function with the gspi core which performs the actual spi transfer. if_bmi.c and if_bmi.h could go in another driver and does not need to go into libertas, however, the core seems like a good fit for the libertas tree. > > Dan > > > _______________________________________________ > libertas-dev mailing list > libertas-dev@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/libertas-dev >