1. 28 Jan, 2019 6 commits
    • YueHaibing's avatar
      pinctrl: ti-iodelay: Fix platform_no_drv_owner.cocci warnings · ff54d82b
      YueHaibing authored
      Remove .owner field if calls are used which set it automatically
      Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      ff54d82b
    • Vladimir Zapolskiy's avatar
      pinctrl: remove unused 'pinconf-config' debugfs interface · e7333903
      Vladimir Zapolskiy authored
      The main goal of the change is to remove .pin_config_dbg_parse_modify
      callback before a driver with its support appears. So far the in-kernel
      interface did not attract any users since its introduction 5 years ago.
      
      Originally .pin_config_dbg_parse_modify callback and the associated
      'pinconf-config' debugfs file were introduced in commit f07512e6
      ("pinctrl/pinconfig: add debug interface"), a short description of
      'pinconf-config' usage for debugging can be expressed this way:
      
      Write to 'pinconf-config' (see pinconf_dbg_config_write() function):
      
      % echo -n modify $map_type $device_name $state_name $pin_name $config > \
      	/sys/kernel/debug/pinctrl/$pinctrl/pinconf-config
      
      It supposes to update a global (therefore single!) 'pinconf_dbg_conf'
      variable with an alternative setting, the arguments should match
      an existing pinconf device and some registered pinctrl mapping 'map':
      
      * $map_type is either 'config_pin' or 'config_group', it should match
        'map->type' value of PIN_MAP_TYPE_CONFIGS_PIN or
         PIN_MAP_TYPE_CONFIGS_GROUP accordingly,
      * $device_name should match 'map->dev_name' string value,
      * $state_name should match 'map->name' string value,
      * $pin_name should match 'map->data.configs.group_or_pin' string value,
      
      If all above has matched, then $config is a new value to be set by calling
      pinconfops->pin_config_dbg_parse_modify(pctldev, config, matched_config).
      
      After a successful write into 'pinconf-config' a user can read the file
      to get information about that single modified pin configuration.
      
      The fact is .pin_config_dbg_parse_modify callback has never been defined
      in 'struct pinconf_ops' of any pinconf driver, thus an actual modification
      of a pin or group state on any present pinconf controller does not happen,
      and it declares that all related code is no more than dead code.
      
      I discovered the issue while attempting to add .pin_config_dbg_parse_modify
      support in some drivers and found that too short 'MAX_NAME_LEN' set by
      
        drivers/pinctrl/pinconf.c:372:#define MAX_NAME_LEN 15
      
      is practically insufficient to store a regular pinctrl device name,
      which are like 'e6060000.pin-controller-sh-pfc' or pin names like
      'MX6QDL_PAD_ENET_REF_CLK', thus it is another indicator that the code
      is barely usable, insufficiently tested and unprepossessing.
      
      Of course it might be possible to increase MAX_NAME_LEN, and then add
      .pin_config_dbg_parse_modify callbacks to the drivers, but the whole
      idea of such a limited debug option looks inviable. A more flexible
      way to functionally substitute the original approach is to implicitly
      or explicitly use pinctrl_select_state() function whenever needed.
      Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      Cc: Laurent Meunier <laurent.meunier@st.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      e7333903
    • Vladimir Zapolskiy's avatar
      pinctrl: remove pinctrl/machine.h inclusion from pinctrl/pinconf.h · 87eff9af
      Vladimir Zapolskiy authored
      The change adds explicit inclusion of linux/pinctrl/machine.h header
      to the only needed pinctrl-madera-core.c file, and therefore inclusion
      of pinctrl/machine.h header from pinctrl/pinconf.h can be removed.
      
      The change is preparatory to a follow-up reversal of commit f07512e6
      ("pinctrl/pinconfig: add debug interface").
      Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      Cc: Charles Keepax <ckeepax@opensource.cirrus.com>
      Reviewed-by Richard Fitzgerald <rf@opensource.cirrus.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      87eff9af
    • Linus Walleij's avatar
    • Bai Ping's avatar
      dt-bindings: imx: Add pinctrl binding doc for imx8mm · c1c9d413
      Bai Ping authored
      Add binding doc imx8mm pinctrl driver.
      Signed-off-by: default avatarBai Ping <ping.bai@nxp.com>
      Acked-by: default avatarAisheng Dong <aisheng.dong@nxp.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      c1c9d413
    • Ramon Fried's avatar
      pinctrl.txt: Remove outdated information · 12742835
      Ramon Fried authored
      Returning -EAGAIN is no longer supported by pin_config_group_set()
      since ad42fc6c ("pinctrl: rip out the direct pinconf API")
      
      Remove the relevant section from the documentation.
      Signed-off-by: default avatarRamon Fried <ramon.fried@linux.intel.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      12742835
  2. 24 Jan, 2019 12 commits
  3. 22 Jan, 2019 1 commit
  4. 21 Jan, 2019 9 commits
  5. 14 Jan, 2019 1 commit
    • Martin Blumenstingl's avatar
      pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins · 6daae002
      Martin Blumenstingl authored
      Gigabit Ethernet requires the Ethernet TXD0..3 and RXD0..3 data lines.
      Add the missing eth_rxd2 and eth_rxd3 definitions so we don't have to
      rely on the bootloader to set them up correctly.
      
      The vendor u-boot sources for Odroid-C1 use the following Ethernet
      pinmux configuration:
        SET_CBUS_REG_MASK(PERIPHS_PIN_MUX_6, 0x3f4f);
        SET_CBUS_REG_MASK(PERIPHS_PIN_MUX_7, 0xf00000);
      This translates to the following pin groups in the mainline kernel:
      - register 6 bit  0: eth_rxd1 (DIF_0_P)
      - register 6 bit  1: eth_rxd0 (DIF_0_N)
      - register 6 bit  2: eth_rx_dv (DIF_1_P)
      - register 6 bit  3: eth_rx_clk (DIF_1_N)
      - register 6 bit  6: eth_tx_en (DIF_3_P)
      - register 6 bit  8: eth_ref_clk (DIF_3_N)
      - register 6 bit  9: eth_mdc (DIF_4_P)
      - register 6 bit 10: eth_mdio_en (DIF_4_N)
      - register 6 bit 11: eth_tx_clk (GPIOH_9)
      - register 6 bit 12: eth_txd2 (GPIOH_8)
      - register 6 bit 13: eth_txd3 (GPIOH_7)
      - register 7 bit 20: eth_txd0_0 (GPIOH_6)
      - register 7 bit 21: eth_txd1_0 (GPIOH_5)
      - register 7 bit 22: eth_rxd3 (DIF_2_P)
      - register 7 bit 23: eth_rxd2 (DIF_2_N)
      
      All functions except eth_rxd2 and eth_rxd3 are already supported by the
      pinctrl-meson8b driver.
      Suggested-by: default avatarJianxin Pan <jianxin.pan@amlogic.com>
      Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Reviewed-by: default avatarKevin Hilman <khilman@baylibre.com>
      Tested-by: default avatarEmiliano Ingrassia <ingrassia@epigenesys.com>
      Reviewed-by: default avatarEmiliano Ingrassia <ingrassia@epigenesys.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      6daae002
  6. 11 Jan, 2019 8 commits
  7. 07 Jan, 2019 3 commits
    • Linus Torvalds's avatar
      Linux 5.0-rc1 · bfeffd15
      Linus Torvalds authored
      bfeffd15
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v4.21-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 85e1ffbd
      Linus Torvalds authored
      Pull more Kbuild updates from Masahiro Yamada:
      
       - improve boolinit.cocci and use_after_iter.cocci semantic patches
      
       - fix alignment for kallsyms
      
       - move 'asm goto' compiler test to Kconfig and clean up jump_label
         CONFIG option
      
       - generate asm-generic wrappers automatically if arch does not
         implement mandatory UAPI headers
      
       - remove redundant generic-y defines
      
       - misc cleanups
      
      * tag 'kbuild-v4.21-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kconfig: rename generated .*conf-cfg to *conf-cfg
        kbuild: remove unnecessary stubs for archheader and archscripts
        kbuild: use assignment instead of define ... endef for filechk_* rules
        arch: remove redundant UAPI generic-y defines
        kbuild: generate asm-generic wrappers if mandatory headers are missing
        arch: remove stale comments "UAPI Header export list"
        riscv: remove redundant kernel-space generic-y
        kbuild: change filechk to surround the given command with { }
        kbuild: remove redundant target cleaning on failure
        kbuild: clean up rule_dtc_dt_yaml
        kbuild: remove UIMAGE_IN and UIMAGE_OUT
        jump_label: move 'asm goto' support test to Kconfig
        kallsyms: lower alignment on ARM
        scripts: coccinelle: boolinit: drop warnings on named constants
        scripts: coccinelle: check for redeclaration
        kconfig: remove unused "file" field of yylval union
        nds32: remove redundant kernel-space generic-y
        nios2: remove unneeded HAS_DMA define
      85e1ffbd
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ac5eed2b
      Linus Torvalds authored
      Pull perf tooling updates form Ingo Molnar:
       "A final batch of perf tooling changes: mostly fixes and small
        improvements"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (29 commits)
        perf session: Add comment for perf_session__register_idle_thread()
        perf thread-stack: Fix thread stack processing for the idle task
        perf thread-stack: Allocate an array of thread stacks
        perf thread-stack: Factor out thread_stack__init()
        perf thread-stack: Allow for a thread stack array
        perf thread-stack: Avoid direct reference to the thread's stack
        perf thread-stack: Tidy thread_stack__bottom() usage
        perf thread-stack: Simplify some code in thread_stack__process()
        tools gpio: Allow overriding CFLAGS
        tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command
        tools thermal tmon: Allow overriding CFLAGS assignments
        tools power x86_energy_perf_policy: Override CFLAGS assignments and add LDFLAGS to build command
        perf c2c: Increase the HITM ratio limit for displayed cachelines
        perf c2c: Change the default coalesce setup
        perf trace beauty ioctl: Beautify USBDEVFS_ commands
        perf trace beauty: Export function to get the files for a thread
        perf trace: Wire up ioctl's USBDEBFS_ cmd table generator
        perf beauty ioctl: Add generator for USBDEVFS_ ioctl commands
        tools headers uapi: Grab a copy of usbdevice_fs.h
        perf trace: Store the major number for a file when storing its pathname
        ...
      ac5eed2b