1. 15 7月, 2019 3 次提交
  2. 25 6月, 2019 6 次提交
  3. 24 6月, 2019 3 次提交
    • S
      driver_find_device: Unify the match function with class_find_device() · 92ce7e83
      Suzuki K Poulose 提交于
      The driver_find_device() accepts a match function pointer to
      filter the devices for lookup, similar to bus/class_find_device().
      However, there is a minor difference in the prototype for the
      match parameter for driver_find_device() with the now unified
      version accepted by {bus/class}_find_device(), where it doesn't
      accept a "const" qualifier for the data argument. This prevents
      us from reusing the generic match functions for driver_find_device().
      
      For this reason, change the prototype of the driver_find_device() to
      make the "match" parameter in line with {bus/class}_find_device()
      and adjust its callers to use the const qualifier. Also, we could
      now promote the "data" parameter to const as we pass it down
      as a const parameter to the match functions.
      
      Cc: Corey Minyard <minyard@acm.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: "Rafael J. Wysocki" <rafael@kernel.org>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: Sebastian Ott <sebott@linux.ibm.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Nehal Shah <nehal-bakulchandra.shah@amd.com>
      Cc: Shyam Sundar S K <shyam-sundar.s-k@amd.com>
      Cc: Lee Jones <lee.jones@linaro.org>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      92ce7e83
    • S
      bus_find_device: Unify the match callback with class_find_device · 418e3ea1
      Suzuki K Poulose 提交于
      There is an arbitrary difference between the prototypes of
      bus_find_device() and class_find_device() preventing their callers
      from passing the same pair of data and match() arguments to both of
      them, which is the const qualifier used in the prototype of
      class_find_device().  If that qualifier is also used in the
      bus_find_device() prototype, it will be possible to pass the same
      match() callback function to both bus_find_device() and
      class_find_device(), which will allow some optimizations to be made in
      order to avoid code duplication going forward.  Also with that, constify
      the "data" parameter as it is passed as a const to the match function.
      
      For this reason, change the prototype of bus_find_device() to match
      the prototype of class_find_device() and adjust its callers to use the
      const qualifier in accordance with the new prototype of it.
      
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Andreas Noever <andreas.noever@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Corey Minyard <minyard@acm.org>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: David Kershner <david.kershner@unisys.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: Grygorii Strashko <grygorii.strashko@ti.com>
      Cc: Harald Freudenberger <freude@linux.ibm.com>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michael Jamet <michael.jamet@intel.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: Sebastian Ott <sebott@linux.ibm.com>
      Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Cc: Yehezkel Bernat <YehezkelShB@gmail.com>
      Cc: rafael@kernel.org
      Acked-by: NCorey Minyard <minyard@acm.org>
      Acked-by: NDavid Kershner <david.kershner@unisys.com>
      Acked-by: NMark Brown <broonie@kernel.org>
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Acked-by: Wolfram Sang <wsa@the-dreams.de> # for the I2C parts
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      418e3ea1
    • K
      fix platform_no_drv_owner.cocci warnings · a88b6d56
      kbuild test robot 提交于
      drivers/char/ipmi/ipmb_dev_int.c:352:3-8: No need to set .owner here. The core will do it.
      
       Remove .owner field if calls are used which set it automatically
      
      Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
      
      Fixes: 51bd6f29 ("Add support for IPMB driver")
      CC: Asmaa Mnebhi <Asmaa@mellanox.com>
      Signed-off-by: Nkbuild test robot <lkp@intel.com>
      Message-Id: <20190623185044.GA94834@lkp-kbuild21>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      a88b6d56
  4. 23 6月, 2019 1 次提交
  5. 20 6月, 2019 1 次提交
  6. 19 6月, 2019 3 次提交
  7. 12 6月, 2019 1 次提交
    • Y
      ipmi: ipmb: Fix build error while CONFIG_I2C is set to m · 102308f5
      YueHaibing 提交于
      If CONFIG_I2C is m and CONFIG_I2C_SLAVE is y,
      building with CONFIG_IPMB_DEVICE_INTERFACE setting to
      y will fail:
      
      drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_remove':
      ipmb_dev_int.c: undefined reference to `i2c_slave_unregister'
      drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_write':
      ipmb_dev_int.c: undefined reference to `i2c_smbus_write_block_data'
      drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_probe':
      ipmb_dev_int.c: undefined reference to `i2c_slave_register'
      drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_driver_init':
      ipmb_dev_int.c: undefined reference to `i2c_register_driver'
      drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_driver_exit':
      ipmb_dev_int.c: undefined reference to `i2c_del_driver'
      
      Add I2C Kconfig dependency to fix this.
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Fixes: 51bd6f29 ("Add support for IPMB driver")
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Message-Id: <20190612031825.24732-1-yuehaibing@huawei.com>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      102308f5
  8. 11 6月, 2019 1 次提交
    • A
      Add support for IPMB driver · 51bd6f29
      Asmaa Mnebhi 提交于
      Support receiving IPMB requests on a Satellite MC from the BMC.
      Once a response is ready, this driver will send back a response
      to the BMC via the IPMB channel.
      Signed-off-by: NAsmaa Mnebhi <Asmaa@mellanox.com>
      Acked-by: vadimp@mellanox.com
      Message-Id: <319690553a0da2a1e80b400941341081b383e5f1.1560192707.git.Asmaa@mellanox.com>
      [Move the config option to outside the ipmi msghandler, as it's not
       dependent on that.  Fixed one small whitespace issue.]
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      51bd6f29
  9. 05 6月, 2019 7 次提交
  10. 04 6月, 2019 1 次提交
  11. 31 5月, 2019 8 次提交
  12. 30 5月, 2019 1 次提交
  13. 26 5月, 2019 1 次提交
  14. 25 5月, 2019 3 次提交
新手
引导
客服 返回
顶部