1. 11 Feb, 2018 1 commit
    • Linus Torvalds's avatar
      vfs: do bulk POLL* -> EPOLL* replacement · a9a08845
      Linus Torvalds authored
      This is the mindless scripted replacement of kernel use of POLL*
      variables as described by Al, done by this script:
      
          for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
              L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
              for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done
          done
      
      with de-mangling cleanups yet to come.
      
      NOTE! On almost all architectures, the EPOLL* constants have the same
      values as the POLL* constants do.  But they keyword here is "almost".
      For various bad reasons they aren't the same, and epoll() doesn't
      actually work quite correctly in some cases due to this on Sparc et al.
      
      The next patch from Al will sort out the final differences, and we
      should be all done.
      Scripted-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a9a08845
  2. 07 Feb, 2018 3 commits
    • Olivier Moysan's avatar
      ASoC: stm32: add of dependency for stm32 drivers · 276d70f7
      Olivier Moysan authored
      Add of dependency for STM32 ASoC drivers.
      DFSDM of dependency is already inherited
      from STM32_DFSDM_ADC dependency.
      Signed-off-by: default avatarolivier moysan <olivier.moysan@st.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      276d70f7
    • Johan Hovold's avatar
      ASoC: mt8173-rt5650: fix child-node lookup · 3a0a7b26
      Johan Hovold authored
      This driver used the wrong OF-helper when looking up the optional
      capture-codec child node during probe. Instead of searching just
      children of the sound node, a tree-wide depth-first search starting at
      the unrelated platform node was done. Not only could this end up
      matching an unrelated node or no node at all; the platform node could
      also be prematurely freed since of_find_node_by_name() drops a reference
      to its first argument. This particular pattern has been observed leading
      to crashes after probe deferrals in other drivers.
      
      Fix this by dropping the broken call to of_find_node_by_name() and
      keeping only the second, correct lookup using of_get_child_by_name()
      while taking care not to bail out if the optional node is missing.
      
      Note that this also addresses two capture-codec node-reference leaks
      (one for each of the original helper calls).
      
      Compile tested only.
      
      Fixes: d349caeb ("ASoC: mediatek: Add second I2S on mt8173-rt5650 machine driver")
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      3a0a7b26
    • KaiChieh Chuang's avatar
      ASoC: dapm: fix debugfs read using path->connected · 28735af3
      KaiChieh Chuang authored
      This fix a bug in dapm_widget_power_read_file(),
      where it may sent opposite order of source/sink widget
      into the p->connected().
      
      for example,
      static int connected_check(source, sink);
      {"w_sink", NULL, "w_source", connected_check}
      
      the dapm_widget_power_read_file() will query p->connected()
      in following case
      	p->conneted("w_source", "w_sink")
      	p->conneted("w_sink", "w_source")
      we should avoid the last case, since it's the wrong order (source/sink)
      as declared in snd_soc_dapm_route.
      Signed-off-by: default avatarKaiChieh Chuang <kaichieh.chuang@mediatek.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      28735af3
  3. 26 Jan, 2018 6 commits
  4. 25 Jan, 2018 1 commit
    • Tony Lindgren's avatar
      ASoC: Fix twl4030 and 6040 regression by adding back read and write · 8146acff
      Tony Lindgren authored
      Commit 3bb0f7c3 ("ASoC: don't use snd_soc_write/read on twl4030")
      caused regressions for both twl4030 and twl6040 as it assumes the
      ASoC driver is using regmap. As a side effect, this also causes a
      considerable increase in idle power consumption omap3 boards using
      twl4030 as the PMIC.
      
      This is because the removal of read and write function pointers
      causes some of the ASoC IO functions to not do anything. For example,
      snd_soc_register_card() calls snd_soc_dapm_new_widgets() that calls
      snd_soc_codec_drv_read() that now does nothing.
      
      A long term solution suggested by Mark Brown <broonie@kernel.org>
      is to make the twl drivers use regmap by adding a call to
      snd_soc_codec_set_regmap(). This however needs more consideration
      as currently the driver internal reads do caching and we would have
      both regmap access and internal read/write access accessing the same
      hardware registers.
      
      So to fix the regression, let's just do a partial revert adding back
      the read and write function pointers. Note that other non-regmap
      ASoC drivers may need similar patches.
      
      Fixes: 3bb0f7c3 ("ASoC: don't use snd_soc_write/read on twl4030")
      Fixes: 93a00c46 ("ASoC: don't use snd_soc_write/read on twl6040")
      Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      8146acff
  5. 24 Jan, 2018 5 commits
  6. 23 Jan, 2018 1 commit
  7. 22 Jan, 2018 5 commits
  8. 20 Jan, 2018 2 commits
  9. 19 Jan, 2018 1 commit
  10. 18 Jan, 2018 8 commits
  11. 17 Jan, 2018 3 commits
  12. 16 Jan, 2018 4 commits