diff options
author | 2020-06-09 16:39:27 -0500 | |
---|---|---|
committer | 2020-09-10 12:22:47 +0930 | |
commit | 04635a30dd53890fac4e926f91c4ec8619c9227b (patch) | |
tree | a20f60529a37c5f26180f0fe6e3e3dad401eef3e /drivers/fsi/fsi-master.h | |
parent | fsi: fsi-occ: fix return value check in occ_probe() (diff) | |
download | linux-04635a30dd53890fac4e926f91c4ec8619c9227b.tar.gz linux-04635a30dd53890fac4e926f91c4ec8619c9227b.tar.bz2 linux-04635a30dd53890fac4e926f91c4ec8619c9227b.zip |
fsi: master: Add boolean parameter to link_enable function
Add the ability to disable a link with a boolean parameter to the
link_enable function. This is necessary so that the master can disable
links that it isn't using; for example, links to slaves that fail
initialization.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/fsi/fsi-master.h')
-rw-r--r-- | drivers/fsi/fsi-master.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/fsi/fsi-master.h b/drivers/fsi/fsi-master.h index 6e8d4d4d5149..cd6bee5e12a7 100644 --- a/drivers/fsi/fsi-master.h +++ b/drivers/fsi/fsi-master.h @@ -130,7 +130,8 @@ struct fsi_master { uint32_t addr, const void *val, size_t size); int (*term)(struct fsi_master *, int link, uint8_t id); int (*send_break)(struct fsi_master *, int link); - int (*link_enable)(struct fsi_master *, int link); + int (*link_enable)(struct fsi_master *, int link, + bool enable); int (*link_config)(struct fsi_master *, int link, u8 t_send_delay, u8 t_echo_delay); }; |