History log of /netbsd-src/sys/dev/usb/umcs.c (Results 1 – 22 of 22)
Revision Date Author Comments
# 100a3398 09-Feb-2024 andvar <andvar@NetBSD.org>

fix spelling mistakes, mainly in comments and log messages.


# 9a4026f5 21-Jan-2023 andvar <andvar@NetBSD.org>

fix typos in comment and log message.


# 2b1f9e50 26-Jun-2022 riastradh <riastradh@NetBSD.org>

umcs(4): Reject invalid interrupt endpoints.

Reported-by: syzbot+cd1e60e112e840e40d0a@syzkaller.appspotmail.com


# d67e9a1c 19-Apr-2022 riastradh <riastradh@NetBSD.org>

umcs(4): Avoid using uninitialized data if register read fails.

Reported-by: syzbot+511b32f415150b469250@syzkaller.appspotmail.com


# 2cbd04c3 09-Feb-2022 mrg <mrg@NetBSD.org>

if the interrupt pipe can't be opened, also print the error.


# c7fb772b 07-Aug-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs2.


# 2685996b 24-Apr-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass a

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

show more ...


# f76a6828 07-Jan-2020 maxv <maxv@NetBSD.org>

Localify, constify.


# ad99383a 14-Sep-2019 maxv <maxv@NetBSD.org>

Fix error handling, to prevent kernel crashes when detaching an umcs0
device.

Found with vHCI.


# cc0cad1e 09-May-2019 mrg <mrg@NetBSD.org>

clean up ucom parents some more:
- it's always "bool sc_dying" now, with true/false
- heavy use of static functions
- remove all ucom parent ca_activate callbacks. they're never called.
- callbacks

clean up ucom parents some more:
- it's always "bool sc_dying" now, with true/false
- heavy use of static functions
- remove all ucom parent ca_activate callbacks. they're never called.
- callbacks should generally do little to nothing if sc_dying is set
- open resources should be released in detach after setting sc_dying
- don't complain about usbd_abort_pipe() or usbd_close_pipe() failure
- when releasing resources, zero the softc member as well
- remove ucom_methods members no longer destined to be filled in
- generally, DPRINTF() before sc_dying short circuit
- use EIO when dying, not ENXIO or 0
- add some ucom_open() callbacks that simply return EIO if dying

show more ...


# 224d0a81 03-Aug-2018 skrll <skrll@NetBSD.org>

Fix build


# a727b880 29-Jul-2018 riastradh <riastradh@NetBSD.org>

Use usb_rem_task_wait in umcs(4) detach.


# 8bc54e5b 07-Jul-2016 msaitoh <msaitoh@NetBSD.org>

KNF. Remove extra spaces. No functional change.


# 4e8e6643 23-Apr-2016 skrll <skrll@NetBSD.org>

Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debu

Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix

show more ...


# f0b5a13b 23-Aug-2014 martin <martin@NetBSD.org>

Fix a few logical vs. physical port number confusions to make this
driver work with two port variants.


# cf0e1354 05-May-2014 joerg <joerg@NetBSD.org>

Remove unused umcs7840_reg_dcr0.


# 7c57d80e 23-Mar-2014 riastradh <riastradh@NetBSD.org>

Simplify synchronization between umcs(4) intr and task.

ok martin@, nick@


# 15eceb53 22-Mar-2014 martin <martin@NetBSD.org>

Replace the workque for status changes with an usb task queue (hint from
Nick Hudson) - simpler for this, and avoids some races.


# b658434c 17-Mar-2014 martin <martin@NetBSD.org>

Hack the detach path so we do it without error messages


# 582cb347 17-Mar-2014 martin <martin@NetBSD.org>

Misc cleanup, suggested by Chuck Silvers.


# fb9eabf3 16-Mar-2014 martin <martin@NetBSD.org>

Use C99 initializers


# eae8282d 16-Mar-2014 martin <martin@NetBSD.org>

Add umcs(4) - a driver for moschip 78{1,2,4}0 based multiport serial
adapters. Ported from FreeBSD.