Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-23 Thread Peter Rosin
On 2018-03-23 12:00, Boris Brezillon wrote: > From: Boris Brezillon > > A new I3C subsystem has been added and a generic description has been > created to represent the I3C bus and the devices connected on it. > > Document this generic representation. > >

Re: [PATCH v2 0/2] mux: add overview and add to driver-api docs

2018-03-02 Thread Peter Rosin
On 2017-12-21 23:11, Peter Rosin wrote: > On 2017-12-21 22:35, Jonathan Corbet wrote: >> On Tue, 12 Dec 2017 09:46:31 +0100 >> Peter Rosin <p...@axentia.se> wrote: >> >>> Changes since v1: >>> - added a short introductory paragraph to mux.rst >>

Re: [PATCH v2 0/2] mux: add overview and add to driver-api docs

2017-12-21 Thread Peter Rosin
On 2017-12-21 22:35, Jonathan Corbet wrote: > On Tue, 12 Dec 2017 09:46:31 +0100 > Peter Rosin <p...@axentia.se> wrote: > >> Changes since v1: >> - added a short introductory paragraph to mux.rst >> - added an entry in MAINTAINERS. >> >> I forgot to m

Re: [PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2017-12-14 Thread Peter Rosin
On 2017-12-14 16:16, Boris Brezillon wrote: > +Optional properties > +--- > +- reg: static address. Only valid is the device has a static address. > +- i3c-dynamic-address: dynamic address to be assigned to this device. This > +property depends on the reg

[PATCH v2 2/2] docs: add mux docs to the driver-api docs

2017-12-12 Thread Peter Rosin
Include both the overview and the more detailed api docs. Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-api/index.rst | 1 + Documentation/driver-api/mux.rst | 25 + MAINTAINERS| 1 + 3 files changed, 27 inse

[PATCH v2 0/2] mux: add overview and add to driver-api docs

2017-12-12 Thread Peter Rosin
Hi! Changes since v1: - added a short introductory paragraph to mux.rst - added an entry in MAINTAINERS. I forgot to mention that this applies on top of linux-next, I suspect there will be a trivial conflict with an SPDX conversion in mux/core.c on Linus upstream. Cheers, Peter Peter Rosin (2

[PATCH v2 1/2] mux: core: add a brief overview of the subsystem

2017-12-12 Thread Peter Rosin
Preparation for adding the mux subsystem to the driver-api documenation. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/core.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/mux/core.c b/drivers/mux/core.c index d1271c

[PATCH 1/2] mux: core: add a brief overview of the subsystem

2017-12-11 Thread Peter Rosin
Preparation for adding the mux subsystem to the driver-api documenation. Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/core.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/mux/core.c b/drivers/mux/core.c index d1271c

[PATCH 0/2] mux: add overview and add to driver-api docs

2017-12-11 Thread Peter Rosin
Hi! Don't know if this is worth adding, but it might answer at least a few questions. It looks ok when I view the htmldocs output, but I'm not all that certain this is good to go? Cheers, Peter Peter Rosin (2): mux: core: add a brief overview of the subsystem docs: add mux docs

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-07-31 Thread Peter Rosin
On 2017-07-31 23:15, Boris Brezillon wrote: > [1]https://www.mipi.org/MIPI_I3C_device_characteristics_register Stupid non-programmers... This part 65 41 0101 Accelerometer 66 42 0110 Gyroscope 67 43 0111 Magnetometer 68 44 01000100 Accel/Gyro Combo 69 45 01000101 Accel/Mag

Re: [PATCH v15 00/13] mux controller abstraction and iio/i2c muxes

2017-06-03 Thread Peter Rosin
On 2017-06-03 12:31, Greg Kroah-Hartman wrote: > On Sat, Jun 03, 2017 at 07:26:27PM +0900, Greg Kroah-Hartman wrote: >> On Sun, May 14, 2017 at 09:51:03PM +0200, Peter Rosin wrote: >>> From: Peter Rosin <p...@axentia.se> >>> >>> Hi Greg, >>> &

Re: [PATCH v15 00/13] mux controller abstraction and iio/i2c muxes

2017-06-03 Thread Peter Rosin
>> <gre...@linuxfoundation.org> wrote: >>>> On Sun, May 14, 2017 at 09:51:03PM +0200, Peter Rosin wrote: >>>>> From: Peter Rosin <p...@axentia.se> >>>>> >>>>> Hi Greg, >>>>> >>>>> Philipp foun

[PATCH v15 09/13] i2c: i2c-mux-gpmux: new driver

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> This is a general purpose i2c mux that uses a multiplexer controlled by the multiplexer subsystem to do the muxing. The user can select if the mux is to be mux-locked and parent-locked as described in Documentation/i2c/i2c-topology. Acked-by: Jonathan C

[PATCH v15 06/13] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../bin

[PATCH v15 03/13] mux: minimal mux subsystem

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Add a new minimalistic subsystem that handles multiplexer controllers. When multiplexers are used in various places in the kernel, and the same multiplexer controller can be used for several independent things, there should be one place to implement s

[PATCH v15 04/13] mux: gpio: add mux controller driver for gpio based multiplexers

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> The driver builds a single multiplexer controller using a number of gpio pins. For N pins, there will be 2^N possible multiplexer states. The GPIO pins can be connected (by the hardware) to several multiplexers, which in that case will be operated in pa

[PATCH v15 11/13] mux: adg792a: add mux controller driver for ADG792A/G

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/m

[PATCH v15 00/13] mux controller abstraction and iio/i2c muxes

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Hi Greg, Philipp found problems in v14 with using a mutex for locking that was the outcome of the review for v13, so I'm now using a semaphore instead of the rwsem that was in v13. That at least got rid of the scary call to downgrade_write. However, I'm

[PATCH v15 08/13] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicet

[PATCH v15 12/13] dt-bindings: add mmio-based syscon mux controller DT bindings

2017-05-14 Thread Peter Rosin
From: Philipp Zabel <p.za...@pengutronix.de> This adds device tree binding documentation for mmio-based syscon multiplexers controlled by a bitfields in a syscon register range. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Acked-by: Rob Herring <r...@kernel.org> Si

[PATCH v15 07/13] iio: multiplexer: new iio category and iio-mux driver

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ex

[PATCH v15 05/13] iio: inkern: api for manipulating ext_info of iio channels

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/iio/ink

[PATCH v15 10/13] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/mux/adi

[PATCH v15 13/13] mux: mmio-based syscon mux controller

2017-05-14 Thread Peter Rosin
From: Philipp Zabel <p.za...@pengutronix.de> This adds a driver for mmio-based syscon multiplexers controlled by bitfields in a syscon register range. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mu

[PATCH v15 02/13] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Allow specifying that a single multiplexer controller can be used to control several parallel multiplexers, thus enabling sharing of the multiplexer controller by different consumers. Add a binding for a first mux controller in the form of a GPIO bas

[PATCH v15 01/13] devres: trivial whitespace fix

2017-05-14 Thread Peter Rosin
From: Peter Rosin <p...@axentia.se> Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insert

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-05-05 Thread Peter Rosin
On 2017-04-18 12:59, Peter Rosin wrote: > On 2017-04-18 10:51, Greg Kroah-Hartman wrote: >> On Thu, Apr 13, 2017 at 06:43:07PM +0200, Peter Rosin wrote: >>> +/** >>> + * devm_mux_chip_unregister() - Resource-managed version >>> mux_chip_unregister(). >

Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes

2017-04-25 Thread Peter Rosin
On 2017-04-25 16:16, Peter Rosin wrote: > On 2017-04-24 16:59, Philipp Zabel wrote: >> On Mon, 2017-04-24 at 16:36 +0200, Peter Rosin wrote: >> [...] >>>> How about an atomic use_count on the mux_control, a bool shared that is >>>> only set by the first c

Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes

2017-04-25 Thread Peter Rosin
On 2017-04-24 16:59, Philipp Zabel wrote: > On Mon, 2017-04-24 at 16:36 +0200, Peter Rosin wrote: > [...] >>> How about an atomic use_count on the mux_control, a bool shared that is >>> only set by the first consumer, and controls whether selecting locks? >

Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes

2017-04-24 Thread Peter Rosin
On 2017-04-24 16:10, Philipp Zabel wrote: > On Mon, 2017-04-24 at 13:37 +0200, Peter Rosin wrote: >> On 2017-04-24 12:52, Philipp Zabel wrote: >>> On Mon, 2017-04-24 at 10:36 +0200, Peter Rosin wrote: >>>> Hi! >>>> >>>> The big change sinc

Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes

2017-04-24 Thread Peter Rosin
On 2017-04-24 12:52, Philipp Zabel wrote: > On Mon, 2017-04-24 at 10:36 +0200, Peter Rosin wrote: >> Hi! >> >> The big change since v13 is that the mux state is now locked with a mutex >> instead of an rwsem. Other that that, it is mostly restructuring and doc >&g

[PATCH v14 06/11] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-04-24 Thread Peter Rosin
Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../bindings/iio/multiplexer/io-chann

[PATCH v14 08/11] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-04-24 Thread Peter Rosin
Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/i2c/i2c-mux-g

[PATCH v14 10/11] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-04-24 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file chan

[PATCH v14 09/11] i2c: i2c-mux-gpmux: new driver

2017-04-24 Thread Peter Rosin
olfram Sang <w...@the-dreams.de> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/i2c/muxes/Kconfig | 13 +++ drivers/i2c/muxes/Makefile| 1 + drivers/i2c/muxes/i2c-mux-gpmux.c | 173 ++ 3 files changed, 187 insertions(+)

[PATCH v14 11/11] mux: adg792a: add mux controller driver for ADG792A/G

2017-04-24 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg

[PATCH v14 07/11] iio: multiplexer: new iio category and iio-mux driver

2017-04-24 Thread Peter Rosin
, creating a private copy of the ext_info attributes for each multiplexer state/channel. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- MAINTAINERS | 1 + drivers/iio/Kconfig | 1 + drivers/

[PATCH v14 05/11] iio: inkern: api for manipulating ext_info of iio channels

2017-04-24 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/iio/inkern.c | 60 include/linux/iio/con

[PATCH v14 04/11] mux: gpio: add mux controller driver for gpio based multiplexers

2017-04-24 Thread Peter Rosin
;ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig| 18 drivers/mux/Makefile | 1 + drivers/mux/mux-gpio.c | 114 + 3 files changed, 133 insertions(+) create mode 100644 drivers/mux/mux-

[PATCH v14 03/11] mux: minimal mux subsystem

2017-04-24 Thread Peter Rosin
Cameron, Rob Herring, Wolfram Sang, Paul Gortmaker, Dan Carpenter, Colin Ian King, Greg Kroah-Hartman and last but certainly not least to Philipp Zabel for helpful comments, reviews, patches and general encouragement! Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Ro

[PATCH v14 01/11] devres: trivial whitespace fix

2017-04-24 Thread Peter Rosin
Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/

[PATCH v14 00/11] mux controller abstraction and iio/i2c muxes

2017-04-24 Thread Peter Rosin
se - cleanup the probe of i2c-mux-simple driver - fix a bug in the i2c-mux-simple driver, where failure in the selection of the mux caused a deadlock when the mux was later unconditionally deselected. v1: https://lkml.org/lkml/2016/11/16/812 Cheers, peda Peter Rosin (11): devres: trivial

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-21 Thread Peter Rosin
On 2017-04-20 23:53, Peter Rosin wrote: > On 2017-04-18 23:53, Peter Rosin wrote: >> On 2017-04-18 13:44, Greg Kroah-Hartman wrote: >>> On Tue, Apr 18, 2017 at 12:59:50PM +0200, Peter Rosin wrote: >>>> On 2017-04-18 10:51, Greg Kroah-Hartman wrote: >>>>

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-21 Thread Peter Rosin
On 2017-04-21 16:41, Philipp Zabel wrote: > On Fri, 2017-04-21 at 16:32 +0200, Peter Rosin wrote: >> On 2017-04-21 16:23, Philipp Zabel wrote: >>> On Thu, 2017-04-13 at 18:43 +0200, Peter Rosin wrote: >>> [...] >>>> +int mux_chip_register(struct mu

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-21 Thread Peter Rosin
On 2017-04-21 16:18, Philipp Zabel wrote: > Hi Peter, > > On Thu, 2017-04-13 at 18:43 +0200, Peter Rosin wrote: > [...] >> +int mux_control_select(struct mux_control *mux, int state) > > state could be unsigned int for the consumer facing API.

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-20 Thread Peter Rosin
On 2017-04-18 23:53, Peter Rosin wrote: > On 2017-04-18 13:44, Greg Kroah-Hartman wrote: >> On Tue, Apr 18, 2017 at 12:59:50PM +0200, Peter Rosin wrote: >>> On 2017-04-18 10:51, Greg Kroah-Hartman wrote: >>>> On Thu, Apr 13, 2017 at 06:43:07PM +0200, Peter Rosin w

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-19 Thread Peter Rosin
On 2017-04-19 15:49, Philipp Zabel wrote: > On Wed, 2017-04-19 at 14:00 +0200, Peter Rosin wrote: > [...] >>>> +int mux_control_select(struct mux_control *mux, int state) >>> >>> If we let two of these race, ... >> >> The window for this "

Re: [PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-19 Thread Peter Rosin
On 2017-04-19 13:05, Philipp Zabel wrote: > On Wed, 2017-04-19 at 12:41 +0200, Peter Rosin wrote: >> On 2017-04-19 11:17, Philipp Zabel wrote: >>> On Tue, 2017-04-18 at 15:36 +0200, Peter Rosin wrote: >>>> If I got things wrong when I skimmed whatever I came across,

Re: [PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-19 Thread Peter Rosin
On 2017-04-19 11:17, Philipp Zabel wrote: > On Tue, 2017-04-18 at 15:36 +0200, Peter Rosin wrote: >> If I got things wrong when I skimmed whatever I came across, and if the >> mmio register is the only mux control option in the stars, it becomes >> less obvious... It's of

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-18 Thread Peter Rosin
On 2017-04-18 13:44, Greg Kroah-Hartman wrote: > On Tue, Apr 18, 2017 at 12:59:50PM +0200, Peter Rosin wrote: >> On 2017-04-18 10:51, Greg Kroah-Hartman wrote: >>> On Thu, Apr 13, 2017 at 06:43:07PM +0200, Peter Rosin wrote: >>>> +config MUX_GPIO >>>>

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-18 Thread Peter Rosin
On 2017-04-18 10:51, Greg Kroah-Hartman wrote: > On Thu, Apr 13, 2017 at 06:43:07PM +0200, Peter Rosin wrote: >> +config MUX_GPIO >> +tristate "GPIO-controlled Multiplexer" >> +depends on OF && GPIOLIB > > Why have the gpio and mux core in the

[PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-13 Thread Peter Rosin
<ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/devicetree/bindings/mux/gpio-mux.txt | 69 + .../devicetree/bindings/mux/mux-controller.txt | 157

[PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-13 Thread Peter Rosin
comes with a single backend driver that controls gpio based multiplexers. Even though not needed by this initial driver, the mux controller subsystem is prepared to handle chips with multiple (independent) mux controllers. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Ro

[PATCH v13 08/10] i2c: i2c-mux-gpmux: new driver

2017-04-13 Thread Peter Rosin
olfram Sang <w...@the-dreams.de> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/i2c/muxes/Kconfig | 13 +++ drivers/i2c/muxes/Makefile| 1 + drivers/i2c/muxes/i2c-mux-gpmux.c | 173 ++ 3 files changed, 187 insertions(+)

[PATCH v13 06/10] iio: multiplexer: new iio category and iio-mux driver

2017-04-13 Thread Peter Rosin
, creating a private copy of the ext_info attributes for each multiplexer state/channel. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- MAINTAINERS | 1 + drivers/iio/Kconfig | 1 + drivers/

[PATCH v13 10/10] mux: adg792a: add mux controller driver for ADG792A/G

2017-04-13 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg

[PATCH v13 05/10] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-04-13 Thread Peter Rosin
Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../bindings/iio/multiplexer/io-chann

[PATCH v13 09/10] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-04-13 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file chan

[PATCH v13 07/10] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-04-13 Thread Peter Rosin
Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/i2c/i2c-mux-g

[PATCH v13 01/10] devres: trivial whitespace fix

2017-04-13 Thread Peter Rosin
Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/

[PATCH v13 00/10] mux controller abstraction and iio/i2c muxes

2017-04-13 Thread Peter Rosin
s tiny bit of code is probably not good enough to be a nice fit for all... Cheers, peda Peter Rosin (10): devres: trivial whitespace fix dt-bindings: document devicetree bindings for mux-controllers and gpio-mux mux: minimal mux subsystem and gpio-based mux controller iio: inkern: api f

Re: [PATCH v12 00/10] mux controller abstraction and iio/i2c muxes

2017-03-30 Thread Peter Rosin
On 2017-03-27 16:21, Peter Rosin wrote: > Hi Greg! > > Please apply. > *snip snip* > v10 -> v11 changes > - added a new patch (12) with a fix for messed up error path reported > by Paul Gortmaker. Oops, should be Dan Carpenter. Sorry about that... And, I forgot t

[PATCH v12 06/10] iio: multiplexer: new iio category and iio-mux driver

2017-03-27 Thread Peter Rosin
, creating a private copy of the ext_info attributes for each multiplexer state/channel. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- MAINTAINERS | 1 + drivers/iio/Kconfig | 1 + drivers/

[PATCH v12 01/10] devres: trivial whitespace fix

2017-03-27 Thread Peter Rosin
Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/

[PATCH v12 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-03-27 Thread Peter Rosin
<ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/devicetree/bindings/mux/gpio-mux.txt | 69 + .../devicetree/bindings/mux/mux-controller.txt | 157

[PATCH v12 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-03-27 Thread Peter Rosin
comes with a single backend driver that controls gpio based multiplexers. Even though not needed by this initial driver, the mux controller subsystem is prepared to handle chips with multiple (independent) mux controllers. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Ro

[PATCH v12 04/10] iio: inkern: api for manipulating ext_info of iio channels

2017-03-27 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/iio/inkern.c | 60 include/linux/iio/con

[PATCH v12 07/10] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-03-27 Thread Peter Rosin
Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/i2c/i2c-mux-g

[PATCH v12 05/10] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-03-27 Thread Peter Rosin
Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../bindings/iio/multiplexer/io-chann

[PATCH v12 10/10] mux: adg792a: add mux controller driver for ADG792A/G

2017-03-27 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg

[PATCH v12 08/10] i2c: i2c-mux-gpmux: new driver

2017-03-27 Thread Peter Rosin
olfram Sang <w...@the-dreams.de> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/i2c/muxes/Kconfig | 13 +++ drivers/i2c/muxes/Makefile| 1 + drivers/i2c/muxes/i2c-mux-gpmux.c | 173 ++ 3 files changed, 187 insertions(+)

[PATCH v12 09/10] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-03-27 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file chan

[PATCH v12 00/10] mux controller abstraction and iio/i2c muxes

2017-03-27 Thread Peter Rosin
ode is probably not good enough to be a nice fit for all... Cheers, peda Peter Rosin (10): devres: trivial whitespace fix dt-bindings: document devicetree bindings for mux-controllers and gpio-mux mux: minimal mux subsystem and gpio-based mux controller iio: inkern: api for manipulating ext

Re: [PATCH v11 11/12] iio: multiplexer: fix unsigned check with less than zero

2017-03-27 Thread Peter Rosin
On 2017-03-27 15:06, Johan Hovold wrote: > On Mon, Mar 27, 2017 at 02:17:48PM +0200, Peter Rosin wrote: >> Comparing a size_t with less than zero is always false as size_t >> is unsigned. So, change the type of the variable to ssize_t and >> replicate the size check from

[PATCH v11 08/12] i2c: i2c-mux-gpmux: new driver

2017-03-27 Thread Peter Rosin
olfram Sang <w...@the-dreams.de> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/i2c/muxes/Kconfig | 13 +++ drivers/i2c/muxes/Makefile| 1 + drivers/i2c/muxes/i2c-mux-gpmux.c | 173 ++ 3 files changed, 187 insertions(+)

[PATCH v11 12/12] mux: core: fix error handling in devm_mux_chip_alloc

2017-03-27 Thread Peter Rosin
to documentation. Fixes: d47598cc669b ("mux: minimal mux subsystem and gpio-based mux controller") Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/mux-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

[PATCH v11 04/12] iio: inkern: api for manipulating ext_info of iio channels

2017-03-27 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/iio/inkern.c | 60 include/linux/iio/con

[PATCH v11 10/12] mux: adg792a: add mux controller driver for ADG792A/G

2017-03-27 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg

[PATCH v11 11/12] iio: multiplexer: fix unsigned check with less than zero

2017-03-27 Thread Peter Rosin
, CID#1415278 ("Unsigned compared against 0") Fixes: 1da8e16d2812 ("iio: multiplexer: new iio category and iio-mux driver") Reported-by: Colin Ian King <colin.k...@canonical.com> Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axent

[PATCH v11 09/12] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-03-27 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file chan

[PATCH v11 05/12] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-03-27 Thread Peter Rosin
Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../bindings/iio/multiplexer/io-chann

[PATCH v11 02/12] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-03-27 Thread Peter Rosin
<ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/devicetree/bindings/mux/gpio-mux.txt | 69 + .../devicetree/bindings/mux/mux-controller.txt | 157

[PATCH v11 06/12] iio: multiplexer: new iio category and iio-mux driver

2017-03-27 Thread Peter Rosin
, creating a private copy of the ext_info attributes for each multiplexer state/channel. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- MAINTAINERS | 1 + drivers/iio/Kconfig | 1 + drivers/

[PATCH v11 07/12] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-03-27 Thread Peter Rosin
Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/i2c/i2c-mux-g

[PATCH v11 03/12] mux: minimal mux subsystem and gpio-based mux controller

2017-03-27 Thread Peter Rosin
comes with a single backend driver that controls gpio based multiplexers. Even though not needed by this initial driver, the mux controller subsystem is prepared to handle chips with multiple (independent) mux controllers. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Ro

[PATCH v11 01/12] devres: trivial whitespace fix

2017-03-27 Thread Peter Rosin
Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/

[PATCH v11 00/12] mux controller abstraction and iio/i2c muxes

2017-03-27 Thread Peter Rosin
as all users agree on the mux state, but I suspect that the rwsem will degrade to the mutex situation pretty quickly if there is any contention. Also, the "mux" name feels a bit ambitious, there are many muxes in the world, and this tiny bit of code is probably not good enough to be a nice fit

Re: [PATCH v10 03/11] mux: minimal mux subsystem and gpio-based mux controller

2017-03-15 Thread Peter Rosin
On 2017-03-10 12:09, Peter Rosin wrote: > Add a new minimalistic subsystem that handles multiplexer controllers. > When multiplexers are used in various places in the kernel, and the > same multiplexer controller can be used for several independent things, > there should be one place

[PATCH v10 03/11] mux: minimal mux subsystem and gpio-based mux controller

2017-03-10 Thread Peter Rosin
comes with a single backend driver that controls gpio based multiplexers. Even though not needed by this initial driver, the mux controller subsystem is prepared to handle chips with multiple (independent) mux controllers. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Ro

[PATCH v10 05/11] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-03-10 Thread Peter Rosin
Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../bindings/iio/multiplexer/io-chann

[PATCH v10 10/11] mux: adg792a: add mux controller driver for ADG792A/G

2017-03-10 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg

[PATCH v10 09/11] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-03-10 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file chan

[PATCH v10 07/11] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-03-10 Thread Peter Rosin
Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron <ji...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- .../devicetree/bindings/i2c/i2c-mux-g

[PATCH v10 04/11] iio: inkern: api for manipulating ext_info of iio channels

2017-03-10 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/iio/inkern.c | 60 include/linux/iio/con

[PATCH v10 08/11] i2c: i2c-mux-gpmux: new driver

2017-03-10 Thread Peter Rosin
olfram Sang <w...@the-dreams.de> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/i2c/muxes/Kconfig | 13 +++ drivers/i2c/muxes/Makefile| 1 + drivers/i2c/muxes/i2c-mux-gpmux.c | 173 ++ 3 files changed, 187 insertions(+)

[PATCH v10 06/11] iio: multiplexer: new iio category and iio-mux driver

2017-03-10 Thread Peter Rosin
, creating a private copy of the ext_info attributes for each multiplexer state/channel. Reviewed-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- MAINTAINERS | 1 + drivers/iio/Kconfig | 1 + drivers/

[PATCH v10 11/11] iio: multiplexer: fix unsigned check with less than zero

2017-03-10 Thread Peter Rosin
, CID#1415278 ("Unsigned compared against 0") Reported-by: Colin Ian King <colin.k...@canonical.com> Signed-off-by: Peter Rosin <p...@axentia.se> --- drivers/iio/multiplexer/iio-mux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iio/multiplexe

[PATCH v10 00/11] mux controller abstraction and iio/i2c muxes

2017-03-10 Thread Peter Rosin
this tiny bit of code is probably not good enough to be a nice fit for all... Cheers, peda Peter Rosin (11): devres: trivial whitespace fix dt-bindings: document devicetree bindings for mux-controllers and gpio-mux mux: minimal mux subsystem and gpio-based mux controller iio: inkern: api for m

[PATCH v10 02/11] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-03-10 Thread Peter Rosin
<ji...@kernel.org> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/devicetree/bindings/mux/gpio-mux.txt | 69 + .../devicetree/bindings/mux/mux-controller.txt | 157

[PATCH v10 01/11] devres: trivial whitespace fix

2017-03-10 Thread Peter Rosin
Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron <ji...@kernel.org> Signed-off-by: Peter Rosin <p...@axentia.se> --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/

  1   2   3   >