Skip to content

Commit 2d8bc61

Browse files
committed
Merge tag 'fsi-updates-2018-07-27' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/linux-fsi into char-misc-next
Ben writes: Last round of FSI updates for 4.19 This adds a few fixes for things reported since the last merge, and the latch batch of changes pending for FSI for 4.19. That batch is a rather mechanical conversion of the misc devices into proper char devices. The misc devices were ill suited, the minor space for them is limited and we can have a lot of chips in a system creating FSI devices. This also allows us to better control (and fix) object lifetime getting rid of the bad devm_kzalloc() of the structures containing the devices etc... Finally, we add a chardev to the core FSI that provides raw CFAM access to FSI slaves as a replacement for the current "raw" binary sysfs file which will be ultimately deprecated and removed.
2 parents 2d8ff0b + 9840fcd commit 2d8bc61

File tree

7 files changed

+496
-146
lines changed

7 files changed

+496
-146
lines changed

drivers/fsi/Kconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ menuconfig FSI
1212

1313
if FSI
1414

15+
config FSI_NEW_DEV_NODE
16+
bool "Create '/dev/fsi' directory for char devices"
17+
default n
18+
---help---
19+
This option causes char devices created for FSI devices to be
20+
located under a common /dev/fsi/ directory. Set to N unless your
21+
userspace has been updated to handle the new location.
22+
23+
Additionally, it also causes the char device names to be offset
24+
by one so that chip 0 will have /dev/scom1 and chip1 /dev/scom2
25+
to match old userspace expectations.
26+
27+
New userspace will use udev rules to generate predictable access
28+
symlinks in /dev/fsi/by-path when this option is enabled.
29+
1530
config FSI_MASTER_GPIO
1631
tristate "GPIO-based FSI master"
1732
depends on GPIOLIB

0 commit comments

Comments
 (0)