On 3/19/21 2:39 PM, Vincent MAILHOL wrote: > On Fri. 19 Mar 2021 at 21:41, Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> wrote: >> Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> >> --- >> drivers/net/can/usb/etas_es58x/es58x_core.c | 5 ----- >> drivers/net/can/usb/etas_es58x/es58x_core.h | 3 --- >> 2 files changed, 8 deletions(-) >> >> diff --git a/drivers/net/can/usb/etas_es58x/es58x_core.c b/drivers/net/can/usb/etas_es58x/es58x_core.c >> index 89a4051afc82..d6a114a7e090 100644 >> --- a/drivers/net/can/usb/etas_es58x/es58x_core.c >> +++ b/drivers/net/can/usb/etas_es58x/es58x_core.c >> @@ -2150,11 +2150,6 @@ static int es58x_init_netdev(struct es58x_device *es58x_dev, int channel_idx) >> netdev_dbg(netdev, "%s: Registered channel %s\n", >> es58x_dev->udev->product, netdev->name); >> >> -#ifdef CONFIG_BQL >> - netdev_get_tx_queue(netdev, 0)->dql.min_limit = >> - es58x_dev->param->dql_limit_min; >> -#endif >> - >> return ret; >> } >> >> diff --git a/drivers/net/can/usb/etas_es58x/es58x_core.h b/drivers/net/can/usb/etas_es58x/es58x_core.h >> index 71f278e6e85c..ba6cdb9dfcf4 100644 >> --- a/drivers/net/can/usb/etas_es58x/es58x_core.h >> +++ b/drivers/net/can/usb/etas_es58x/es58x_core.h >> @@ -306,9 +306,6 @@ struct es58x_parameters { >> u16 tx_urb_cmd_max_len; >> u16 rx_urb_cmd_max_len; >> u16 fifo_mask; >> -#ifdef CONFIG_BQL >> - u16 dql_limit_min; >> -#endif >> u8 tx_bulk_max; >> u8 urb_cmd_header_len; >> u8 rx_urb_max; > > My current idea was to add an helper function > es58x_netdev_queue_set_dql_min_limit() as below and to remove it > the day the patch got accepted in the network devices. > > Does it make sense? If you prefer to remove it for now, I will do so. Okay, make this a 4th patch after the other 3. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: OpenPGP digital signature