public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Where is place of arch independed companion chips?
@ 2005-07-30 11:52 Andrey Volkov
  2005-07-31  4:40 ` [Linux-fbdev-devel] " Antonino A. Daplas
  2005-08-01 12:29 ` Jamey Hicks
  0 siblings, 2 replies; 10+ messages in thread
From: Andrey Volkov @ 2005-07-30 11:52 UTC (permalink / raw)
  To: gregkh, linux-fbdev-devel, linux-kernel

Hi Greg,

While I write driver for SM501 CC (which have graphics controller, USB
MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
I bumped with next ambiguity:
Where is a place of this chip's Kconfig/drivers in
kernel config/drivers tree? May be create new node in drivers subtree?
Or put it under graphics node (since it's main function of this CC)?

AFAIK, this is not one such multifunctional monster in the world, so
somebody bumped with this problem again in future.

-- 
Regards
Andrey Volkov

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-fbdev-devel] Where is place of arch independed companion chips?
  2005-07-30 11:52 Where is place of arch independed companion chips? Andrey Volkov
@ 2005-07-31  4:40 ` Antonino A. Daplas
  2005-07-31 12:21   ` Andrey Volkov
  2005-08-01 12:29 ` Jamey Hicks
  1 sibling, 1 reply; 10+ messages in thread
From: Antonino A. Daplas @ 2005-07-31  4:40 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: gregkh, linux-kernel

Andrey Volkov wrote:
> Hi Greg,
> 
> While I write driver for SM501 CC (which have graphics controller, USB
> MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
> I bumped with next ambiguity:
> Where is a place of this chip's Kconfig/drivers in
> kernel config/drivers tree? May be create new node in drivers subtree?
> Or put it under graphics node (since it's main function of this CC)?

You will have to split your driver (graphics under drivers/video, usb
under drivers/usb, ac97 under sound, video capture under drivers/media,
etc.

Tony


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-fbdev-devel] Where is place of arch independed companion chips?
  2005-07-31  4:40 ` [Linux-fbdev-devel] " Antonino A. Daplas
@ 2005-07-31 12:21   ` Andrey Volkov
  0 siblings, 0 replies; 10+ messages in thread
From: Andrey Volkov @ 2005-07-31 12:21 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: gregkh, linux-kernel

Hi Tony,

Antonino A. Daplas wrote:
> Andrey Volkov wrote:
> 
>> Hi Greg,
>>
>> While I write driver for SM501 CC (which have graphics controller, USB
>> MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
>> I bumped with next ambiguity:
>> Where is a place of this chip's Kconfig/drivers in
>> kernel config/drivers tree? May be create new node in drivers subtree?
>> Or put it under graphics node (since it's main function of this CC)?
> 
> 
> You will have to split your driver (graphics under drivers/video, usb
> under drivers/usb, ac97 under sound, video capture under drivers/media,
> etc.
Yes, it was first what I try, BUT - all these drivers have common
code (as bus driver, in my case) and some of private headers.
And problem exactly in this code. This code NOT video/audio....., this
code is abstract bus driver, and doesn't fall under some exist kernel
tree node :(.

-- 
Regards
Andrey Volkov

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Where is place of arch independed companion chips?
  2005-07-30 11:52 Where is place of arch independed companion chips? Andrey Volkov
  2005-07-31  4:40 ` [Linux-fbdev-devel] " Antonino A. Daplas
@ 2005-08-01 12:29 ` Jamey Hicks
  2005-08-01 18:13   ` Greg KH
  1 sibling, 1 reply; 10+ messages in thread
From: Jamey Hicks @ 2005-08-01 12:29 UTC (permalink / raw)
  To: Andrey Volkov; +Cc: gregkh, linux-fbdev-devel, linux-kernel

Andrey Volkov wrote:

>Hi Greg,
>
>While I write driver for SM501 CC (which have graphics controller, USB
>MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
>I bumped with next ambiguity:
>Where is a place of this chip's Kconfig/drivers in
>kernel config/drivers tree? May be create new node in drivers subtree?
>Or put it under graphics node (since it's main function of this CC)?
>
>AFAIK, this is not one such multifunctional monster in the world, so
>somebody bumped with this problem again in future.
>
>  
>
Good question.  I was about to submit a patch that created 
drivers/platform because the toplevel driver for MQ11xx is a 
platform_device driver.  Any thoughts on this?

Jamey



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Where is place of arch independed companion chips?
  2005-08-01 12:29 ` Jamey Hicks
@ 2005-08-01 18:13   ` Greg KH
  2005-08-01 18:38     ` Andrey Volkov
                       ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Greg KH @ 2005-08-01 18:13 UTC (permalink / raw)
  To: Jamey Hicks; +Cc: Andrey Volkov, linux-fbdev-devel, linux-kernel

On Mon, Aug 01, 2005 at 08:29:35AM -0400, Jamey Hicks wrote:
> Andrey Volkov wrote:
> 
> >Hi Greg,
> >
> >While I write driver for SM501 CC (which have graphics controller, USB
> >MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
> >I bumped with next ambiguity:
> >Where is a place of this chip's Kconfig/drivers in
> >kernel config/drivers tree? May be create new node in drivers subtree?
> >Or put it under graphics node (since it's main function of this CC)?
> >
> >AFAIK, this is not one such multifunctional monster in the world, so
> >somebody bumped with this problem again in future.
> >
> > 
> >
> Good question.  I was about to submit a patch that created 
> drivers/platform because the toplevel driver for MQ11xx is a 
> platform_device driver.  Any thoughts on this?

drivers/platform sounds good to me.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Where is place of arch independed companion chips?
  2005-08-01 18:13   ` Greg KH
@ 2005-08-01 18:38     ` Andrey Volkov
  2005-08-02 21:49     ` Richard Purdie
  2005-08-03  6:17     ` Pavel Machek
  2 siblings, 0 replies; 10+ messages in thread
From: Andrey Volkov @ 2005-08-01 18:38 UTC (permalink / raw)
  To: Greg KH; +Cc: Jamey Hicks, linux-fbdev-devel, linux-kernel


Greg KH wrote:
> On Mon, Aug 01, 2005 at 08:29:35AM -0400, Jamey Hicks wrote:
> 
>>Andrey Volkov wrote:
>>
>>
>>>Hi Greg,
>>>
>>>While I write driver for SM501 CC (which have graphics controller, USB
>>>MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
>>>I bumped with next ambiguity:
>>>Where is a place of this chip's Kconfig/drivers in
>>>kernel config/drivers tree? May be create new node in drivers subtree?
>>>Or put it under graphics node (since it's main function of this CC)?
>>>
>>>AFAIK, this is not one such multifunctional monster in the world, so
>>>somebody bumped with this problem again in future.
>>>
>>>
>>>
>>
>>Good question.  I was about to submit a patch that created 
>>drivers/platform because the toplevel driver for MQ11xx is a 
>>platform_device driver.  Any thoughts on this?
> 
> 
> drivers/platform sounds good to me.

May be better drivers/chipset?
Because "platform" imply only platform_device drivers,
but, SM501 as ex., could be connected through PCI too.

-- 
Regards
Andrey Volkov

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Where is place of arch independed companion chips?
  2005-08-01 18:13   ` Greg KH
  2005-08-01 18:38     ` Andrey Volkov
@ 2005-08-02 21:49     ` Richard Purdie
  2005-08-03  9:09       ` [Linux-fbdev-devel] " Andrey Volkov
  2005-08-08 21:09       ` Mark Underwood
  2005-08-03  6:17     ` Pavel Machek
  2 siblings, 2 replies; 10+ messages in thread
From: Richard Purdie @ 2005-08-02 21:49 UTC (permalink / raw)
  To: Greg KH; +Cc: Jamey Hicks, Andrey Volkov, linux-fbdev-devel, linux-kernel

On Mon, 2005-08-01 at 11:13 -0700, Greg KH wrote:
> > Good question.  I was about to submit a patch that created 
> > drivers/platform because the toplevel driver for MQ11xx is a 
> > platform_device driver.  Any thoughts on this?
> 
> drivers/platform sounds good to me.

In another thread (about the ucb1x00) we came up with the idea of
drivers/mfd (mfd = multi function devices).

The core and platform specific parts would live here with suitable clear
naming and the subsection specific parts that were separable would live
in the appropriate place within the kernel.

Just another idea to add to the mix and removes the dilemma of a
multifunction device with isn't platform based...

Richard


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Where is place of arch independed companion chips?
  2005-08-01 18:13   ` Greg KH
  2005-08-01 18:38     ` Andrey Volkov
  2005-08-02 21:49     ` Richard Purdie
@ 2005-08-03  6:17     ` Pavel Machek
  2 siblings, 0 replies; 10+ messages in thread
From: Pavel Machek @ 2005-08-03  6:17 UTC (permalink / raw)
  To: Greg KH; +Cc: Jamey Hicks, Andrey Volkov, linux-fbdev-devel, linux-kernel, rmk

Hi!

> > >While I write driver for SM501 CC (which have graphics controller, USB
> > >MASTER/SLAVE, AC97, UART, SPI  and VIDEO CAPTURE onboard),
> > >I bumped with next ambiguity:
> > >Where is a place of this chip's Kconfig/drivers in
> > >kernel config/drivers tree? May be create new node in drivers subtree?
> > >Or put it under graphics node (since it's main function of this CC)?
> > >
> > >AFAIK, this is not one such multifunctional monster in the world, so
> > >somebody bumped with this problem again in future.
> > >
> > > 
> > >
> > Good question.  I was about to submit a patch that created 
> > drivers/platform because the toplevel driver for MQ11xx is a 
> > platform_device driver.  Any thoughts on this?
> 
> drivers/platform sounds good to me.

We have some problems with ucb1x00 chip on some small systems;
originally we wanted it to go into drivers/misc, but that sounded
wrong. Latest idea was drivers/mfd (multi functional devices)...

								Pavel
-- 
teflon -- maybe it is a trademark, but it should not be.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-fbdev-devel] Re: Where is place of arch independed companion chips?
  2005-08-02 21:49     ` Richard Purdie
@ 2005-08-03  9:09       ` Andrey Volkov
  2005-08-08 21:09       ` Mark Underwood
  1 sibling, 0 replies; 10+ messages in thread
From: Andrey Volkov @ 2005-08-03  9:09 UTC (permalink / raw)
  To: linux-fbdev-devel
  Cc: Greg KH, Jamey Hicks, linux-kernel, rpurdie, tony.luck, edwardsg

Richard Purdie wrote:
> On Mon, 2005-08-01 at 11:13 -0700, Greg KH wrote:
> 
>>>Good question.  I was about to submit a patch that created 
>>>drivers/platform because the toplevel driver for MQ11xx is a 
>>>platform_device driver.  Any thoughts on this?
>>
>>drivers/platform sounds good to me.
> 
> 
> In another thread (about the ucb1x00) we came up with the idea of
> drivers/mfd (mfd = multi function devices).
> 
> The core and platform specific parts would live here with suitable clear
> naming and the subsection specific parts that were separable would live
> in the appropriate place within the kernel.
> 
> Just another idea to add to the mix and removes the dilemma of a
> multifunction device with isn't platform based...
> 
drivers/mfd as drivers/mfd, I have not objections. Who will send the
patch first?

--
Regards
Andrey Volkov

P.S. Tony, Greg, may be it will someone from you? (I've in mind sn/ subdir)






^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Where is place of arch independed companion chips?
  2005-08-02 21:49     ` Richard Purdie
  2005-08-03  9:09       ` [Linux-fbdev-devel] " Andrey Volkov
@ 2005-08-08 21:09       ` Mark Underwood
  1 sibling, 0 replies; 10+ messages in thread
From: Mark Underwood @ 2005-08-08 21:09 UTC (permalink / raw)
  To: Richard Purdie, Greg KH
  Cc: Jamey Hicks, Andrey Volkov, linux-fbdev-devel, linux-kernel


--- Richard Purdie <rpurdie@rpsys.net> wrote:

> On Mon, 2005-08-01 at 11:13 -0700, Greg KH wrote:
> > > Good question.  I was about to submit a patch
> that created 
> > > drivers/platform because the toplevel driver for
> MQ11xx is a 
> > > platform_device driver.  Any thoughts on this?
> > 
> > drivers/platform sounds good to me.
> 
> In another thread (about the ucb1x00) we came up
> with the idea of
> drivers/mfd (mfd = multi function devices).
> 
> The core and platform specific parts would live here
> with suitable clear
> naming and the subsection specific parts that were
> separable would live
> in the appropriate place within the kernel.
> 
> Just another idea to add to the mix and removes the
> dilemma of a
> multifunction device with isn't platform based...

This is where my sugguestion on the ucb1x00 comess in
(although it seems to have ot lost as I have had no
reply :-( ). To repeat myself:

I was thinking of something like driver/bus into which
we might also be able to put the I2C and LL3 buses.
The only problem is that this might leave some parts
of the multi function chip homeless (if they can't
find a home in other subsystems).

I need to do more homework ;-), but
I think we need a bus driver (I need to see what the
bus subsystem offers) (IP block specific,
platform and arch independent), a core driver to
register busses and clients, and client drivers.

Mark


> 
> Richard
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-08-08 21:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-30 11:52 Where is place of arch independed companion chips? Andrey Volkov
2005-07-31  4:40 ` [Linux-fbdev-devel] " Antonino A. Daplas
2005-07-31 12:21   ` Andrey Volkov
2005-08-01 12:29 ` Jamey Hicks
2005-08-01 18:13   ` Greg KH
2005-08-01 18:38     ` Andrey Volkov
2005-08-02 21:49     ` Richard Purdie
2005-08-03  9:09       ` [Linux-fbdev-devel] " Andrey Volkov
2005-08-08 21:09       ` Mark Underwood
2005-08-03  6:17     ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox