Skip to content
Snippets Groups Projects
  1. Feb 11, 2025
    • AngeloGioacchino Del Regno's avatar
      scsi: ufs: ufs-mediatek: Remove useless mediatek,ufs-support-va09 property · 4af7adba
      AngeloGioacchino Del Regno authored and Julien Massot's avatar Julien Massot committed
      
      Remove checking the mediatek,ufs-support-va09 property to decide
      whether to try to support the VA09 regulator handling and change
      the ufs_mtk_init_va09_pwr_ctrl() function to make it call
      devm_regulator_get_optional(): if the regulator is present, then
      we set the UFS_MTK_CAP_VA09_PWR_CTRL, effectively enabling the
      handling of the VA09 regulator based on that.
      
      Also, make sure to pass the return value of the call to
      devm_regulator_get_optional() to the probe function, so that
      if it returns a probe deferral, the appropriate action will be
      taken.
      
      While at it, remove the error print (disguised as info...) when
      the va09 regulator was not found.
      
      Fixes: ac8c2459 ("scsi: ufs-mediatek: Decouple features from platform bindings")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      4af7adba
  2. Feb 06, 2025
  3. Feb 04, 2025
  4. Jan 16, 2025
  5. Jan 15, 2025
    • AngeloGioacchino Del Regno's avatar
      soc: mediatek: mt8188-mmsys: Migrate to MMSYS_ROUTE() macro · 405ccf26
      AngeloGioacchino Del Regno authored
      
      Change the initialization data in the arrays of structure
      mtk_mmsys_routes to make use of the MMSYS_ROUTE() macro:
      this will make sure that each array entry's SEL value fits
      in its corresponding register mask with a compile time check.
      
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      405ccf26
    • AngeloGioacchino Del Regno's avatar
      soc: mediatek: mtk-mmsys: Add compile time check for mmsys routes · 6e909221
      AngeloGioacchino Del Regno authored
      
      Every MediaTek SoC with multimedia capabilities has an array of
      structure mtk_mmsys_routes that defines a multimedia connection
      between hardware components.
      
      This connection is activated by writing a (masked) value in each
      specific register, and the association between from->to path and
      value to write is expressed as an entry in that array.
      
      Failing to set the right path does not give any meaningful error
      and makes things to simply not work as the data will either not
      be retrieved from the right input port, or will be written to
      the wrong output port (or both): since a misconfiguration may
      effectively still be a possibly correct configuration at the HW
      level, this may be only giving side effects in terms of simply
      getting no functionality but, again, no errors.
      
      In order to reduce room for mistakes in declarations of the
      mmsys routes, add a macro that compile-time checks that the
      provided value does at least fit in the register mask.
      
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      6e909221
  6. Jan 14, 2025
Loading