[Bug 253855] Add quirk entries for Kingston DataTraveler

2021-05-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253855

--- Comment #10 from commit-h...@freebsd.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=74ef3f740dcfe4c660e192fda7a81a87cf0c67c2

commit 74ef3f740dcfe4c660e192fda7a81a87cf0c67c2
Author: Hans Petter Selasky 
AuthorDate: 2021-04-22 10:40:17 +
Commit: Hans Petter Selasky 
CommitDate: 2021-05-10 14:11:19 +

Add more USB quirks for Kingston devices.

PR: 253855
Sponsored by:   Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 47bc8fc9ae6ba7aa708e0d4ee059a377ae707e5a)

 sys/dev/usb/quirk/usb_quirk.c | 1 +
 sys/dev/usb/usbdevs   | 1 +
 2 files changed, 2 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: Touchscreen "TSTP MTouch"

2021-05-10 Thread Oliver Fromme
Hans Petter Selasky wrote:
 > On 5/9/21 11:25 PM, Oliver Fromme wrote:
 > > 22:56:30.540897 usbus1.5 SUBM-CTRL-EP=,SPD=FULL,NFR=1,SLEN=8,IVAL=0
 > >   frame[0] WRITE 8 bytes
 > >     21 0B 01 00 00 00 00 00  -- -- -- -- -- -- -- --  |!...
 > > |
 > >   flags 0x10 
 > >   status 0xca1a3
 > 
 > After sending what appears like a HID set report request, the device 
 > stops responding. Looks like a firmware bug.

I see.  It's supposed to work out of the box with Linux, and the
reviews on Amazon indicate that it really does.  So, I guess,
either I got a defective product, or maybe Linux has a way to
work around the bug.

 > Is it possible to upgrade the firmware on the touchscreen?

The manual doesn't mention firmware upgrades.  The display shipped
with a lot of accessories, but no software.

I could try connecting it to a Windows machine and see what happens.

Regards
 - Olli


-- 
Oliver Fromme, Munich

``We are all but compressed light'' - Albert Einstein
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: Touchscreen "TSTP MTouch"

2021-05-10 Thread Hans Petter Selasky

On 5/9/21 11:25 PM, Oliver Fromme wrote:

22:56:30.540897 usbus1.5 SUBM-CTRL-EP=,SPD=FULL,NFR=1,SLEN=8,IVAL=0
  frame[0] WRITE 8 bytes
    21 0B 01 00 00 00 00 00  -- -- -- -- -- -- -- --  |!...|
  flags 0x10 
  status 0xca1a3


After sending what appears like a HID set report request, the device 
stops responding. Looks like a firmware bug.


Is it possible to upgrade the firmware on the touchscreen?



usb_error_t
usbd_req_set_protocol(struct usb_device *udev, struct mtx *mtx,
uint8_t iface_index, uint16_t report)
{
struct usb_interface *iface = usbd_get_iface(udev, iface_index);
struct usb_device_request req;

if ((iface == NULL) || (iface->idesc == NULL)) {
return (USB_ERR_INVAL);
}
DPRINTFN(5, "iface=%p, report=%d, endpt=%d\n",
iface, report, iface->idesc->bInterfaceNumber);

req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
req.bRequest = UR_SET_PROTOCOL;
USETW(req.wValue, report);
req.wIndex[0] = iface->idesc->bInterfaceNumber;
req.wIndex[1] = 0;
USETW(req.wLength, 0);
return (usbd_do_request(udev, mtx, , 0));
}


--HPS
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"