Return-path: Received: from web94908.mail.in2.yahoo.com ([203.104.17.164]:28434 "HELO web94908.mail.in2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755834Ab0H3QAh convert rfc822-to-8bit (ORCPT ); Mon, 30 Aug 2010 12:00:37 -0400 Message-ID: <155949.32925.qm@web94908.mail.in2.yahoo.com> Date: Mon, 30 Aug 2010 21:30:30 +0530 (IST) From: Pavan Savoy Subject: Re: [PATCH v4 2/5] MFD: WL1273 FM Radio: MFD driver for the FM radio. To: ext Hans Verkuil , matti.j.aaltonen@nokia.com Cc: Mauro Carvalho Chehab , "linux-media@vger.kernel.org" , "Valentin Eduardo \(Nokia-MS/Helsinki\)" , petri.karhula@nokia.com In-Reply-To: <1283168697.14489.290.camel@masi.mnp.nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT List-ID: Sender: Mauro Carvalho Chehab Matti/Hans, --- On Mon, 30/8/10, Matti J. Aaltonen wrote: > From: Matti J. Aaltonen > Subject: Re: [PATCH v4 2/5] MFD: WL1273 FM Radio: MFD driver for the FM radio. > To: "ext Hans Verkuil" > Cc: "ext Pavan Savoy" , "Mauro Carvalho Chehab" , "linux-media@vger.kernel.org" , "Valentin Eduardo (Nokia-MS/Helsinki)" , petri.karhula@nokia.com > Date: Monday, 30 August, 2010, 5:14 PM > Hello. > > On Sat, 2010-08-28 at 11:29 +0200, ext Hans Verkuil wrote: > > On Thursday, August 26, 2010 09:39:45 Matti J. > Aaltonen wrote: > > > Hi. > > > > > > On Wed, 2010-08-25 at 23:20 +0200, ext Pavan > Savoy wrote: > > > > > > > > > I'm sorry for not answering to you > earlier. But I don't > > > > > have my own > > > > > public repository. But to create the > whole thing is > > > > > extremely simple: > > > > > just take the current mainline tree and > apply my patches on > > > > > top of it... > > > > > > > > Yep, that I can do, the reason I asked for > was, we've pushed a few patches of our own for WL1283 over > shared transport/UART (Not HCI-VS, but I2C like commands, > packed in a CH8 protocol format). > > > > The FM register set in both chip are a > match, with only transport being the difference (i2c vs. > UART). > > > > Also we have the Tx version of driver ready > too, it just needs a bit of cleanup and more conformance to > already existing V4L2 TX Class.. > > > > > > > > So I was wondering, although there is no > problem with WL1273 with I2C and WL1283 with UART being > there on the kernel (whenever that happens), but it would be > way more cooler if the transport was say abstracted out .. > > > > > > > > what do you say? just an idea... > > > > > > I think it's a good idea. And the WL1273 ship can > also used with a UART > > > connection, we just chose I2C when the driver > development started etc... > > > > Making a completely bus-independent driver is actually > possible. It would require > > that the driver uses the subdev API > (include/media/v4l2-subdev.h). Any register > > read or writes can be done by calling the v4l2_device > notify() callback and the > > bridge/host driver can then translate the callback to > either i2c or uart read > > or writes. > > > > Both v4l2_device and v4l2_subdev structs are > completely abstract structs (i.e. > > they do not rely on any particular bus), so it should > be possible to implement > > this. > > > > I had this scenario in the back of my mind when I > designed these APIs, but this > > would be the first driver where this would actually > apply to. > > > > That sounds interesting. I think that after the driver gets > accepted in > its current form we can start to work according to the > above scenario... Please have a look at the patches at http://www.mail-archive.com/linux-media@vger.kernel.org/msg21477.html which are for Wl128x/UART transport. also here's a tree where the other set of patches would come from, http://git.omapzoom.org/?p=kernel/omap.git;a=tree;f=drivers/misc/ti-st;h=028ff4a739d7b59b94d0c613b5ef510ff338b65d;hb=refs/heads/p-android-omap-2.6.32 We are trying to make the drivers listed above conform to other V4L2 drivers and then post patches. Please comment ... Thanks in advance... > Cheers, > Matti > > > > > > >