[PATCH v3 00/18] FSI device driver introduction

2017-01-18 Thread christopher . lee . bostic
From: Christopher Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic

[PATCH v3 00/18] FSI device driver introduction

2017-01-18 Thread christopher . lee . bostic
From: Christopher Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the

[PATCH v3 00/18] FSI device driver introduction

2017-01-17 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI

[PATCH v3 00/18] FSI device driver introduction

2017-01-17 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus

[PATCH v3 02/18] drivers/fsi: Add device & driver definitions

2017-01-16 Thread christopher . lee . bostic
From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v3 02/18] drivers/fsi: Add device & driver definitions

2017-01-16 Thread christopher . lee . bostic
From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/fsi.h b/include/linux/fsi.h index

[PATCH v3 00/18] FSI device driver introduction

2017-01-16 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI

[PATCH v3 00/18] FSI device driver introduction

2017-01-16 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus

[PATCH v2 18/18] insert build break

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c index 28b82d1..db09836 100644 --- a/drivers/fsi/fsi-core.c +++

[PATCH v2 18/18] insert build break

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c index 28b82d1..db09836 100644 --- a/drivers/fsi/fsi-core.c +++ b/drivers/fsi/fsi-core.c @@ -42,6 +42,7 @@ static

[PATCH v2 17/18] drivers/fsi: Add GPIO based FSI master

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Implement a FSI master using GPIO. Will generate FSI protocol for read and write commands to particular addresses. Sends master command and waits for and decodes a slave response. Includes Jeremy Kerr's original GPIO master base commit. Signed-off-by:

[PATCH v2 16/18] drivers/fsi: Document FSI master sysfs files in ABI

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Add info for sysfs scan file in Documentaiton ABI/testing Signed-off-by: Chris Bostic --- Documentation/ABI/testing/sysfs-bus-fsi | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsi

[PATCH v2 17/18] drivers/fsi: Add GPIO based FSI master

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Implement a FSI master using GPIO. Will generate FSI protocol for read and write commands to particular addresses. Sends master command and waits for and decodes a slave response. Includes Jeremy Kerr's original GPIO master base commit. Signed-off-by: Jeremy Kerr

[PATCH v2 16/18] drivers/fsi: Document FSI master sysfs files in ABI

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Add info for sysfs scan file in Documentaiton ABI/testing Signed-off-by: Chris Bostic --- Documentation/ABI/testing/sysfs-bus-fsi | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsi diff --git

[PATCH v2 15/18] drivers/fsi: Add documentation for GPIO based FSI master

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Define the device tree bindings for the GPIO master type. Signed-off-by: Chris Bostic --- V2 - Break out this documentation update from the code implementing The GPIO master function. - Move the documentation to an earlier

[PATCH v2 15/18] drivers/fsi: Add documentation for GPIO based FSI master

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Define the device tree bindings for the GPIO master type. Signed-off-by: Chris Bostic --- V2 - Break out this documentation update from the code implementing The GPIO master function. - Move the documentation to an earlier patch than the code implementing the

[PATCH v2 14/18] drivers/fsi: Add FSI bus documentation

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Add details on the basic functions of the FSI serial bus. Signed-off-by: Chris Bostic --- Documentation/devicetree/bindings/fsi/fsi.txt | 54 +++ 1 file changed, 54 insertions(+) create mode 100644

[PATCH v2 14/18] drivers/fsi: Add FSI bus documentation

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Add details on the basic functions of the FSI serial bus. Signed-off-by: Chris Bostic --- Documentation/devicetree/bindings/fsi/fsi.txt | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/fsi.txt diff

[PATCH v2 11/18] drivers/fsi: Set up links for slave communication

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Enable each link and send a break command in preparation for scanning each link for slaves. Signed-off-by: Chris Bostic Signed-off-by: Jeremy Kerr --- drivers/fsi/fsi-core.c | 38

[PATCH v2 13/18] drivers/fsi: Remove all scanned devices during master unregister

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Master will remove all previously scanned devices during an unregister operation. This will be necessary should any master attempt to register more than once. Signed-off-by: Chris Bostic --- V2 - Remove list heads and explicit master

[PATCH v2 11/18] drivers/fsi: Set up links for slave communication

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Enable each link and send a break command in preparation for scanning each link for slaves. Signed-off-by: Chris Bostic Signed-off-by: Jeremy Kerr --- drivers/fsi/fsi-core.c | 38 -- drivers/fsi/fsi-master.h | 2 ++ 2 files changed,

[PATCH v2 13/18] drivers/fsi: Remove all scanned devices during master unregister

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Master will remove all previously scanned devices during an unregister operation. This will be necessary should any master attempt to register more than once. Signed-off-by: Chris Bostic --- V2 - Remove list heads and explicit master device list management int the fsi

