CVS log for src/sys/dev/usb/if_mos.c
Up to [cvs.NetBSD.org] / src / sys / dev / usb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Oct 10 18:30:28 2022 UTC (4 years, 1 month ago) by martin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4
lines
ETHERCAP_VLAN_MTU does not go into ifp->if_capabilities but ethercom
ec_capabilities instead.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Aug 20 14:08:59 2022 UTC (4 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
usbnet(9): New usbnet_ispromisc(un).
Replaces ifp->if_flags & IFF_PROMISC in multicast filter updates.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:28 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
usbnet: Omit needless detachcv name parameter to usbnet_attach.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:56:09 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
usbnet: Factor usbnet_init_rx_tx out into usbnet_if_init.
Make it private; no need for drivers to call it any more.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:38 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -5
lines
usbnet drivers: Omit redundant device reset via *_uno_stop on init.
Only those drivers where *_uno_stop is just *_reset, and *_uno_init
immediately calls *_reset afterward, are affected.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:29 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
usbnet drivers: From *_uno_init, call *_uno_stop, not usbnet_stop.
Make usbnet_stop private now that no drivers use it.
None of the driver-independent logic in usbnet_stop has any effect at
this point because we are guaranteed not to be running, so only the
driver-dependent logic in *_uno_stop (at most) is needed.
For drivers with no *_uno_stop, just omit the call to usbnet_stop
altogether.
Some of this logic is obviously redundant with the subsequent call to
*_reset -- to be addressed in a subsequent commit.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:55:01 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -5
lines
usbnet drivers: Omit needless isdying tests in *_uno_init.
usbnet(9) already checks this immediately before calling *_uno_init.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:54:21 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -3
lines
usbnet drivers: Avoid undefined behaviour if read reg fails.
Some callers don't check the error code, e.g. ~all the mii phy
drivers using PHY_READ. Just return zero if the device is gone or
the xfer fails for any other reason.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:53:33 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -5
lines
usbnet drivers: Omit redundant multicast filter update on init.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:53:04 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -13
lines
usbnet drivers: Omit needless uno_mcast locked subroutines.
uno_mcast is now called with the core lock already held so there is
no need for a separate locked subroutine.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:52:46 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -6
lines
usbnet: Take the core lock around uno_mcast.
Every driver does this already. This will enable us to change the
lock that serializes access to the registers so we can go back to
doing this synchronously in SIOCADDMULTI/SIOCDELMULTI.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:52:35 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -11
lines
usbnet drivers: Omit needless uno_init locked subroutines.
uno_init is now called with the core lock already held so there is no
need for a separate locked subroutine.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:27 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -4
lines
usbnet drivers: No need for usbnet_busy in uno_mcast.
This callback always runs with IFNET_LOCK held, and during a task
that usbnet_detach prevents scheduling anew and waits for finishing
before completing the detach, so there is no need to hang onto a
reference count here.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:17 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -6
lines
usbnet drivers: No need for usbnet_busy in uno_init.
This callback always runs with the IFNET_LOCK held, and the interface
cannot be detached until the IFNET_LOCK is released, so there is no
need to hang onto a reference count here. (None of the usbnet
drivers touch the IFNET_LOCK except to verify it is held sometimes.)
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:51:06 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -16
lines
usbnet: Split multicast filter reprogramming into separate operation.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:50:57 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -2
lines
usbnet drivers: Stop timeout loops early if device is detaching.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Mar 3 05:50:22 2022 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -4
lines
usbnet: Enter uno_init with the core lock held.
This reduces code in all drivers except urndis(4) and aue(4).
However, it's still safe for urndis to drop the core lock because the
ifnet is locked, and the ifnet lock covers the DOWN->UP (uno_init)
and UP->DOWN (uno_stop) transitions.
Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:49 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.1: +801 -0
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.7.4.1
Thu Apr 2 04:09:36 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.7: +0 -801
lines
file if_mos.c was added on branch phil-wifi on 2020-04-13 08:04:49 +0000
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Apr 2 04:09:36 2020 UTC (6 years, 7 months ago) by nisimura
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Branch point for: phil-wifi
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4
lines
iron out multicast filter logic and pick better name for its work
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Mar 31 23:26:32 2020 UTC (6 years, 7 months ago) by nisimura
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +31 -32
lines
iron out multicast filter logic and pick better name for its work
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 15 23:04:50 2020 UTC (6 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +38 -49
lines
Define and implement a locking protocol for the ifmedia / mii layers:
- MP-safe drivers provide a mutex to ifmedia that is used to serialize
access to media-related structures / hardware regsiters. Converted
drivers use the new ifmedia_init_with_lock() function for this. The
new name is provided to ease the transition.
- Un-converted drivers continue to call ifmedia_init(), which will supply
a compatibility lock to be used instead. Several media-related entry
points must be aware of this compatibility lock, and are able to acquire
it recursively a limited number of times, if needed. This is a SPIN
mutex with priority IPL_NET.
- This same lock is used to serialize access to PHY registers and other
MII-related data structures.
The PHY drivers are modified to acquire and release the lock, as needed,
and assert the lock is held as a diagnostic aid.
The "usbnet" framework has had an overhaul of its internal locking
protocols to fit in with the media / mii changes, and the drivers adapted.
USB wifi drivers have been changed to provide their own adaptive mutex
to the ifmedia later via a new ieee80211_media_init_with_lock() function.
This is required because the USB drivers need an adaptive mutex.
Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv.
mcx also now calls ifmedia_init_with_lock() because it needs to also use
an adaptive mutex. The mcx driver still needs to be fully converted to
NET_MPSAFE.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:16 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +5 -5
lines
Sync with head.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jan 29 06:26:32 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -5
lines
Adopt <net/if_stats.h>.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jan 7 06:42:26 2020 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4
lines
Localify, constify.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Jan 6 15:19:00 2020 UTC (6 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -8
lines
Fix a bug that IFF_ALLMULTI is almost always set.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Sep 20 10:34:54 2019 UTC (7 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119
add mos(4) driver for Moschip MCS7730/MCS7830/MCS7832 usb ethernet.
ported from openbsd. usbnet version loses about 40% of code.
CVSweb <webmaster@jp.NetBSD.org>