1. Mar 11, 2022
    • Greg Kroah-Hartman's avatar
      Merge tag 'misc-habanalabs-next-2022-02-28' of... · 4dee7a71
      Greg Kroah-Hartman authored
      Merge tag 'misc-habanalabs-next-2022-02-28' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux into char-misc-next
      
      Oded writes:
      
      This tag contains habanalabs driver changes for v5.18:
      
      - Add new feature of recording time-stamp when a completion
        queue counter reaches a target value as determined by the
        userspace application. This is used by the graph compiler
        to accurately measure the time it takes for certain workloads
        to execute, which helps to fine-tune future compilations.
      
      - Add two new attributes to sysfs that expose the VRM and
        f/w OS version
      
      - Add a delay to the reset path that allows the driver to
        receive and handle additional events from the f/w before
        doing the reset. This can help when debugging why a reset
        event was received from the f/w.
      
      - Re-factor some of the sysfs code in the driver. Mainly,
        move functions from hwmgr.c to more relevant files and
        totally remove hwmgr.c file.
      
      - Fix multiple bugs such as races, use-after-free, ignoring
        error codes, etc.
      
      - As usual, multiple minor changes and small fixes.
      
      * tag 'misc-habanalabs-next-2022-02-28' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux: (50 commits)
        habanalabs: remove deprecated firmware states
        habanalabs: add an option to delay a device reset
        habanalabs: Add check for pci_enable_device
        habanalabs: Fix reset upon device release bug
        habanalabs: make sure device mem alloc is page aligned
        habanalabs/gaudi: add missing handling of NIC related events
        habanalabs/gaudi: handle axi errors from NIC engines
        habanalabs: allow user to set allocation page size
        habanalabs: use kernel-doc for memory ioctl documentation
        habanalabs: avoid using an uninitialized variable
        habanalabs: set max power on device init per ASIC
        habanalabs: use proper max_power variable for device utilization
        habanalabs: enable stop-on-error debugfs setting per ASIC
        habanalabs: change function to static
        habanalabs: add missing include of vmalloc.h
        habanalabs: fix use-after-free bug
        habanalabs: rephrase error messages in PCI initialization
        habanalabs: fix spelling mistake
        habanalabs: Timestamps buffers registration
        habanalabs: fix race when waiting on encaps signal
        ...
      4dee7a71
    • Greg Kroah-Hartman's avatar
      Merge tag 'fpga-for-5.18-rc1' of... · 0245107a
      Greg Kroah-Hartman authored
      Merge tag 'fpga-for-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga
      
       into char-misc-next
      
      Moritz writes:
      
      FPGA Manager changes for 5.18-rc1
      
      Christophe's patch is part of a larger effort of removing the use of the
      deprecated pci-dma-compat API.
      
      All patches have been reviewed on the mailing list, and have been in the
      last few linux-next releases (as part of our for-next branch) without issues.
      
      Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
      
      * tag 'fpga-for-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga:
        fpga: dfl: pci: Remove usage of the deprecated "pci-dma-compat.h" API
      0245107a
  2. Mar 02, 2022
  3. Mar 01, 2022
    • Greg Kroah-Hartman's avatar
      Revert "mfd: simple-mfd-i2c: Add Delta TN48M CPLD support" · 540e6a81
      Greg Kroah-Hartman authored
      This reverts commit d0cac243.  THe MFD
      maintainer has some remaining objections that need to be resolved before
      it can be accepted.
      
      Link: https://lore.kernel.org/r/20220228193928.3ec6ee98@canb.auug.org.au
      
      
      Reported-by: default avatarLee Jones <lee.jones@linaro.org>
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Cc: Robert Marko <robert.marko@sartura.hr>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      
      diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
      index ba0b3eb131f1..be1ad8ce54aa 100644
      --- a/drivers/mfd/Kconfig
      +++ b/drivers/mfd/Kconfig
      @@ -297,6 +297,17 @@ config MFD_ASIC3
       	  This driver supports the ASIC3 multifunction chip found on many
       	  PDAs (mainly iPAQ and HTC based ones)
      
      +config MFD_TN48M_CPLD
      +	tristate "Delta Networks TN48M switch CPLD driver"
      +	depends on I2C
      +	depends on ARCH_MVEBU || COMPILE_TEST
      +	select MFD_SIMPLE_MFD_I2C
      +	help
      +	  Select this option to enable support for Delta Networks TN48M switch
      +	  CPLD. It consists of reset and GPIO drivers. CPLD provides GPIOS-s
      +	  for the SFP slots as well as power supply related information.
      +	  SFP support depends on the GPIO driver being selected.
      +
       config PMIC_DA903X
       	bool "Dialog Semiconductor DA9030/DA9034 PMIC Support"
       	depends on I2C=y
      diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c
      index 51536691ad9d..0d6a51ed6286 100644
      --- a/drivers/mfd/simple-mfd-i2c.c
      +++ b/drivers/mfd/simple-mfd-i2c.c
      @@ -64,6 +64,7 @@ static int simple_mfd_i2c_probe(struct i2c_client *i2c)
      
       static const struct of_device_id simple_mfd_i2c_of_match[] = {
       	{ .compatible = "kontron,sl28cpld" },
      +	{ .compatible = "delta,tn48m-cpld" },
       	{}
       };
       MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match);
      540e6a81
  4. Feb 28, 2022