lkml.org 
[lkml]   [2018]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 159/241] ath10k: fix compile time sanity check for CE4 buffer size
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>


    [ Upstream commit 62ca0690cd495bb7c1414cdf0cf790c2922a1d79 ]

    In 'ath10k_ce_alloc_pipe' the compile time sanity check to
    ensure that there is sufficient buffers in CE4 for HTT Tx
    MSDU descriptors, but this did not take into account of the
    case with 'peer flow control' enabled, fix this.

    Cc: Michal Kazior <michal.kazior@tieto.com>
    Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
    Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/wireless/ath/ath10k/ce.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/wireless/ath/ath10k/ce.c
    +++ b/drivers/net/wireless/ath/ath10k/ce.c
    @@ -1059,7 +1059,7 @@ int ath10k_ce_alloc_pipe(struct ath10k *
    */
    BUILD_BUG_ON(2 * TARGET_NUM_MSDU_DESC >
    (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));
    - BUILD_BUG_ON(2 * TARGET_10X_NUM_MSDU_DESC >
    + BUILD_BUG_ON(2 * TARGET_10_4_NUM_MSDU_DESC_PFC >
    (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));
    BUILD_BUG_ON(2 * TARGET_TLV_NUM_MSDU_DESC >
    (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));

    \
     
     \ /
      Last update: 2018-03-19 20:22    [W:3.705 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site