1. 22 Oct, 2019 4 commits
    • YueHaibing's avatar
      ipmi: bt-bmc: use devm_platform_ioremap_resource() to simplify code · 2a21d858
      YueHaibing authored
      Use devm_platform_ioremap_resource() to simplify the code a bit.
      This is detected by coccinelle.
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Message-Id: <20191016092131.23096-1-yuehaibing@huawei.com>
      Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      2a21d858
    • Andy Shevchenko's avatar
      ipmi: use %*ph to print small buffer · 8ee7b485
      Andy Shevchenko authored
      Use %*ph format to print small buffer as hex string.
      
      The change is safe since the specifier can handle up to 64 bytes and taking
      into account the buffer size of 100 bytes on stack the function has never been
      used to dump more than 32 bytes. Note, this also avoids potential buffer
      overflow if the length of the input buffer is bigger.
      
      This completely eliminates ipmi_debug_msg() in favour of Dynamic Debug.
      Signed-off-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Message-Id: <20191011155036.36748-1-andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      8ee7b485
    • Corey Minyard's avatar
      ipmi: Don't allow device module unload when in use · cbb79863
      Corey Minyard authored
      If something has the IPMI driver open, don't allow the device
      module to be unloaded.  Before it would unload and the user would
      get errors on use.
      
      This change is made on user request, and it makes it consistent
      with the I2C driver, which has the same behavior.
      
      It does change things a little bit with respect to kernel users.
      If the ACPI or IPMI watchdog (or any other kernel user) has
      created a user, then the device module cannot be unloaded.  Before
      it could be unloaded,
      
      This does not affect hot-plug.  If the device goes away (it's on
      something removable that is removed or is hot-removed via sysfs)
      then it still behaves as it did before.
      Reported-by: default avatartony camuso <tcamuso@redhat.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Tested-by: default avatartony camuso <tcamuso@redhat.com>
      cbb79863
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v5.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 3b7c59a1
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
       "Here is a bunch of pin control fixes. I was lagging behind on this
        one, some fixes should have come in earlier, sorry about that.
      
        Anyways here it is, pretty straight-forward fixes, the Strago fix
        stand out as something serious affecting a lot of machines.
      
        Summary:
         - Handle multiple instances of Intel chips without complaining.
         - Restore the Intel Strago DMI workaround
         - Make the Armada 37xx handle pins over 32
         - Fix the polarity of the LED group on Armada 37xx
         - Fix an off-by-one bug in the NS2 driver
         - Fix error path for iproc's platform_get_irq()
         - Fix error path on the STMFX driver
         - Fix a typo in the Berlin AS370 driver
         - Fix up misc errors in the Aspeed 2600 BMC support
         - Fix a stray SPDX tag"
      
      * tag 'pinctrl-v5.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: aspeed-g6: Rename SD3 to EMMC and rework pin groups
        pinctrl: aspeed-g6: Fix UART13 group pinmux
        pinctrl: aspeed-g6: Make SIG_DESC_CLEAR() behave intuitively
        pinctrl: aspeed-g6: Fix I3C3/I3C4 pinmux configuration
        pinctrl: aspeed-g6: Fix I2C14 SDA description
        pinctrl: aspeed-g6: Sort pins for sanity
        dt-bindings: pinctrl: aspeed-g6: Rework SD3 function and groups
        pinctrl: berlin: as370: fix a typo s/spififib/spdifib
        pinctrl: armada-37xx: swap polarity on LED group
        pinctrl: stmfx: fix null pointer on remove
        pinctrl: iproc: allow for error from platform_get_irq()
        pinctrl: ns2: Fix off by one bugs in ns2_pinmux_enable()
        pinctrl: bcm-iproc: Use SPDX header
        pinctrl: armada-37xx: fix control of pins 32 and up
        pinctrl: cherryview: restore Strago DMI workaround for all versions
        pinctrl: intel: Allocate IRQ chip dynamic
      3b7c59a1
  2. 20 Oct, 2019 6 commits
  3. 19 Oct, 2019 30 commits