Re: [PATCH v9 2/7] i2c: Add FSI-attached I2C master algorithm

2018-06-04 Thread Eddie James
On 06/04/2018 02:21 PM, Andy Shevchenko wrote: On Mon, Jun 4, 2018 at 10:00 PM, Eddie James wrote: Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off

Re: [PATCH v9 3/7] i2c: fsi: Add port structures

2018-06-04 Thread Eddie James
On 06/04/2018 02:17 PM, Andy Shevchenko wrote: On Mon, Jun 4, 2018 at 10:00 PM, Eddie James wrote: Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c

Re: [PATCH v9 3/7] i2c: fsi: Add port structures

2018-06-04 Thread Eddie James
On 06/04/2018 02:17 PM, Andy Shevchenko wrote: On Mon, Jun 4, 2018 at 10:00 PM, Eddie James wrote: Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c

Re: [PATCH v9 5/7] i2c: fsi: Add transfer implementation

2018-06-04 Thread Eddie James
On 06/04/2018 02:14 PM, Andy Shevchenko wrote: On Mon, Jun 4, 2018 at 10:00 PM, Eddie James wrote: Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c

Re: [PATCH v9 5/7] i2c: fsi: Add transfer implementation

2018-06-04 Thread Eddie James
On 06/04/2018 02:14 PM, Andy Shevchenko wrote: On Mon, Jun 4, 2018 at 10:00 PM, Eddie James wrote: Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c

[PATCH v9 2/7] i2c: Add FSI-attached I2C master algorithm

2018-06-04 Thread Eddie James
Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Eddie James --- drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c

[PATCH v9 2/7] i2c: Add FSI-attached I2C master algorithm

2018-06-04 Thread Eddie James
Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Eddie James --- drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c

[PATCH v9 5/7] i2c: fsi: Add transfer implementation

2018-06-04 Thread Eddie James
Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 195 ++- 1 file changed, 193 insertions(+), 2 deletions(-) diff

[PATCH v9 5/7] i2c: fsi: Add transfer implementation

2018-06-04 Thread Eddie James
Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 195 ++- 1 file changed, 193 insertions(+), 2 deletions(-) diff

[PATCH v9 4/7] i2c: fsi: Add abort and hardware reset procedures

2018-06-04 Thread Eddie James
Add abort procedure for failed transfers. Add engine and bus reset procedures to recover from as many faults as possible. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 179 +++ 1 file changed, 179 insertions(+) diff --git a/drivers/i2c

[PATCH v9 4/7] i2c: fsi: Add abort and hardware reset procedures

2018-06-04 Thread Eddie James
Add abort procedure for failed transfers. Add engine and bus reset procedures to recover from as many faults as possible. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 179 +++ 1 file changed, 179 insertions(+) diff --git a/drivers/i2c

[PATCH v9 1/7] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-06-04 Thread Eddie James
Document the bindings. Signed-off-by: Eddie James Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff --git a/Documentation

[PATCH v9 1/7] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-06-04 Thread Eddie James
Document the bindings. Signed-off-by: Eddie James Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff --git a/Documentation

[PATCH v9 3/7] i2c: fsi: Add port structures

2018-06-04 Thread Eddie James
Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 90 1 file changed, 90 insertions(+) diff --git

[PATCH v9 3/7] i2c: fsi: Add port structures

2018-06-04 Thread Eddie James
Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 90 1 file changed, 90 insertions(+) diff --git

[PATCH v9 7/7] i2c: fsi: Add bus recovery

2018-06-04 Thread Eddie James
Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index

[PATCH v9 7/7] i2c: fsi: Add bus recovery

2018-06-04 Thread Eddie James
Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index

[PATCH v9 6/7] i2c: fsi: Add I2C master locking

2018-06-04 Thread Eddie James
Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 16 1 file changed, 12

[PATCH v9 6/7] i2c: fsi: Add I2C master locking

2018-06-04 Thread Eddie James
Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 16 1 file changed, 12

[PATCH v9 0/7] i2c: Add FSI-attached I2C master algorithm

