Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-22 Thread Greg Kroah-Hartman
On Tue, Oct 22, 2013 at 11:19:30AM -0700, Bin Gao wrote: > On Tue, Oct 22, 2013 at 06:44:06AM +0100, Greg Kroah-Hartman wrote: > > So, just because userspace is "hard" you want to add stuff to the kernel > > instead. > > > Well, there are other reasons - "hard" is just one of them. > For instance,

Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-22 Thread Greg Kroah-Hartman
On Tue, Oct 22, 2013 at 11:50:04AM -0700, Bin Gao wrote: > On Tue, Oct 22, 2013 at 10:14:00AM -0700, Guenter Roeck wrote: > > > > > > You can already do this today for PCI with the UIO framework, right? > > > Why duplicate that functionality here with another userapce API that we > > > will then h

Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-22 Thread Bin Gao
On Tue, Oct 22, 2013 at 10:14:00AM -0700, Guenter Roeck wrote: > > > > You can already do this today for PCI with the UIO framework, right? > > Why duplicate that functionality here with another userapce API that we > > will then have to maintain for the next 40+ years? > > > Same for i2c, where

Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-22 Thread Bin Gao
On Tue, Oct 22, 2013 at 06:44:06AM +0100, Greg Kroah-Hartman wrote: > So, just because userspace is "hard" you want to add stuff to the kernel > instead. > Well, there are other reasons - "hard" is just one of them. For instance, on some platforms with runtime pm enabled, access to registers of a

Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-22 Thread Guenter Roeck
On Tue, Oct 22, 2013 at 06:44:06AM +0100, Greg Kroah-Hartman wrote: > On Mon, Oct 21, 2013 at 05:03:17PM -0700, Bin Gao wrote: > > To read/write registers from a device is very important on embedded system, > > especially SoC systems. Physically there could be different types of devices > > based o

Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-21 Thread Greg Kroah-Hartman
On Mon, Oct 21, 2013 at 05:03:17PM -0700, Bin Gao wrote: > To read/write registers from a device is very important on embedded system, > especially SoC systems. Physically there could be different types of devices > based on bus tyes, e.g. PCI devices, I2C (slave)devices, I/O devices(memory > mappe

[PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-21 Thread Bin Gao
To read/write registers from a device is very important on embedded system, especially SoC systems. Physically there could be different types of devices based on bus tyes, e.g. PCI devices, I2C (slave)devices, I/O devices(memory mapped), inter-processor devices, etc. Typically there are userland to