Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-03 Thread Aaron Marburg
On Thu, 3 Mar 2016, Johan Hovold wrote: On Wed, Mar 02, 2016 at 09:36:55AM -0800, Aaron Marburg wrote: On Wed, 2 Mar 2016, Oliver Neukum wrote: On Tue, 2016-03-01 at 09:54 -0800, amarb...@apl.washington.edu wrote: From: Aaron Marburg The USOPTL4-4P and

Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-03 Thread Johan Hovold
On Wed, Mar 02, 2016 at 09:36:55AM -0800, Aaron Marburg wrote: > On Wed, 2 Mar 2016, Oliver Neukum wrote: > > > On Tue, 2016-03-01 at 09:54 -0800, amarb...@apl.washington.edu wrote: > >> From: Aaron Marburg > >> > >> The USOPTL4-4P and USOPTL4-2P USB-to-quad/dual

Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-02 Thread Aaron Marburg
On Wed, 2 Mar 2016, Oliver Neukum wrote: On Tue, 2016-03-01 at 09:54 -0800, amarb...@apl.washington.edu wrote: From: Aaron Marburg The USOPTL4-4P and USOPTL4-2P USB-to-quad/dual RS-485/422 hubs use the Moschip 7840/7820. For correct operation in RS-485, the

Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-01 Thread Oliver Neukum
On Tue, 2016-03-01 at 09:54 -0800, amarb...@apl.washington.edu wrote: > From: Aaron Marburg > > The USOPTL4-4P and USOPTL4-2P USB-to-quad/dual RS-485/422 hubs use the > Moschip 7840/7820. For correct operation in RS-485, the chip must be > configured in “RS-485

Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-01 Thread Aaron Marburg
Good question. The cmd line option is a tri-state: (no command line option) -> force_rs485=-1 -> auto-detect based on product ID force_rs485 = 0 -> never set RS485 mode (regardless of product ID) force_rs485 = 1 -> always set RS485 mode (regardless of product ID) > On Mar 1, 2016, at 11:38 AM,

Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-01 Thread Sergei Shtylyov
On 03/01/2016 08:54 PM, amarb...@apl.washington.edu wrote: From: Aaron Marburg The USOPTL4-4P and USOPTL4-2P USB-to-quad/dual RS-485/422 hubs use the Moschip 7840/7820. For correct operation in RS-485, the chip must be configured in “RS-485 mode” through the

Re: [PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-01 Thread Sergei Shtylyov
Hello. On 03/01/2016 08:54 PM, amarb...@apl.washington.edu wrote: From: Aaron Marburg The USOPTL4-4P and USOPTL4-2P USB-to-quad/dual RS-485/422 hubs use the Moschip 7840/7820. For correct operation in RS-485, the chip must be configured in “RS-485 mode” through

[PATCH] usb: serial: mos7840.c Support RS485 mode in B Electronics USOPTL4-4P and USOPTL4-2P

2016-03-01 Thread amarburg
From: Aaron Marburg The USOPTL4-4P and USOPTL4-2P USB-to-quad/dual RS-485/422 hubs use the Moschip 7840/7820. For correct operation in RS-485, the chip must be configured in “RS-485 mode” through the scratchpad register as per the datasheet. This strobes the DTR