1. 02 8月, 2018 16 次提交
  2. 29 7月, 2018 4 次提交
  3. 27 7月, 2018 6 次提交
    • G
      Merge tag 'fsi-updates-2018-07-27' of... · 2d8bc619
      Greg Kroah-Hartman 提交于
      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.
      2d8bc619
    • B
      fsi: Prevent multiple concurrent rescans · 9840fcd8
      Benjamin Herrenschmidt 提交于
      The bus scanning process isn't terribly good at parallel attempts
      at rescanning the same bus. Let's have a per-master mutex protecting
      the scanning process.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      9840fcd8
    • B
      fsi: Add cfam char devices · d1dcd678
      Benjamin Herrenschmidt 提交于
      This aims to deprecate the "raw" sysfs file used for directly
      accessing the CFAM and instead use a char device like the
      other sub drivers.
      
      Since it reworks the slave creation code and adds a cfam device
      type, we also use the opportunity to convert the attributes
      to attribute groups and add a couple more.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      d1dcd678
    • B
      fsi: scom: Convert to use the new chardev · d8f45876
      Benjamin Herrenschmidt 提交于
      This converts FSI scom to use the new fsi-core controlled
      chardev allocator and use a real cdev instead of a miscdev.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      d8f45876
    • B
      fsi: sbefifo: Convert to use the new chardev · 8b052dd6
      Benjamin Herrenschmidt 提交于
      This converts FSI sbefifo to use the new fsi-core controlled
      chardev allocator and use a real cdev instead of a miscdev.
      
      One side effect is to fix the object lifetime by removing
      the use of devm_kzalloc() for something that contains kobjects,
      and using proper reference counting.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      8b052dd6
    • B
      fsi: Add new central chardev support · 0ab5fe53
      Benjamin Herrenschmidt 提交于
      The various FSI devices (sbefifo, occ, scom, more to come)
      currently use misc devices.
      
      This is problematic as the minor device space for misc is
      limited and there can be a lot of them. Also it limits our
      ability to move them to a dedicated /dev/fsi directory or
      to be smart about device naming and numbering.
      
      It also means we have IDAs on every single of these drivers
      
      This creates a common fsi "device_type" for the optional
      /dev/fsi grouping and a dev_t allocator for all FSI devices.
      
      "Legacy" devices get to use a backward compatible numbering
      scheme (as long as chip id <16 and there's only one copy
      of a given unit type per chip).
      
      A single major number and a single IDA are shared for all
      FSI devices.
      
      This doesn't convert the FSI device drivers to use the new
      scheme yet, they will be converted individually.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      0ab5fe53
  4. 26 7月, 2018 2 次提交
  5. 25 7月, 2018 8 次提交
  6. 24 7月, 2018 4 次提交