Re: [alsa-devel] [PATCH v2 2/3] ECI: introducing ECI bus driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Ujfalusi
Date: Monday, January 3, 2011 - 1:42 am

Hi,

On 12/30/10 15:36, ext tapio.vihuri@nokia.com wrote:

It is kind of misleading to call this driver as a bus driver IMHO.
For what I gathered, this is a driver for a micro-controller, which
implements the ECI communication.
This could be a generic driver for the micro-controller, but two lines
makes it x86 specific...

...


...


What happens if the mc is on another bus?
Shall you have platform data for this?
Or even better, use i2c device/driver probing for this driver?


Is this some sort of power enable for the controller itself?
If it is, why not use a callback from the platform to enable/disable the
power, so the driver will be platform independent, and you do this intel
specific thing in arch/ platform code.
If this is not related to the mc itself, then this shall not be part of
this driver.

...


Same applies here for the intel dependency.

-- 
Péter
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v2 2/3] ECI: introducing ECI bus driver, tapio.vihuri, (Thu Dec 30, 6:36 am)
[PATCH v2 3/3] ECI: adding platform data for ECI driver, tapio.vihuri, (Thu Dec 30, 6:36 am)
Re: [alsa-devel] [PATCH v2 2/3] ECI: introducing ECI bus d ..., Peter Ujfalusi, (Mon Jan 3, 1:42 am)