Return-Path: MIME-Version: 1.0 In-Reply-To: <87372lnrwu.fsf@purkki.adurom.net> References: <1513168977-2121-1-git-send-email-amitkarwar@gmail.com> <1513168977-2121-2-git-send-email-amitkarwar@gmail.com> <87372lnrwu.fsf@purkki.adurom.net> From: Amitkumar Karwar Date: Tue, 13 Feb 2018 15:50:44 +0530 Message-ID: Subject: Re: [v5 1/8] rsi: add rx control block to handle rx packets in USB To: Kalle Valo Cc: Marcel Holtmann , linux-wireless , Amitkumar Karwar , Prameela Rani Garnepudi , "open list:BLUETOOTH DRIVERS" , Siva Rebbagondla Content-Type: text/plain; charset="UTF-8" List-ID: On Thu, Feb 1, 2018 at 12:00 PM, Kalle Valo wrote: > Amitkumar Karwar writes: > >> From: Prameela Rani Garnepudi >> >> Rx bluetooth endpoint shall be added in further patches. Rx control >> block is introduced here to handle Rx packets properly. Separate >> function is written to initialize the RX control blocks. >> >> Signed-off-by: Prameela Rani Garnepudi >> Signed-off-by: Siva Rebbagondla >> Signed-off-by: Amitkumar Karwar > > [...] > >> +static int rsi_usb_init_rx(struct rsi_hw *adapter) >> +{ >> + struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; >> + struct rx_usb_ctrl_block *rx_cb; >> + u8 idx; >> + >> + for (idx = 0; idx < MAX_RX_URBS; idx++) { >> + rx_cb = &dev->rx_cb[idx]; >> + >> + rx_cb->rx_buffer = kzalloc(RSI_USB_BUF_SIZE * 2, >> + GFP_KERNEL | GFP_DMA); > > Do you really need GFP_DMA? From the documentation: > > "GFP_DMA exists for historical reasons and should be avoided where > possible." Thanks for review. I will get rid of this flag, Regards, Amitkumar