1. 17 Jul, 2018 7 commits
  2. 16 Jul, 2018 13 commits
  3. 09 Jul, 2018 3 commits
    • Douglas Anderson's avatar
      pinctrl: qcom: spmi-gpio: Fix pmic_gpio_config_get() to be compliant · 1cf86bc2
      Douglas Anderson authored
      If you do this on an sdm845 board:
        grep "" /sys/kernel/debug/pinctrl/*spmi:pmic*/pinconf-groups
      
      ...it looks like nonsense.  For every pin you see listed:
        input bias disabled, input bias high impedance, input bias pull down, input bias pull up, ...
      
      That's because pmic_gpio_config_get() isn't complying with the rules
      that pinconf_generic_dump_one() expects.  Specifically for boolean
      parameters (anything with a "struct pin_config_item" where has_arg is
      false) the function expects that the function should return its value
      not through the "config" parameter but should return "0" if the value
      is set and "-EINVAL" if the value isn't set.
      
      Let's fix this.
      
      From a quick sample of other pinctrl drivers, it appears to be
      tradition to also return 1 through the config parameter for these
      boolean parameters when they exist.  I'm not one to knock tradition,
      so I'll follow tradition and return 1 in these cases.  While I'm at
      it, I'll also continue searching for four leaf clovers, kocking on
      wood three times, and trying not to break mirrors.
      
      NOTE: This also fixes an apparent typo for reading
      PIN_CONFIG_BIAS_DISABLE where the old driver was accidentally
      using "=" instead of "==" and thus was setting some internal
      state when you tried to query PIN_CONFIG_BIAS_DISABLE.  Oops.
      
      Fixes: eadff302 ("pinctrl: Qualcomm SPMI PMIC GPIO pin controller driver")
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      1cf86bc2
    • Douglas Anderson's avatar
      pinctrl: msm: Fix msm_config_group_get() to be compliant · 05e0c828
      Douglas Anderson authored
      If you do this on an sdm845 board:
        cat /sys/kernel/debug/pinctrl/3400000.pinctrl/pinconf-groups
      
      ...it looks like nonsense.  For every pin you see listed:
        input bias bus hold, input bias disabled, input bias pull down, input bias pull up
      
      That's because msm_config_group_get() isn't complying with the rules
      that pinconf_generic_dump_one() expects.  Specifically for boolean
      parameters (anything with a "struct pin_config_item" where has_arg is
      false) the function expects that the function should return its value
      not through the "config" parameter but should return "0" if the value
      is set and "-EINVAL" if the value isn't set.
      
      Let's fix this.
      
      From a quick sample of other pinctrl drivers, it appears to be
      tradition to also return 1 through the config parameter for these
      boolean parameters when they exist.  I'm not one to knock tradition,
      so I'll follow tradition and return 1 in these cases.  While I'm at
      it, I'll also continue searching for four leaf clovers, kocking on
      wood three times, and trying not to break mirrors.
      
      Fixes: f365be09 ("pinctrl: Add Qualcomm TLMM driver")
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      05e0c828
    • Douglas Anderson's avatar
      pinctrl: Document pin_config_group_get() return codes like pin_config_get() · 63f3fb8d
      Douglas Anderson authored
      The pinconf_generic_dump_one() function makes the assumption that
      pin_config_group_get() should return -EINVAL and -ENOTSUPP just like
      pin_config_get() does.  Document that so it's more obvious.
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      63f3fb8d
  4. 02 Jul, 2018 2 commits
  5. 29 Jun, 2018 4 commits
  6. 28 Jun, 2018 3 commits
  7. 26 Jun, 2018 1 commit
  8. 18 Jun, 2018 5 commits
  9. 16 Jun, 2018 2 commits
    • Linus Torvalds's avatar
      Linux 4.18-rc1 · ce397d21
      Linus Torvalds authored
      ce397d21
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20180616' of git://git.kernel.dk/linux-block · 265c5596
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A collection of fixes that should go into -rc1. This contains:
      
         - bsg_open vs bsg_unregister race fix (Anatoliy)
      
         - NVMe pull request from Christoph, with fixes for regressions in
           this window, FC connect/reconnect path code unification, and a
           trace point addition.
      
         - timeout fix (Christoph)
      
         - remove a few unused functions (Christoph)
      
         - blk-mq tag_set reinit fix (Roman)"
      
      * tag 'for-linus-20180616' of git://git.kernel.dk/linux-block:
        bsg: fix race of bsg_open and bsg_unregister
        block: remov blk_queue_invalidate_tags
        nvme-fabrics: fix and refine state checks in __nvmf_check_ready
        nvme-fabrics: handle the admin-only case properly in nvmf_check_ready
        nvme-fabrics: refactor queue ready check
        blk-mq: remove blk_mq_tagset_iter
        nvme: remove nvme_reinit_tagset
        nvme-fc: fix nulling of queue data on reconnect
        nvme-fc: remove reinit_request routine
        blk-mq: don't time out requests again that are in the timeout handler
        nvme-fc: change controllers first connect to use reconnect path
        nvme: don't rely on the changed namespace list log
        nvmet: free smart-log buffer after use
        nvme-rdma: fix error flow during mapping request data
        nvme: add bio remapping tracepoint
        nvme: fix NULL pointer dereference in nvme_init_subsystem
        blk-mq: reinit q->tag_set_list entry only after grace period
      265c5596