1. 09 May, 2016 3 commits
    • Arnd Bergmann's avatar
      HSI: omap-ssi: move omap_ssi_port_update_fclk · c2f90a46
      Arnd Bergmann authored
      After the clk change support, the ssi omap ssi core driver
      now calls into the port driver to change fclk. This function
      was previously inside of an #ifdef, because it was only used
      when CONFIG_PM is enabled. Now it also gets used without
      power management support:
      
      drivers/hsi/built-in.o: In function `ssi_clk_event':
      omap_ssi_port.c:(.text+0x1bf8): undefined reference to `omap_ssi_port_update_fclk'
      
      This moves the function outside of the CONFIG_PM guard.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 4bcf7414 ("HSI: omap-ssi: add clk change support")
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      c2f90a46
    • Arnd Bergmann's avatar
      HSI: omap-ssi: include pinctrl header files · ac8e3ff3
      Arnd Bergmann authored
      The driver now uses some pinctrl functions, but fails
      to build if PINCTRL is disabled because the respective
      header files are only included indirectly:
      
      drivers/hsi/controllers/omap_ssi_core.c: In function 'ssi_clk_event':
      drivers/hsi/controllers/omap_ssi_core.c:317:4: error: implicit declaration of function 'pinctrl_pm_select_idle_state' [-Werror=implicit-function-declaration]
      drivers/hsi/controllers/omap_ssi_core.c:339:4: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
      drivers/hsi/controllers/omap_ssi_port.c: In function 'ssi_flush':
      drivers/hsi/controllers/omap_ssi_port.c:520:2: error: implicit declaration of function 'pinctrl_pm_select_idle_state' [-Werror=implicit-function-declaration]
      
      This includes the headers from the files that call the functions,
      which works even if pinctrl is turned off.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 4bcf7414 ("HSI: omap-ssi: add clk change support")
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      ac8e3ff3
    • Arnd Bergmann's avatar
      HSI: omap-ssi: add COMMON_CLK dependency · 53c70350
      Arnd Bergmann authored
      Enabling the omap ssi driver without COMMON_CLK results in a build failure:
      
      drivers/hsi/controllers/omap_ssi_core.c: In function 'ssi_clk_event':
      drivers/hsi/controllers/omap_ssi_core.c:304:7: error: 'PRE_RATE_CHANGE' undeclared (first use in this function)
      
      This adds a Kconfig dependency to avoid the invalid configuration.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 4bcf7414 ("HSI: omap-ssi: add clk change support")
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      53c70350
  2. 02 May, 2016 6 commits
  3. 18 Apr, 2016 1 commit
  4. 17 Apr, 2016 5 commits
  5. 16 Apr, 2016 7 commits
  6. 15 Apr, 2016 17 commits
  7. 14 Apr, 2016 1 commit
    • Mike Snitzer's avatar
      dm cache metadata: fix READ_LOCK macros and cleanup WRITE_LOCK macros · 9567366f
      Mike Snitzer authored
      The READ_LOCK macro was incorrectly returning -EINVAL if
      dm_bm_is_read_only() was true -- it will always be true once the cache
      metadata transitions to read-only by dm_cache_metadata_set_read_only().
      
      Wrap READ_LOCK and WRITE_LOCK multi-statement macros in do {} while(0).
      Also, all accesses of the 'cmd' argument passed to these related macros
      are now encapsulated in parenthesis.
      
      A follow-up patch can be developed to eliminate the use of macros in
      favor of pure C code.  Avoiding that now given that this needs to apply
      to stable@.
      Reported-by: default avatarBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      Fixes: d14fcf3d ("dm cache: make sure every metadata function checks fail_io")
      Cc: stable@vger.kernel.org
      9567366f