Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1537375
| From | Chris Bostic <christopher.lee.bostic@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 06/16] drivers/fsi: Add slave definition |
| Date | 2016-12-07 01:20 +0100 |
| Message-ID | <sLy7M-GS-25@gated-at.bofh.it> (permalink) |
| References | <sLy7L-GS-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Jeremy Kerr <jk@ozlabs.org>
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 <jk@ozlabs.org>
Signed-off-by: Chris Bostic <cbostic@us.ibm.com>
---
drivers/fsi/fsi-core.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c
index ce9428d..60a6d91 100644
--- a/drivers/fsi/fsi-core.c
+++ b/drivers/fsi/fsi-core.c
@@ -21,6 +21,15 @@
static atomic_t master_idx = ATOMIC_INIT(-1);
+struct fsi_slave {
+ struct device dev;
+ struct fsi_master *master;
+ int link;
+ uint8_t id;
+};
+
+#define to_fsi_slave(d) container_of(d, struct fsi_slave, dev)
+
/* FSI master support */
int fsi_master_register(struct fsi_master *master)
--
1.8.2.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/16] FSI device driver introduction Chris Bostic <christopher.lee.bostic@gmail.com> - 2016-12-07 01:20 +0100
[PATCH 03/16] drivers/fsi: add driver to device matches Chris Bostic <christopher.lee.bostic@gmail.com> - 2016-12-07 01:20 +0100
[PATCH 15/16] drivers/fsi: Add documentation for GPIO bindings Chris Bostic <christopher.lee.bostic@gmail.com> - 2016-12-07 01:20 +0100
Re: [PATCH 15/16] drivers/fsi: Add documentation for GPIO bindings Mark Rutland <mark.rutland@arm.com> - 2016-12-07 13:10 +0100
[PATCH 06/16] drivers/fsi: Add slave definition Chris Bostic <christopher.lee.bostic@gmail.com> - 2016-12-07 01:20 +0100
[PATCH 10/16] drivers/fsi: scan slaves & register devices Chris Bostic <christopher.lee.bostic@gmail.com> - 2016-12-07 01:20 +0100
Re: [PATCH 00/16] FSI device driver introduction Sebastian Reichel <sre@kernel.org> - 2016-12-07 03:00 +0100
csiph-web