1. 04 4月, 2017 20 次提交
  2. 16 3月, 2017 3 次提交
    • P
      hwrng: geode - Revert managed API changes · 8c75704e
      Prarit Bhargava 提交于
      After commit e9afc746 ("hwrng: geode - Use linux/io.h instead of
      asm/io.h") the geode-rng driver uses devres with pci_dev->dev to keep
      track of resources, but does not actually register a PCI driver.  This
      results in the following issues:
      
      1.  The driver leaks memory because the driver does not attach to a
      device.  The driver only uses the PCI device as a reference.   devm_*()
      functions will release resources on driver detach, which the geode-rng
      driver will never do.  As a result,
      
      2.  The driver cannot be reloaded because there is always a use of the
      ioport and region after the first load of the driver.
      
      Revert the changes made by  e9afc746 ("hwrng: geode - Use linux/io.h
      instead of asm/io.h").
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Fixes: 6e9b5e76 ("hwrng: geode - Migrate to managed API")
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Corentin LABBE <clabbe.montjoie@gmail.com>
      Cc: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
      Cc: Wei Yongjun <weiyongjun1@huawei.com>
      Cc: linux-crypto@vger.kernel.org
      Cc: linux-geode@lists.infradead.org
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      8c75704e
    • P
      hwrng: amd - Revert managed API changes · 69db7009
      Prarit Bhargava 提交于
      After commit 31b2a73c ("hwrng: amd - Migrate to managed API"), the
      amd-rng driver uses devres with pci_dev->dev to keep track of resources,
      but does not actually register a PCI driver.  This results in the
      following issues:
      
      1. The message
      
      WARNING: CPU: 2 PID: 621 at drivers/base/dd.c:349 driver_probe_device+0x38c
      
      is output when the i2c_amd756 driver loads and attempts to register a PCI
      driver.  The PCI & device subsystems assume that no resources have been
      registered for the device, and the WARN_ON() triggers since amd-rng has
      already do so.
      
      2.  The driver leaks memory because the driver does not attach to a
      device.  The driver only uses the PCI device as a reference.   devm_*()
      functions will release resources on driver detach, which the amd-rng
      driver will never do.  As a result,
      
      3.  The driver cannot be reloaded because there is always a use of the
      ioport and region after the first load of the driver.
      
      Revert the changes made by 31b2a73c ("hwrng: amd - Migrate to managed
      API").
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Fixes: 31b2a73c ("hwrng: amd - Migrate to managed API").
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Corentin LABBE <clabbe.montjoie@gmail.com>
      Cc: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
      Cc: Wei Yongjun <weiyongjun1@huawei.com>
      Cc: linux-crypto@vger.kernel.org
      Cc: linux-geode@lists.infradead.org
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      69db7009
    • S
      ppdev: fix registering same device name · 9a69645d
      Sudip Mukherjee 提交于
      Usually every parallel port will have a single pardev registered with
      it. But ppdev driver is an exception. This userspace parallel port
      driver allows to create multiple parrallel port devices for a single
      parallel port. And as a result we were having a big warning like:
      "sysfs: cannot create duplicate filename '/devices/parport0/ppdev0.0'".
      And with that many parallel port printers stopped working.
      
      We have been using the minor number as the id field while registering
      a parralel port device with a parralel port. But when there are
      multiple parrallel port device for one single parallel port, they all
      tried to register with the same name like 'pardev0.0' and everything
      started failing.
      Use an incremented index as the id instead of the minor number.
      
      Fixes: 8b7d3a9d ("ppdev: use new parport device model")
      Cc: stable <stable@vger.kernel.org> # v4.9+
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1414656
      Bugzilla: https://bugs.archlinux.org/task/52322Tested-by: NJames Feeney <james@nurealm.net>
      Signed-off-by: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9a69645d
  3. 08 3月, 2017 3 次提交
  4. 07 3月, 2017 1 次提交
  5. 02 3月, 2017 3 次提交
  6. 28 2月, 2017 4 次提交
  7. 25 2月, 2017 1 次提交
  8. 21 2月, 2017 1 次提交
    • A
      ipmi: bt-bmc: Use a regmap for register access · eb994594
      Andrew Jeffery 提交于
      The registers for the bt-bmc device live under the Aspeed LPC
      controller. Devicetree bindings have recently been introduced for the
      LPC controller where the "host" portion of the LPC register space is
      described as a syscon device. Future devicetrees describing the bt-bmc
      device should nest its node under the appropriate "simple-mfd", "syscon"
      compatible node.
      
      This change allows the bt-bmc driver to function with both syscon and
      non-syscon- based devicetree descriptions by always using a regmap for
      register access, either retrieved from the parent syscon device or
      instantiated if none exists.
      Signed-off-by: NAndrew Jeffery <andrew@aj.id.au>
      Reviewed-by: NCédric Le Goater <clg@kaod.org>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      eb994594
  9. 20 2月, 2017 1 次提交
  10. 16 2月, 2017 1 次提交
  11. 15 2月, 2017 2 次提交