[PATCH v2 12/18] drivers/fsi: Set slave SMODE to init communication

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Set CFAM to appropriate ID so that the controlling master can manage link memory ranges. Add slave engine register definitions. Signed-off-by: Chris Bostic Signed-off-by: Jeremy Kerr --- drivers/fsi/fsi-core.c | 90

[PATCH v2 12/18] drivers/fsi: Set slave SMODE to init communication

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Set CFAM to appropriate ID so that the controlling master can manage link memory ranges. Add slave engine register definitions. Signed-off-by: Chris Bostic Signed-off-by: Jeremy Kerr --- drivers/fsi/fsi-core.c | 90 +- 1

[PATCH v2 10/18] drivers/fsi: Add device read/write/peek functions

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic

[PATCH v2 10/18] drivers/fsi: Add device read/write/peek functions

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- V2 - Clean up white space. --- drivers/fsi/fsi-core.c |

[PATCH v2 09/18] drivers/fsi: scan slaves & register devices

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Now that we have fsi_slave devices, scan each for endpoints, and register them on the fsi bus. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic ---

[PATCH v2 09/18] drivers/fsi: scan slaves & register devices

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Now that we have fsi_slave devices, scan each for endpoints, and register them on the fsi bus. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 136

[PATCH v2 08/18] drivers/fsi: Implement slave initialisation

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Create fsi_slave devices during the master scan. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 56 -- 1 file changed, 54

[PATCH v2 08/18] drivers/fsi: Implement slave initialisation

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Create fsi_slave devices during the master scan. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 56 -- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/drivers/fsi/fsi-core.c

[PATCH v2 07/18] drivers/fsi: Kick off master scan via sysfs

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Move master scan from automatic kick off early in kernel power up to a scan file that can be invoked at any particular time based on needs of a given platform. Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 15

[PATCH v2 07/18] drivers/fsi: Kick off master scan via sysfs

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Move master scan from automatic kick off early in kernel power up to a scan file that can be invoked at any particular time based on needs of a given platform. Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 15 +-- 1 file changed, 13 insertions(+), 2

[PATCH v2 06/18] drivers/fsi: Add FSI crc calculators to library

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add some helpers for the crc checks for the slave configuration table. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software.

[PATCH v2 06/18] drivers/fsi: Add FSI crc calculators to library

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add some helpers for the crc checks for the slave configuration table. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by: Jeremy Kerr

[PATCH v2 05/18] drivers/fsi: Add empty master scan

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr When a new fsi master is added, we will need to scan its links, and slaves attached to those links. This change introduces a little shell to iterate the links, which we will populate with the actual slave scan in a later change. Signed-off-by: Jeremy Kerr

[PATCH v2 05/18] drivers/fsi: Add empty master scan

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr When a new fsi master is added, we will need to scan its links, and slaves attached to those links. This change introduces a little shell to iterate the links, which we will populate with the actual slave scan in a later change. Signed-off-by: Jeremy Kerr Signed-off-by: Chris

[PATCH v2 04/18] drivers/fsi: Add slave definition

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c |

[PATCH v2 04/18] drivers/fsi: Add slave definition

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v2 03/18] drivers/fsi: Add fsi master definition

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- V2 - Change atomic global keeping track of master number to ida simple interface. - Add valid pointer checks on entry to register and unregister. ---

[PATCH v2 03/18] drivers/fsi: Add fsi master definition

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- V2 - Change atomic global keeping track of master number to ida simple interface. - Add valid pointer checks on entry to register and unregister. --- drivers/fsi/fsi-core.c | 28

[PATCH v2 02/18] drivers/fsi: add driver to device matches

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Driver bind to devices based on the engine types & (optional) versions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 21 + include/linux/fsi.h| 21

[PATCH v2 02/18] drivers/fsi: add driver to device matches

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Driver bind to devices based on the engine types & (optional) versions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 21 + include/linux/fsi.h| 21 +++-- 2 files changed, 40 insertions(+), 2

[PATCH v2 01/18] drivers/fsi: Add device & driver definitions

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v2 01/18] drivers/fsi: Add device & driver definitions

2017-01-12 Thread christopher . lee . bostic
From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/fsi.h b/include/linux/fsi.h index

[PATCH v2 00/18] FSI device driver introduction

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI

[PATCH v2 00/18] FSI device driver introduction

2017-01-12 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus

[PATCH 00/16] FSI device driver introduction

2016-12-06 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI

[PATCH 00/16] FSI device driver introduction

2016-12-06 Thread christopher . lee . bostic
From: Chris Bostic Introduction of the IBM 'Flexible Support Interface' (FSI) bus device driver. FSI is a high fan out serial bus consisting of a clock and a serial data line capable of running at speeds up to 166 MHz. This set provides the basic framework to add FSI extensions to the Linux bus