On Fri, May 12, 2017 at 12:05 AM, Kalle Valo <[email protected]> wrote: > Amitkumar Karwar <[email protected]> writes: > >> From: Prameela Rani Garnepudi <[email protected]> >> >> USB multibyte read will be used in the new firmware loading method >> for RS9113 chipset. >> >> Signed-off-by: Prameela Rani Garnepudi <[email protected]> >> Signed-off-by: Amitkumar Karwar <[email protected]> > > [...] > >> +static int rsi_usb_read_register_multiple(struct rsi_hw *adapter, u32 addr, >> + u8 *data, u16 count) >> +{ >> + struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; >> + u8 *buf; >> + u16 transfer; >> + int status; >> + >> + if (!addr) >> + return -EINVAL; >> + >> + buf = kzalloc(4096, GFP_KERNEL); >> + if (!buf) >> + return -ENOMEM; >> + >> + while (count) { >> + transfer = min_t(u16, count, 4096); > > A minor thing, no need to resend just because of this. But a define for > 4096 would be nice. >
I have defined a macro for 4096 in v3 series. Regards, Amitkumar Karwar
