On Fri, Mar 13, 2015 at 05:37:59PM +0530, Avinash Patil wrote:
> From: Zhaoyang Liu <li...@marvell.com>
> 
> This patch moves SKB allocation for RX packets from current
> place i.e. after reading MP regs to place where we already
> have read data from SDIO bus ie after cmd53.
> 
> mp_rx_aggr_setup has been modified accordingly to set
> skb_arr to NULL.
> 
> Signed-off-by: Zhaoyang Liu <li...@marvell.com>
> Signed-off-by: Shengzhen Li <s...@marvell.com>
> Reviewed-by: Amitkumar Karwar <akar...@marvell.com>
> Reviewed-by: Cathy Luo <c...@marvell.com>
> Reviewed-by: Avinash Patil <pat...@marvell.com>
> ---
>  drivers/net/wireless/mwifiex/sdio.c | 59 
> ++++++++++++++++++-------------------
>  drivers/net/wireless/mwifiex/sdio.h |  8 ++---
>  2 files changed, 33 insertions(+), 34 deletions(-)
> 
> diff --git a/drivers/net/wireless/mwifiex/sdio.c 
> b/drivers/net/wireless/mwifiex/sdio.c
> index fdeeb67..330e9d0 100644
> --- a/drivers/net/wireless/mwifiex/sdio.c
> +++ b/drivers/net/wireless/mwifiex/sdio.c

[snip]

> @@ -1538,24 +1550,11 @@ static int mwifiex_process_int_status(struct 
> mwifiex_adapter *adapter)
>                                       rx_len);
>                               return -1;
>                       }
> -                     rx_len = (u16) (rx_blocks * MWIFIEX_SDIO_BLOCK_SIZE);
>  
> -                     skb = mwifiex_alloc_dma_align_buf(rx_len,
> -                                                       GFP_KERNEL |
> -                                                       GFP_DMA);
> -
> -                     if (!skb) {
> -                             dev_err(adapter->dev, "%s: failed to alloc skb",
> -                                     __func__);
> -                             return -1;
> -                     }

I like it.

Because I continue to have problems with dev_alloc_skb failing, and
the "return -1;" that you are removing doesn't seem to leave the card
and driver in a useful state.

Your patch is hopefully an improvement.

Have you done any testing of response after skb allocation failure
before and after your patch?

-- 
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to