diff options
author | Eyal Harari <Eyal.Harari@freesacle.com> | 2014-06-03 05:34:13 (GMT) |
---|---|---|
committer | Mandy Lavi <mandy.lavi@freescale.com> | 2014-07-21 06:15:16 (GMT) |
commit | 087f4784b96585b712b62a110b0fe83e45ae4351 (patch) | |
tree | 02552af48768f80f5df999f50a77333c037a7108 /drivers/net/ethernet/freescale/fman/inc | |
parent | 1f8369e6c8f28c7f1667af3254de31ccb9eacde4 (diff) | |
download | linux-fsl-qoriq-087f4784b96585b712b62a110b0fe83e45ae4351.tar.xz |
FMD: DSAR - fix deep sleep entry sequence
The current sequence fixes the order of operations executed
when entering deep sleep state.
It also implements a workaround for a hardware bug by writing
to fm_cld register - disabling DMA after a short idle period.
Signed-off-by: Eyal Harari <Eyal.Harari@freesacle.com>
Change-Id: I2c73406543495dad5a7fb240a2e8fab01b81e05e
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/inc')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h index 3a62b8d..3d5401c 100644 --- a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h +++ b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_port_ext.h @@ -1499,11 +1499,7 @@ typedef struct t_FmPortDsarParams @Description Enter Deep Sleep Auto Response mode. This function write the apropriate values to in the relevant - tables in the MURAM. It then set the Tx port in independent - mode as needed and redirect the receive flow to go through the - Dsar Fman-ctrl code - - Calling this routine invalidates the descriptor. + tables in the MURAM. @Param[in] h_FmPortRx - FM PORT module descriptor @Param[in] params - Auto Response parameters @@ -1515,6 +1511,23 @@ typedef struct t_FmPortDsarParams t_Error FM_PORT_EnterDsar(t_Handle h_FmPortRx, t_FmPortDsarParams *params); /**************************************************************************//** + @Function FM_PORT_EnterDsarFinal + + @Description Enter Deep Sleep Auto Response mode. + This function sets the Tx port in independent mode as needed + and redirect the receive flow to go through the + Dsar Fman-ctrl code + + @Param[in] h_DsarRxPort - FM Rx PORT module descriptor + @Param[in] h_DsarTxPort - FM Tx PORT module descriptor + + @Return E_OK on success; Error code otherwise. + + @Cautions Allowed only following FM_PORT_Init(). +*//***************************************************************************/ +t_Error FM_PORT_EnterDsarFinal(t_Handle h_DsarRxPort, t_Handle h_DsarTxPort); + +/**************************************************************************//** @Function FM_PORT_ExitDsar @Description Exit Deep Sleep Auto Response mode. |