1. 23 3月, 2016 1 次提交
    • A
      bcma: fix building without OF_IRQ · c58d900c
      Arnd Bergmann 提交于
      The bcma driver core can be built with or without DT support, but
      it fails to build when CONFIG_OF=y and CONFIG_OF_IRQ=n, which
      can happen on platforms that do not support IRQ domains.
      
      ERROR: "irq_create_of_mapping" [drivers/bcma/bcma.ko] undefined!
      ERROR: "of_irq_parse_raw" [drivers/bcma/bcma.ko] undefined!
      ERROR: "of_irq_parse_one" [drivers/bcma/bcma.ko] undefined!
      
      This adds another compile-time check for OF_IRQ, but also
      gets rid of now unneeded #ifdef checks: Using the simpler
      IS_ENABLED() check for OF_IRQ also covers the case of not
      having CONFIG_OF enabled. The check for CONFIG_OF_ADDRESS
      was added to allow building on architectures without
      OF_ADDRESS, but that has been addressed already in
      b1d06b60 ("of: Provide static inline function for
      of_translate_address if needed").
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      c58d900c
  2. 07 3月, 2016 1 次提交
  3. 31 12月, 2015 1 次提交
    • R
      bcma: use module_init for the main part of bus initialization · 0510931e
      Rafał Miłecki 提交于
      So far we were using fs_initcall. It was (and still is) needed because
      struct bus_type has to be registered early. However main bus
      initialization has to happen later as it requires SPROM which depends on
      NVRAM which depends on mtd.
      Solve it by using fs_initcall only for bus_register call and module_init
      for the rest. It affects bcma only when built-in obviously.
      
      This was tested with BCM4706 and BCM5357C0 (BCM47XX), BCM4708A0
      (ARCH_BCM_5301X) and BCM43225 (PCIe card with bcma as module).
      Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      0510931e
  4. 29 9月, 2015 1 次提交
  5. 11 8月, 2015 1 次提交
    • H
      bcma: fix access to host_pdev for PCIe devices · 53cd2fdb
      Hauke Mehrtens 提交于
      bus->host_pdev is part of a union so bus->host_pdev != NULL is probably
      also true for PCIe devices, because there it accesses bus->host_pci. If
      we access the dev member at the offset defined in struct
      platform_device in struct pci_dev instead we probably get something
      else.
      
      This patch adds a new function which returns the host dev struct and
      NULL if we do not have a host dev. When this gets registered on MIPS
      brcm47xx we do not have a host dev in some situations.
      This function could also be used in other places.
      
      This problem was introduced in this commit:
      commit cae761b5
      Author: Rafa? Mi?ecki <zajec5@gmail.com>
      Date:   Sun Jun 28 17:17:13 2015 +0200
      
          bcma: populate bus DT subnodes as platform_device-s
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      53cd2fdb
  6. 26 7月, 2015 1 次提交
  7. 21 7月, 2015 1 次提交
  8. 02 3月, 2015 1 次提交
  9. 29 1月, 2015 2 次提交
  10. 24 1月, 2015 2 次提交
  11. 12 11月, 2014 2 次提交
  12. 28 10月, 2014 1 次提交
  13. 24 10月, 2014 1 次提交
  14. 01 10月, 2014 1 次提交
  15. 10 9月, 2014 4 次提交
  16. 08 7月, 2014 1 次提交
  17. 05 1月, 2014 1 次提交
  18. 20 12月, 2013 1 次提交
  19. 17 10月, 2013 1 次提交
  20. 23 7月, 2013 1 次提交
  21. 28 6月, 2013 1 次提交
  22. 07 3月, 2013 1 次提交
  23. 05 2月, 2013 1 次提交
  24. 31 1月, 2013 1 次提交
  25. 08 1月, 2013 1 次提交
  26. 04 1月, 2013 1 次提交
    • G
      Drivers: bcma: remove __dev* attributes. · 0f58a01d
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, and __devexit
      from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: "Rafał Miłecki" <zajec5@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0f58a01d
  27. 07 12月, 2012 1 次提交
  28. 22 11月, 2012 1 次提交
  29. 20 10月, 2012 3 次提交
  30. 16 10月, 2012 1 次提交
  31. 08 9月, 2012 1 次提交
    • S
      bcma: don't leak memory for PCIE, MIPS, GBIT cores · ee915927
      Saul St. John 提交于
      bcma_scan_bus allocates a bcma_core for each core found on the bus, but the
      memory for cores handled by the bcma driver itself was not being freed when
      the bus was unregistered. This patch adds special handling for the PCIE,
      MIPS, and GBIT COMMON cores, to ensure that their memory allocation is
      freed as well.
      
      Note that this patch doesn't address the memory allocated for the CC core,
      as that was corrected in my previous patch "bcma: register cc core driver,
      device."
      
      Cc: Rafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NSaul St. John <saul.stjohn@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ee915927
  32. 22 8月, 2012 1 次提交