2018-06-04 Thread Eddie James
leeps instead of schedule_timeout; it's not worth the overhead when the wait should be very short in between sending the command and receiving the response. Changes since v5 - Fix reset functionality and do a reset after every transfer failure Eddie James (7): dt-bindings: i2c: Add FSI-attached

[PATCH v9 0/7] i2c: Add FSI-attached I2C master algorithm

2018-06-04 Thread Eddie James
leeps instead of schedule_timeout; it's not worth the overhead when the wait should be very short in between sending the command and receiving the response. Changes since v5 - Fix reset functionality and do a reset after every transfer failure Eddie James (7): dt-bindings: i2c: Add FSI-attached

Re: [PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-31 Thread Eddie James
On 05/30/2018 04:16 PM, Benjamin Herrenschmidt wrote: On Wed, 2018-05-30 at 10:47 -0500, Eddie James wrote: + if (!list_empty(>ports)) { My gosh, this is done already in list_for_each*() No, list_for_each_entry does NOT check if the list is empty or if the first entry is NULL. N

Re: [PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-31 Thread Eddie James
On 05/30/2018 04:16 PM, Benjamin Herrenschmidt wrote: On Wed, 2018-05-30 at 10:47 -0500, Eddie James wrote: + if (!list_empty(>ports)) { My gosh, this is done already in list_for_each*() No, list_for_each_entry does NOT check if the list is empty or if the first entry is NULL. N

[PATCH v8 4/7] i2c: fsi: Add abort and hardware reset procedures

2018-05-30 Thread Eddie James
Add abort procedure for failed transfers. Add engine and bus reset procedures to recover from as many faults as possible. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 179 +++ 1 file changed, 179 insertions(+) diff --git a/drivers/i2c

[PATCH v8 4/7] i2c: fsi: Add abort and hardware reset procedures

2018-05-30 Thread Eddie James
Add abort procedure for failed transfers. Add engine and bus reset procedures to recover from as many faults as possible. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 179 +++ 1 file changed, 179 insertions(+) diff --git a/drivers/i2c

[PATCH v8 3/7] i2c: fsi: Add port structures

2018-05-30 Thread Eddie James
Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 90 1 file changed, 90 insertions(+) diff --git

[PATCH v8 3/7] i2c: fsi: Add port structures

2018-05-30 Thread Eddie James
Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 90 1 file changed, 90 insertions(+) diff --git

[PATCH v8 1/7] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-05-30 Thread Eddie James
Document the bindings. Signed-off-by: Eddie James > Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff --git a/Documentat

[PATCH v8 1/7] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-05-30 Thread Eddie James
Document the bindings. Signed-off-by: Eddie James > Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff --git a/Documentat

[PATCH v8 6/7] i2c: fsi: Add I2C master locking

2018-05-30 Thread Eddie James
Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 16 1 file changed, 12

[PATCH v8 0/7] i2c: Add FSI-attached I2C master algorithm

2018-05-30 Thread Eddie James
nality and do a reset after every transfer failure Eddie James (7): dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation i2c: Add FSI-attached I2C master algorithm i2c: fsi: Add port structures i2c: fsi: Add abort and hardware reset procedures i2c: fsi: Add transfer impleme

[PATCH v8 2/7] i2c: Add FSI-attached I2C master algorithm

2018-05-30 Thread Eddie James
Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Eddie James --- drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c

[PATCH v8 5/7] i2c: fsi: Add transfer implementation

2018-05-30 Thread Eddie James
Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 196 ++- 1 file changed, 194 insertions(+), 2 deletions(-) diff

[PATCH v8 6/7] i2c: fsi: Add I2C master locking

2018-05-30 Thread Eddie James
Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 16 1 file changed, 12

[PATCH v8 0/7] i2c: Add FSI-attached I2C master algorithm

2018-05-30 Thread Eddie James
nality and do a reset after every transfer failure Eddie James (7): dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation i2c: Add FSI-attached I2C master algorithm i2c: fsi: Add port structures i2c: fsi: Add abort and hardware reset procedures i2c: fsi: Add transfer impleme

[PATCH v8 2/7] i2c: Add FSI-attached I2C master algorithm

2018-05-30 Thread Eddie James
Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Eddie James --- drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c

[PATCH v8 5/7] i2c: fsi: Add transfer implementation

2018-05-30 Thread Eddie James
Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 196 ++- 1 file changed, 194 insertions(+), 2 deletions(-) diff

[PATCH v8 7/7] i2c: fsi: Add bus recovery

2018-05-30 Thread Eddie James
Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index

[PATCH v8 7/7] i2c: fsi: Add bus recovery

2018-05-30 Thread Eddie James
Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index

Re: [PATCH v7 5/7] drivers/i2c: Add transfer implementation for FSI algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 07:08 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. + if (msg->fla

Re: [PATCH v7 5/7] drivers/i2c: Add transfer implementation for FSI algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 07:08 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. + if (msg->fla

Re: [PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 06:19 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. +#include +

Re: [PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 06:19 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. +#include +

Re: [PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 06:19 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. +#include +

Re: [PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 06:19 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. +#include +

Re: [PATCH v7 2/7] drivers/i2c: Add FSI-attached I2C master algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 06:42 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed

Re: [PATCH v7 2/7] drivers/i2c: Add FSI-attached I2C master algorithm

2018-05-30 Thread Eddie James
On 05/29/2018 06:42 PM, Andy Shevchenko wrote: On Wed, May 30, 2018 at 1:24 AM, Eddie James wrote: From: "Edward A. James" Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed

[PATCH v7 1/7] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-05-29 Thread Eddie James
From: "Edward A. James" Document the bindings. Signed-off-by: Edward A. James Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff

[PATCH v7 1/7] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2018-05-29 Thread Eddie James
From: "Edward A. James" Document the bindings. Signed-off-by: Edward A. James Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff

[PATCH v7 4/7] drivers/i2c: Add abort and hardware reset procedures

2018-05-29 Thread Eddie James
From: "Edward A. James" Add abort procedure for failed transfers. Add engine and bus reset procedures to recover from as many faults as possible. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 172 +++ 1 file changed, 172

[PATCH v7 5/7] drivers/i2c: Add transfer implementation for FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 203 ++- 1 file changed, 201

[PATCH v7 4/7] drivers/i2c: Add abort and hardware reset procedures

2018-05-29 Thread Eddie James
From: "Edward A. James" Add abort procedure for failed transfers. Add engine and bus reset procedures to recover from as many faults as possible. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 172 +++ 1 file changed, 172

[PATCH v7 5/7] drivers/i2c: Add transfer implementation for FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 203 ++- 1 file changed, 201

[PATCH v7 0/7] i2c: Add FSI-attached I2C master algorithm

2018-05-29 Thread Eddie James
This series adds an algorithm for an I2C master physically located on an FSI slave device. The I2C master has multiple ports, each of which may be connected to an I2C slave. Access to the I2C master registers is achieved over FSI bus. Due to the multi-port nature of the I2C master, the driver

[PATCH v7 0/7] i2c: Add FSI-attached I2C master algorithm

2018-05-29 Thread Eddie James
This series adds an algorithm for an I2C master physically located on an FSI slave device. The I2C master has multiple ports, each of which may be connected to an I2C slave. Access to the I2C master registers is achieved over FSI bus. Due to the multi-port nature of the I2C master, the driver

[PATCH v7 7/7] drivers/i2c: Add bus recovery for FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/i2c/busses/i2c-fsi.c

[PATCH v7 7/7] drivers/i2c: Add bus recovery for FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/i2c/busses/i2c-fsi.c

[PATCH v7 6/7] drivers/i2c: Add I2C master locking to FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 16

[PATCH v7 6/7] drivers/i2c: Add I2C master locking to FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the master state while other transfers are in progress. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 16

[PATCH v7 2/7] drivers/i2c: Add FSI-attached I2C master algorithm

2018-05-29 Thread Eddie James
00..79475f8 --- /dev/null +++ b/drivers/i2c/busses/i2c-fsi.c @@ -0,0 +1,244 @@ +/* + * Copyright 2017 IBM Corporation + * + * Eddie James + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free

[PATCH v7 2/7] drivers/i2c: Add FSI-attached I2C master algorithm

2018-05-29 Thread Eddie James
00..79475f8 --- /dev/null +++ b/drivers/i2c/busses/i2c-fsi.c @@ -0,0 +1,244 @@ +/* + * Copyright 2017 IBM Corporation + * + * Eddie James + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free

[PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 96 1 file changed, 96

[PATCH v7 3/7] drivers/i2c: Add port structure to FSI algorithm

2018-05-29 Thread Eddie James
From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 96 1 file changed, 96

[PATCH v2] aspeed: watchdog: Set bootstatus during probe

2018-03-27 Thread Eddie James
Check the aspeed timeout status register to see if the system has booted from the secondary boot source. If so, set the watchdog device bootstatus flag for "Card previously reset the CPU." Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- Changes since v1: - use bo

[PATCH v2] aspeed: watchdog: Set bootstatus during probe

2018-03-27 Thread Eddie James
Check the aspeed timeout status register to see if the system has booted from the secondary boot source. If so, set the watchdog device bootstatus flag for "Card previously reset the CPU." Signed-off-by: Eddie James --- Changes since v1: - use bootstatus instead of status - use WDIOF

Re: [PATCH] aspeed: watchdog: Add status function

2018-03-26 Thread Eddie James
On 03/26/2018 05:00 PM, Guenter Roeck wrote: On 03/26/2018 02:17 PM, Eddie James wrote: Populate the status watchdog operation to return the "timeout status" register of the ASPEED watchdog. Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> ---   drivers/watchdog/

Re: [PATCH] aspeed: watchdog: Add status function

2018-03-26 Thread Eddie James
On 03/26/2018 05:00 PM, Guenter Roeck wrote: On 03/26/2018 02:17 PM, Eddie James wrote: Populate the status watchdog operation to return the "timeout status" register of the ASPEED watchdog. Signed-off-by: Eddie James ---   drivers/watchdog/aspeed_wdt.c | 9 +   1 file

[PATCH] aspeed: watchdog: Add status function

2018-03-26 Thread Eddie James
Populate the status watchdog operation to return the "timeout status" register of the ASPEED watchdog. Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- drivers/watchdog/aspeed_wdt.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/watchdog/aspeed

[PATCH] aspeed: watchdog: Add status function

2018-03-26 Thread Eddie James
Populate the status watchdog operation to return the "timeout status" register of the ASPEED watchdog. Signed-off-by: Eddie James --- drivers/watchdog/aspeed_wdt.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/watchdog/aspeed_wdt.c b/drivers/watchdog/aspeed_w

[PATCH v7 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-16 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v6:

[PATCH v7 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-16 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v6:

[PATCH v7 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Eddie James
From: Christopher Bostic <cbos...@linux.vnet.ibm.com> Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic <cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Si

[PATCH v7 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-16 Thread Eddie James
<cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- drivers/hwmon/pmbus/ucd9000.c | 138 +- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v7 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Eddie James
From: Christopher Bostic Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic Signed-off-by: Andrew Jeffery Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 212

[PATCH v7 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-16 Thread Eddie James
Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 138 +- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index ef2c5bf..70cecb0 100644 --- a/drivers/hwmon/pmbus/ucd9000.c

Re: [PATCH v6 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-16 Thread Eddie James
On 03/16/2018 02:59 PM, Guenter Roeck wrote: On Fri, Mar 16, 2018 at 02:25:59PM -0500, Eddie James wrote: From: Christopher Bostic <cbos...@linux.vnet.ibm.com> Expose the gpiN_fault fields of mfr_status as individual debugfs attributes. This provides a way for users to be easily no

Re: [PATCH v6 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-16 Thread Eddie James
On 03/16/2018 02:59 PM, Guenter Roeck wrote: On Fri, Mar 16, 2018 at 02:25:59PM -0500, Eddie James wrote: From: Christopher Bostic Expose the gpiN_fault fields of mfr_status as individual debugfs attributes. This provides a way for users to be easily notified of gpi faults. Also provide

[PATCH v6 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Eddie James
From: Christopher Bostic <cbos...@linux.vnet.ibm.com> Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic <cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Si

[PATCH v6 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Eddie James
From: Christopher Bostic Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic Signed-off-by: Andrew Jeffery Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 212

[PATCH v6 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-16 Thread Eddie James
<cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- drivers/hwmon/pmbus/ucd9000.c | 138 +- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v6 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-16 Thread Eddie James
Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 138 +- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index ef2c5bf..88c98fb 100644 --- a/drivers/hwmon/pmbus/ucd9000.c

[PATCH v6 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-16 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v5:

[PATCH v6 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-16 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v5:

Re: [PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Eddie James
On 03/16/2018 08:40 AM, Guenter Roeck wrote: On 03/15/2018 03:21 PM, Eddie James wrote: From: Christopher Bostic <cbos...@linux.vnet.ibm.com> Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Sorry for not noticing e

Re: [PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Eddie James
On 03/16/2018 08:40 AM, Guenter Roeck wrote: On 03/15/2018 03:21 PM, Eddie James wrote: From: Christopher Bostic Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Sorry for not noticing earlier. The 0day reports should

[PATCH v5 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-15 Thread Eddie James
<cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- drivers/hwmon/pmbus/ucd9000.c | 137 +- 1 file changed, 136 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v5 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-15 Thread Eddie James
Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 137 +- 1 file changed, 136 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index a34ffc4..c1a1560 100644 --- a/drivers/hwmon/pmbus/ucd9000.c

[PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-15 Thread Eddie James
From: Christopher Bostic <cbos...@linux.vnet.ibm.com> Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic <cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Si

[PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-15 Thread Eddie James
From: Christopher Bostic Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic Signed-off-by: Andrew Jeffery Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 201

[PATCH v5 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-15 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v4:

[PATCH v5 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-15 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v4:

[PATCH v2] watchdog: aspeed: Allow configuring for alternate boot

2018-03-15 Thread Eddie James
<milt...@us.ibm.com> Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- Changes since v1: * Disable secondary boot before the restart operation. drivers/watchdog/aspeed_wdt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/watchdog/aspeed_wdt.c b/drivers/wat

[PATCH v2] watchdog: aspeed: Allow configuring for alternate boot

2018-03-15 Thread Eddie James
goes to flash bank 1, while on the ast2500 the chip selects are swapped. Also clear the secondary boot bit during the machine restart operation. Otherwise, the system will switch to the alternate boot after every reboot, which is not desired. Signed-off-by: Milton Miller Signed-off-by: Eddie

[PATCH v4 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-14 Thread Eddie James
<cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Signed-off-by: Eddie James <eaja...@linux.vnet.ibm.com> --- drivers/hwmon/pmbus/ucd9000.c | 153 +- 1 file changed, 152 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH v4 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

2018-03-14 Thread Eddie James
Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 153 +- 1 file changed, 152 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index a34ffc4..f03c404 100644 --- a/drivers/hwmon/pmbus/ucd9000.c

[PATCH v4 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-14 Thread Eddie James
From: Christopher Bostic <cbos...@linux.vnet.ibm.com> Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic <cbos...@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <and...@aj.id.au> Si

[PATCH v4 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-14 Thread Eddie James
From: Christopher Bostic Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Signed-off-by: Christopher Bostic Signed-off-by: Andrew Jeffery Signed-off-by: Eddie James --- drivers/hwmon/pmbus/ucd9000.c | 201

[PATCH v4 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-14 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v3:

[PATCH v4 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces

2018-03-14 Thread Eddie James
The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v3:

Re: [PATCH 2/2] watchdog: aspeed: Allow configuring for alternate boot

2018-03-14 Thread Eddie James
On 03/09/2018 04:06 PM, Guenter Roeck wrote: On Fri, Mar 09, 2018 at 03:58:20PM -0600, Eddie James wrote: From: Milton Miller <milt...@us.ibm.com> Allow the device tree to specify a watchdog to fallover to the alternate boot source. The aspeeed watchdog can set a latch directing flas

<    1   2   3   4   5   6   7   8   9   >