1. 24 7月, 2015 4 次提交
    • J
      mfd: Remove MFD_CROS_EC_SPI depends on OF · fb9caeed
      Javier Martinez Canillas 提交于
      The ChromeOS EC SPI transport driver has a dependency on OF because it
      uses some OF helpers from the <linux/of.h> header. But there isn't a
      need for an explicit dependency since the header has stub functions if
      CONFIG_OF is not defined.
      
      Also, MFD_CROS_EC_SPI already depends on MFD_CROS_EC which in turn has
      a dependency on OF so in practice can't be selected without CONFIG_OF.
      Signed-off-by: NJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      fb9caeed
    • J
      platform/chrome: Don't make CHROME_PLATFORMS depends on X86 || ARM · d12bbcd3
      Javier Martinez Canillas 提交于
      The Chrome platform support depends on X86 || ARM because there are
      only Chromebooks using those architectures. But only some drivers
      depend on a given architecture, and the ones that do already have
      a dependency on their specific Kconfig symbol entries.
      
      An option is to also make CHROME_PLATFORMS depends on || COMPILE_TEST
      but is more future proof to remove the dependency and let the drivers
      be built in all architectures if possible to have more build coverage.
      Acked-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      d12bbcd3
    • C
      mfd: arizona: Fix initialisation of the PM runtime · 72e43164
      Charles Keepax 提交于
      The PM runtime core by default assumes a chip is suspended when runtime
      PM is enabled. Currently the arizona driver enables runtime PM when the
      chip is fully active and then disables the DCVDD regulator at the end of
      arizona_dev_init. This however has several problems, firstly the if we
      reach the end of arizona_dev_init, we did not properly follow all the
      proceedures for shutting down the chip, and most notably we never marked
      the chip as cache only so any writes occurring between then and the next
      PM runtime resume will be lost. Secondly, if we are already resumed when
      we reach the end of dev_init, then at best we get unbalanced regulator
      enable/disables at work we lose DCVDD whilst we need it.
      
      Additionally, since the commit 4f0216409f7c ("mfd: arizona: Add better
      support for system suspend"), the PM runtime operations may
      disable/enable the IRQ, so the IRQs must now be enabled before we call
      any PM operations.
      
      This patch adds a call to pm_runtime_set_active to inform the PM core
      that the device is starting up active and moves the PM enabling to
      around the IRQ initialisation to avoid any PM callbacks happening until
      the IRQs are initialised.
      
      Cc: stable@vger.kernel.org # v3.5+
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      72e43164
    • C
      mfd: arizona: Fix race between runtime suspend and IRQs · 11150929
      Charles Keepax 提交于
      The function arizona_irq_thread (the threaded handler for the arizona
      IRQs) calls pm_runtime_get_sync at the start to ensure that the chip is
      active as we handle the IRQ. If the chip is part way through a runtime
      suspend when an IRQ arrives the PM core will wait for the suspend to
      complete, before resuming. However, since commit 4f0216409f7c
      ("mfd: arizona: Add better support for system suspend") the runtime
      suspend function may call disable_irq, if the chip is going to fully
      power off, which will try to wait for any outstanding IRQs to complete.
      This results in deadlock as the IRQ thread is waiting for the PM
      operation to complete and the PM thread is waiting for the IRQ to
      complete.
      
      To avoid this situation we use disable_irq_nosync, which allows the
      suspending thread to finish the suspend without waiting for the IRQ to
      complete. This is safe because if an IRQ is being processed it can only
      be blocked at the pm_runtime_get_sync at the start of the handler
      otherwise it wouldn't be possible to suspend.
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      11150929
  2. 13 7月, 2015 1 次提交
    • L
      Revert "drm/i915: Use crtc_state->active in primary check_plane func" · 01e2d062
      Linus Torvalds 提交于
      This reverts commit dec4f799.
      
      Jörg Otte reports a NULL pointder dereference due to this commit, as
      'crtc_state' very much can be NULL:
      
              crtc_state = state->base.state ?
                      intel_atomic_get_crtc_state(state->base.state, intel_crtc) : NULL;
      
      So the change to test 'crtc_state->base.active' cannot possibly be
      correct as-is.
      
      There may be some other minimal fix (like just checking crtc_state for
      NULL), but I'm just reverting it now for the rc2 release, and people
      like Daniel Vetter who actually know this code will figure out what the
      right solution is in the longer term.
      Reported-and-bisected-by: NJörg Otte <jrg.otte@gmail.com>
      Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      01e2d062
  3. 11 7月, 2015 4 次提交
  4. 10 7月, 2015 7 次提交
  5. 09 7月, 2015 17 次提交
  6. 08 7月, 2015 7 次提交