Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-14 Thread Octavian Purdila
On Tue, Oct 14, 2014 at 4:53 AM, Mark Roszko wrote: > > > If this limitations exists > >they are not introduced by this patch. This patch just exposes the > >frequency so that it can be read or changed in userspace. > > Ah, well right now you can have an i2c bus with driver 1 and 2. Say > the i2c

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-14 Thread Octavian Purdila
On Tue, Oct 14, 2014 at 4:53 AM, Mark Roszko mark.ros...@gmail.com wrote: If this limitations exists they are not introduced by this patch. This patch just exposes the frequency so that it can be read or changed in userspace. Ah, well right now you can have an i2c bus with driver 1 and 2.

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-13 Thread Mark Roszko
> If this limitations exists >they are not introduced by this patch. This patch just exposes the >frequency so that it can be read or changed in userspace. Ah, well right now you can have an i2c bus with driver 1 and 2. Say the i2c bus is configured for 60khz in kernel space which normally can't

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-13 Thread Octavian Purdila
On Sun, Oct 12, 2014 at 8:06 PM, Guenter Roeck wrote: > On Sun, Oct 12, 2014 at 12:32:56PM +0300, Octavian Purdila wrote: >> On Sat, Oct 11, 2014 at 11:14 PM, Mark Roszko wrote: >> >> > This seems limiting to arches with peripherals that can support a range of >> > frequencies rather than fixed

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-13 Thread Octavian Purdila
On Sun, Oct 12, 2014 at 8:06 PM, Guenter Roeck li...@roeck-us.net wrote: On Sun, Oct 12, 2014 at 12:32:56PM +0300, Octavian Purdila wrote: On Sat, Oct 11, 2014 at 11:14 PM, Mark Roszko mark.ros...@gmail.com wrote: This seems limiting to arches with peripherals that can support a range of

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-13 Thread Mark Roszko
If this limitations exists they are not introduced by this patch. This patch just exposes the frequency so that it can be read or changed in userspace. Ah, well right now you can have an i2c bus with driver 1 and 2. Say the i2c bus is configured for 60khz in kernel space which normally can't be

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-12 Thread Guenter Roeck
On Sun, Oct 12, 2014 at 12:32:56PM +0300, Octavian Purdila wrote: > On Sat, Oct 11, 2014 at 11:14 PM, Mark Roszko wrote: > > > This seems limiting to arches with peripherals that can support a range of > > frequencies rather than fixed numbers. > > Also it creates some portability quirkiness

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-12 Thread Octavian Purdila
On Sat, Oct 11, 2014 at 11:14 PM, Mark Roszko wrote: > This seems limiting to arches with peripherals that can support a range of > frequencies rather than fixed numbers. > Also it creates some portability quirkiness between platforms when all the > i2c bus drivers have different supported freq

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-12 Thread Octavian Purdila
On Sat, Oct 11, 2014 at 11:14 PM, Mark Roszko mark.ros...@gmail.com wrote: This seems limiting to arches with peripherals that can support a range of frequencies rather than fixed numbers. Also it creates some portability quirkiness between platforms when all the i2c bus drivers have

Re: [RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-12 Thread Guenter Roeck
On Sun, Oct 12, 2014 at 12:32:56PM +0300, Octavian Purdila wrote: On Sat, Oct 11, 2014 at 11:14 PM, Mark Roszko mark.ros...@gmail.com wrote: This seems limiting to arches with peripherals that can support a range of frequencies rather than fixed numbers. Also it creates some portability

[RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-09 Thread Octavian Purdila
This patch adds two new sysfs files, bus_frequency and bus_supported_frequencies which allows the user to view or change the bus frequency on a per bus level. This is required for e.g. USB I2C buses where we can have multiple device plugged in a system and where a module parameter does not allow

[RFC PATCH 3/3] i2c: show and change bus frequency via sysfs

2014-10-09 Thread Octavian Purdila
This patch adds two new sysfs files, bus_frequency and bus_supported_frequencies which allows the user to view or change the bus frequency on a per bus level. This is required for e.g. USB I2C buses where we can have multiple device plugged in a system and where a module parameter does not allow