1. 18 1月, 2021 1 次提交
    • L
      pinctrl: renesas: Make sure the pin type is updated after setting the MUX · cc6aa80d
      Lad Prabhakar 提交于
      By default on startup all the pin types are configured to
      PINMUX_TYPE_NONE (in sh_pfc_map_pins()), when pin is set as GPIO the
      pin type is updated to PINMUX_TYPE_GPIO. But the type is not updated
      when the pin is set as a function in sh_pfc_pinctrl_pin_set() or
      sh_pfc_pinctrl_group_set() calls (these calls only set the MUX if
      the pin type is PINMUX_TYPE_NONE ie unused).
      
      So with the current implementation pin functionality could be overwritten
      silently, for example if the same pin is added for SPI and serial.
      
      This patch makes sure of updating pin type after every successful call to
      sh_pfc_config_mux() and thus fixing from pin functionality to be
      overwritten. Also a warning message is printed if the current pin is being
      overwritten before abort.
      
      This also avoids pin re-muxing to same type that is for example from
      command line device is asked to re-probe/select (mmc dev x) we return
      early with success in this case as the pin is already muxed.
      Signed-off-by: NLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
      Reviewed-by: NBiju Das <biju.das.jz@bp.renesas.com>
      cc6aa80d
  2. 17 1月, 2021 1 次提交
    • T
      Merge branch '2021-01-15-assorted-improvements' · 14ea1b36
      Tom Rini 提交于
      - Add MBR partition layout writing supporting, clean up code.
      - A large number of assorted console/iomux cleanups
      - A large number of board_r related cleanups.
      - Log enhancements
      14ea1b36
  3. 16 1月, 2021 38 次提交