RFT: improvements to if_cdce driver

2021-06-03 Thread John-Mark Gurney
Hello,

I decided to make some improvements to the CDCE driver as at least
the RealTek devices (what I tested them with) when they aren't supported
by ure will present as cdce devices.

https://reviews.freebsd.org/D30625

This adds if_media support and link state support.

The most significant change is this means that if a ue device is
configured for DHCP, devd will now launch dhclient, where previously
it would not, as it would neither receive the link up status (for when
a cable is plugged in) nor would it be the requisit ethernet media
type.

The device I tested with was a RealTek 2.5G device.  So, other
non-RealTek devices would be great to test with.

Let me know if you have any issues with the change!

Thanks.

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 "All that I will do, has been done, All that I have, has not."
___
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"


[Bug 253374] [if_ure] Add support for RTL8153B, RTL8156 and RTL8156B

2021-06-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253374

--- Comment #8 from Hans Petter Selasky  ---
Yes, I'll have a look at this.

-- 
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"


[Bug 253374] [if_ure] Add support for RTL8153B, RTL8156 and RTL8156B

2021-06-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253374

Hans Petter Selasky  changed:

   What|Removed |Added

   Assignee|u...@freebsd.org |hsela...@freebsd.org

-- 
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: eGalax USB touchscreen issues

2021-06-03 Thread Mark Kane

On 2021-06-02 20:14, Vladimir Kondratyev wrote:
For now, report descriptor is not broken but it still does not match 
my

expectations. Could you post output of

install sysutils/hid-tools
sudo kldload hidraw.ko
sudo hid-decode /dev/hidraw#

Where # is number corresponding your touchscreen


One more patch :-) with relaxed as compared to MS specs requirements to
usages presence.


Thanks for the updated patches, I think we're getting very close :). 
With latest patch:


# dmesg | grep hidraw
hidraw0: Device> on hidbus0

hidraw1:  on hidbus1
# hid-decode /dev/hidraw1
0x05, 0x01,// Usage Page (Generic Desktop)0
0x09, 0x01,// Usage (Pointer) 2
0xa1, 0x01,// Collection (Application)4
0x85, 0x01,//  Report ID (1)  6
0x09, 0x01,//  Usage (Pointer)8
0xa1, 0x00,//  Collection (Physical)  10
0x05, 0x09,//   Usage Page (Button)   12
0x19, 0x01,//   Usage Minimum (1) 14
0x29, 0x02,//   Usage Maximum (2) 16
0x15, 0x00,//   Logical Minimum (0)   18
0x25, 0x01,//   Logical Maximum (1)   20
0x95, 0x02,//   Report Count (2)  22
0x75, 0x01,//   Report Size (1)   24
0x81, 0x02,//   Input (Data,Var,Abs)  26
0x95, 0x01,//   Report Count (1)  28
0x75, 0x06,//   Report Size (6)   30
0x81, 0x01,//   Input (Cnst,Arr,Abs)  32
0x05, 0x01,//   Usage Page (Generic Desktop)  34
0x09, 0x30,//   Usage (X) 36
0x09, 0x31,//   Usage (Y) 38
0x16, 0x00, 0x00,  //   Logical Minimum (0)   40
0x26, 0xff, 0x0f,  //   Logical Maximum (4095)43
0x36, 0x00, 0x00,  //   Physical Minimum (0)  46
0x46, 0xff, 0x0f,  //   Physical Maximum (4095)   49
0x66, 0x00, 0x00,  //   Unit (None)   52
0x75, 0x10,//   Report Size (16)  55
0x95, 0x02,//   Report Count (2)  57
0x81, 0x02,//   Input (Data,Var,Abs)  59
0xc0,  //  End Collection 61
0xc0,  // End Collection  62
0x05, 0x0d,// Usage Page (Digitizers) 63
0x09, 0x04,// Usage (Touch Screen)65
0xa1, 0x01,// Collection (Application)67
0x85, 0x02,//  Report ID (2)  69
0x09, 0x20,//  Usage (Stylus) 71
0xa1, 0x00,//  Collection (Physical)  73
0x09, 0x42,//   Usage (Tip Switch)75
0x09, 0x32,//   Usage (In Range)  77
0x15, 0x00,//   Logical Minimum (0)   79
0x25, 0x01,//   Logical Maximum (1)   81
0x95, 0x02,//   Report Count (2)  83
0x75, 0x01,//   Report Size (1)   85
0x81, 0x02,//   Input (Data,Var,Abs)  87
0x95, 0x06,//   Report Count (6)  89
0x75, 0x01,//   Report Size (1)   91
0x81, 0x03,//   Input (Cnst,Var,Abs)  93
0x05, 0x01,//   Usage Page (Generic Desktop)  95
0x09, 0x30,//   Usage (X) 97
0x75, 0x10,//   Report Size (16)  99
0x95, 0x01,//   Report Count (1)  
101
0xa4,  //   Push  
103
0x55, 0x0d,//   Unit Exponent (-3)
104
0x65, 0x33,//   Unit (Inch^3,EngLinear)   
106
0x36, 0x00, 0x00,  //   Physical Minimum (0)  
108
0x46, 0x99, 0x28,  //   Physical Maximum (10393)  
111
0x16, 0x00, 0x00,  //   Logical Minimum (0)   
114
0x26, 0xff, 0x0f,  //   Logical Maximum (4095)
117
0x81, 0x02,//   Input (Data,Var,Abs)  
120
0x09, 0x31,//   Usage (Y) 
122
0x16, 0x00, 0x00,  //   Logical Minimum (0)   
124
0x26, 0xff, 0x0f,