Re: [PATCH lora-next 3/5] net: lora: sx130x: Add PicoCell serdev driver
From: Andreas FÃrber
Date: Fri Jan 04 2019 - 20:33:01 EST
Am 04.01.19 um 12:21 schrieb Andreas FÃrber:
> diff --git a/drivers/net/lora/sx130x_picogw.c b/drivers/net/lora/sx130x_picogw.c
> new file mode 100644
> index 000000000000..577f9fb71d46
> --- /dev/null
> +++ b/drivers/net/lora/sx130x_picogw.c
[...]
> + serdev_device_set_baudrate(sdev, 115200);
> + serdev_device_set_parity(sdev, SERDEV_PARITY_NONE);
> + serdev_device_set_flow_control(sdev, true);
This should probably be false?
https://github.com/Lora-net/picoGW_hal/blob/master/libloragw/src/loragw_com_linux.c#L65
tty.c_iflag &= ~(IXON | IXOFF | IXANY | ICRNL);
...
tty.c_oflag &= ~(IXON | IXOFF | IXANY | ICRNL);
Nothing that looks like RTS/CTS anywhere, which appears to be what the
serdev implementation is switching with the above function.
However, both true and false appeared to work equally so far.
With one particular USB device I get the following warning/error,
seemingly independent of whether I enable flow control above or not:
[68640.481454] lora-picogw-usb 4-1:1.0: failed to set dtr/rts
(imagine s/lora-picogw-usb/cdc_acm/ - cf. cdc-acm.c:acm_port_dtr_rts())
Looks like a firmware/hardware issue to me, since it appeared with the
original cdc_acm driver on reboot, plus across reset, ports and hosts.
Regards,
Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Felix ImendÃrffer, Jane Smithard, Graham Norton
HRB 21284 (AG NÃrnberg)