1. 05 3月, 2015 1 次提交
  2. 14 1月, 2015 1 次提交
  3. 25 6月, 2013 1 次提交
    • L
      pinctrl: rip out the direct pinconf API · ad42fc6c
      Linus Walleij 提交于
      From the inception ot the pin config API there has been the
      possibility to get a handle at a pin directly and configure
      its electrical characteristics. For this reason we had:
      
      int pin_config_get(const char *dev_name, const char *name,
                     unsigned long *config);
      int pin_config_set(const char *dev_name, const char *name,
                     unsigned long config);
      int pin_config_group_get(const char *dev_name,
                     const char *pin_group,
                     unsigned long *config);
      int pin_config_group_set(const char *dev_name,
                     const char *pin_group,
                     unsigned long config);
      
      After the introduction of the pin control states that will
      control pins associated with devices, and its subsequent
      introduction to the device core, as well as the
      introduction of pin control hogs that can set up states on
      boot and optionally also at sleep, this direct pin control
      API is a thing of the past.
      
      As could be expected, it has zero in-kernel users.
      Let's delete this API and make our world simpler.
      Reported-by: NTony Lindgren <tony@atomide.com>
      Reviewed-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      ad42fc6c
  4. 18 6月, 2013 1 次提交
  5. 16 6月, 2013 1 次提交
  6. 03 10月, 2012 1 次提交
  7. 03 9月, 2012 1 次提交
  8. 17 8月, 2012 1 次提交
  9. 18 4月, 2012 1 次提交
  10. 07 3月, 2012 1 次提交
  11. 05 3月, 2012 1 次提交
    • S
      pinctrl: API changes to support multiple states per device · 6e5e959d
      Stephen Warren 提交于
      The API model is changed from:
      
      p = pinctrl_get(dev, "state1");
      pinctrl_enable(p);
      ...
      pinctrl_disable(p);
      pinctrl_put(p);
      p = pinctrl_get(dev, "state2");
      pinctrl_enable(p);
      ...
      pinctrl_disable(p);
      pinctrl_put(p);
      
      to this:
      
      p = pinctrl_get(dev);
      s1 = pinctrl_lookup_state(p, "state1");
      s2 = pinctrl_lookup_state(p, "state2");
      pinctrl_select_state(p, s1);
      ...
      pinctrl_select_state(p, s2);
      ...
      pinctrl_put(p);
      
      This allows devices to directly transition between states without
      disabling the pin controller programming and put()/get()ing the
      configuration data each time. This model will also better suit pinconf
      programming, which doesn't have a concept of "disable".
      
      The special-case hogging feature of pin controllers is re-written to use
      the regular APIs instead of special-case code. Hence, the pinmux-hogs
      debugfs file is removed; see the top-level pinctrl-handles files for
      equivalent data.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NDong Aisheng <dong.aisheng@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      6e5e959d
  12. 11 2月, 2012 3 次提交