1. 21 2月, 2016 2 次提交
    • P
      drivers/hwtracing: make coresight-* explicitly non-modular · 941943cf
      Paul Gortmaker 提交于
      None of the Kconfig currently controlling compilation of any of
      the files here are tristate, meaning that none of it currently
      is being built as a module by anyone.
      
      We need not be concerned about .remove functions and blocking the
      unbind sysfs operations, since that was already done in a recent
      commit.
      
      Lets remove any remaining modular references, so that when reading the
      drivers there is no doubt they are builtin-only.
      
      All drivers get mostly the same changes, so they are handled in batch.
      Changes are (1) convert to builtin_amba_driver, (2) delete module.h
      include where unused, and (3) relocate the description into the
      comments so we don't need MODULE_DESCRIPTION and associated tags.
      
      The etm3x and etm4x use module_param_named, and have been adjusted
      to just include moduleparam.h for that purpose.
      
      In commit f309d444 ("platform_device:
      better support builtin boilerplate avoidance") we introduced the
      builtin_driver macro.
      
      Here we use that support and extend it to amba driver registration,
      so where a driver is clearly non-modular and builtin-only, we can
      update with the simple mapping of
      
           module_amba_driver(...)  ---> builtin_amba_driver(...)
      
      Since module_amba_driver() uses the same init level priority as
      builtin_amba_driver() the init ordering remains unchanged with
      this commit.
      
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      941943cf
    • M
      coresight: moving PM runtime operations to core framework · 5da5325f
      Mathieu Poirier 提交于
      Moving PM runtime operations in Coresight devices enable() and
      disable() API to the framework core when a path is setup.  That
      way the runtime core doesn't have to be involved everytime a
      path is enabled.  It also avoids calling runtime PM operations
      in IRQ context.
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5da5325f
  2. 08 2月, 2016 1 次提交
    • M
      coresight: removing bind/unbind options from sysfs · b15f0fb6
      Mathieu Poirier 提交于
      The coresight drivers have absolutely no control over bind and unbind
      operations triggered from sysfs. The operations simply can't be
      cancelled or denied event when one or several tracing sessions are
      under way.  Since the memory associated to individual device is
      invariably freed, the end result is a kernel crash when the path from
      source to sink is travelled again as demonstrated here[1].
      
      One solution could be to keep track of all the path (i.e tracing
      session) that get created and iterate through the elements of those path
      looking for the coresight device that is being removed.  This proposition
      doesn't scale well since there is no upper bound on the amount of
      concurrent trace session that can be created.
      
      With the above in mind, this patch prevent devices from being unbounded
      from their driver by using the driver->suppress_bind_attr option.  That way
      trace sessions can be managed without fearing to loose devices.
      
      Since device can't be removed anymore the xyz_remove() functions found in
      each driver is also removed.
      
      [1]. http://www.spinics.net/lists/arm-kernel/msg474952.htmlReported-by: NRabin Vincent <rabin@rab.in>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b15f0fb6
  3. 09 6月, 2015 1 次提交
  4. 25 5月, 2015 2 次提交
  5. 03 4月, 2015 1 次提交
  6. 27 3月, 2015 1 次提交
  7. 04 2月, 2015 1 次提交
  8. 27 11月, 2014 1 次提交
  9. 08 11月, 2014 1 次提交