Re: [PATCH] USB:serial:pl2303:Add new PID to support PL2303HXN (TYPE_HXN)

2019-06-12 Thread Johan Hovold
On Wed, Jun 12, 2019 at 09:18:41PM +0800, Charles Yeh wrote: > Prolific has developed a new USB to UART chip: PL2303HXN > PL2303HXN : PL2303GC/PL2303GS/PL2303GT/PL2303GL/PL2303GE/PL2303GB > The Vendor request used by the PL2303HXN (TYPE_HXN) is different from > the existing PL2303 series (TYPE_HX &

[PATCH] usb: typec: Make sure an alt mode exist before getting its partner

2019-06-12 Thread Heikki Krogerus
Adding check to typec_altmode_get_partner() to prevent potential NULL pointer dereference. Reported-by: Vladimir Yerilov Fixes: ad74b8649bea ("usb: typec: ucsi: Preliminary support for alternate modes") Signed-off-by: Heikki Krogerus --- drivers/usb/typec/bus.c | 2 +- 1 file changed, 1 insert

Re: kernel NULL pointer dereference, ucsi bug

2019-06-12 Thread Heikki Krogerus
On Wed, Jun 12, 2019 at 10:57:35PM +1000, Vladimir Yerilov wrote: > Oh, you are right. I meant... You know what I meant :) > I hope the fix will get there eventually in one way or another. Should > you need any further tests from my side, just ask and I will make my > faulty machine work on it. >

[PATCH] USB:serial:pl2303:Add new PID to support PL2303HXN (TYPE_HXN)

2019-06-12 Thread Charles Yeh
Prolific has developed a new USB to UART chip: PL2303HXN PL2303HXN : PL2303GC/PL2303GS/PL2303GT/PL2303GL/PL2303GE/PL2303GB The Vendor request used by the PL2303HXN (TYPE_HXN) is different from the existing PL2303 series (TYPE_HX & TYPE_01). Therefore, different Vendor requests are used to issue rel

Re: kernel NULL pointer dereference, ucsi bug

2019-06-12 Thread Vladimir Yerilov
Oh, you are right. I meant... You know what I meant :) I hope the fix will get there eventually in one way or another. Should you need any further tests from my side, just ask and I will make my faulty machine work on it. Thank you guys again for your kind assistance. ср, 12 июн. 2019 г. в 22:32

Re: kernel NULL pointer dereference, ucsi bug

2019-06-12 Thread Greg KH
On Wed, Jun 12, 2019 at 10:23:56PM +1000, Vladimir Yerilov wrote: > Yes, it works. > I've built 5.2-rc4 with this patch and it works fine now, the problem is gone. > It is great that I didn't have to downgrade BIOS as a last resort in > my attempts to workaround this issue. > > Thank you! > > Cc

Re: kernel NULL pointer dereference, ucsi bug

2019-06-12 Thread Vladimir Yerilov
Yes, it works. I've built 5.2-rc4 with this patch and it works fine now, the problem is gone. It is great that I didn't have to downgrade BIOS as a last resort in my attempts to workaround this issue. Thank you! Cc to Greg in order to let him know that it is resolved now. ср, 12 июн. 2019 г. в 1

Re: [PATCH 4/5] usb: xhci: dbc: Add a dbc raw driver to provide a raw interface on DbC

2019-06-12 Thread Greg KH
On Wed, Jun 12, 2019 at 08:49:11AM +, Regupathy, Rajaram wrote: > > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Tuesday, June 11, 2019 6:04 PM > > To: Regupathy, Rajaram > > Cc: Mathias Nyman ; Pandey, Prabhat Chand > > ; linux-usb@vger.kern

Re: kernel NULL pointer dereference, ucsi bug

2019-06-12 Thread Heikki Krogerus
On Tue, Jun 11, 2019 at 10:19:27PM +1000, Vladimir Yerilov wrote: > Hi Heikki, > > > What do you have connected to the USB Type-C connectors on the > machine when that happens? > > Now, on 5.2-rc4, it happens only during boot and when power cord is > connected to laptop's type-c charging port. An

RE: [PATCH 4/5] usb: xhci: dbc: Add a dbc raw driver to provide a raw interface on DbC

2019-06-12 Thread Regupathy, Rajaram
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, June 11, 2019 6:04 PM > To: Regupathy, Rajaram > Cc: Mathias Nyman ; Pandey, Prabhat Chand > ; linux-usb@vger.kernel.org; Nyman, > Mathias ; K V, Abhilash ; > Balaji, M > Subject: Re: [PATCH 4/5]