[Linux-stm32] [PATCH v6 1/2] net: stmmac: add support for platform specific reset

Simon Horman simon.horman at corigine.com
Tue Apr 4 15:24:17 UTC 2023


On Mon, Apr 03, 2023 at 05:23:01PM -0500, Shenwei Wang wrote:
> This patch adds support for platform-specific reset logic in the
> stmmac driver. Some SoCs require a different reset mechanism than
> the standard dwmac IP reset. To support these platforms, a new function
> pointer 'fix_soc_reset' is added to the plat_stmmacenet_data structure.
> The stmmac_reset in hwif.h is modified to call the 'fix_soc_reset'
> function if it exists. This enables the driver to use the platform-specific
> reset logic when necessary.
> 
> Signed-off-by: Shenwei Wang <shenwei.wang at nxp.com>

Reviewed-by: Simon Horman <simon.horman at corigine.com>




More information about the Linux-stm32 mailing list