Re: RFC: move zoran/core/i2c drivers to separate directories | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Fri, 3 Oct 2008 16:52:00 +0200 Hans Verkuil <hverkuil@xxxxxxxxx> wrote: > > > What about clients? Since these are all > > > (i2c) clients on a (usually i2c) bus. > > > > "Clients" comes from a software command/control vs hardware support > > perspective. That's certainly valid, but I think the term "client" > > is overloaded semantically. > Actually, no. You made me realize that i2c was probably not the best > name to use for that directory. The media_client struct I have in mind > is actually bus-agnostic. Since 99% of all ancillary drivers are i2c > and i2c has an i2c_client struct, the usage of 'client' make sense > (sort of). media_client for i2c ancilary drivers? This sounds wrong to me. The model of client/server assumes that the client is the piece of software that requests services from the other piece of software (the server). In this case, the bridge devices are requesting services for the i2c drivers. So, the bridges are the clients, and the ancilary drivers are the servers. > > > 1) Moving zoran sources into a zoran directory reflects current > > > practice. > > > > Yup. Good idea. Seems ok to me. > > > > > 2) We could prefix all core files with a common prefix (v4l2_) as > > > an alternative. But I think it is cleaner to have a core directory > > > instead. > > > > Agree, don't do the prefix. A core directory is better. On almost all other subsystems (dvb is one of the exceptions), the core is at drivers/<subsystem>. I don't see why we shouldn't keep all the core stuff there. > > > 3) Ditto for all i2c drivers, but there are so many that I think > > > these really should be moved to their own directory. > > > > Agree. The name is not all that important either (although easy to > > argue about). > > > > One cost I'd like to avoid is in terms of recursive descent searches > > and diff's. Don't move the files up out of media/video without good > > reason, to keep the file count for lazy searches (grep -R 'foo' video > > ) the same. But you said that was your plan anyway. > > Yes. If you want to do grep, then have a copy of my -git tree. Then, you can simply use "git grep" that it is a way faster than doing a recursive grep. Every time we move things from one directory to another, this breaks things and cause some mess. This is expecially valid for drivers that are under development. We already did one such big rearrangements for the last kernel version, with the common tuners. In the case of tuners, this had a good reason, since the Kconfig rules were being very confusing due to dvb drivers needing to access tuners. Yet, it required me extra care when merging drivers, since several ones broke or caused merge conflicts, since they were developed with the old model in mind. We should really avoid this, unless we have a really good reason. And we shouldn't do it on every next kernel cycle. If you really want to to this, I think that the better would be to start discussing this for the 2.6.29 merge window. IMO, the better is to have a TODO file with the planned core changes. I had to postpone some important driver fixes to 2.6.28 simply because the patches didn't apply on my "fixes" branch (I remember that I had to re-tag several cx18 changes, and an important s2255drv change), due to the changes at the KABI on V4L core introduced early at 2.6.28 development cycle. Cheers, Mauro. -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
[Home] [Older V4L] [Linux DVB] [Video Disk Recorder] [Video Technology] [Asterisk] [Photo] [DCCP] [Netdev] [Plasma TVs] [Video Projectors] [PDAs] [Xorg] [Util Linux NG] [Xfree86] [Devices] [Big List of Linux Books] [Free Photo Albums] [LCD TVs] [Fedora Users] [Webcams] [Fedora Women] [HDTV] [ALSA Users] [ALSA Devel] [Stuff] [SSH] [DVB Maintainers] [Linux USB]
![]() |
![]() |