Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fsi: core: Add check for master property no-scan-on-init

Prior to scanning a master check if the optional property
no-scan-on-init is present. If it is then avoid scanning. This is
necessary in cases where a master scan could interfere with another
FSI master on the same bus.

Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christopher Bostic and committed by
Greg Kroah-Hartman
f3aa2c6f dd798739

+4 -1
+4 -1
drivers/fsi/fsi-core.c
··· 901 901 int fsi_master_register(struct fsi_master *master) 902 902 { 903 903 int rc; 904 + struct device_node *np; 904 905 905 906 if (!master) 906 907 return -EINVAL; ··· 929 928 return rc; 930 929 } 931 930 932 - fsi_master_scan(master); 931 + np = dev_of_node(&master->dev); 932 + if (!of_property_read_bool(np, "no-scan-on-init")) 933 + fsi_master_scan(master); 933 934 934 935 return 0; 935 936 }