roadmap PARTIAL

1019. The driver crates carry facts from their sources, not their text

A read-and-report lane raised this on 2026-11-01 (UTC) after it audited the outside-driver citations of eight crates: e1000e, designware_ethernet, designware_mobile_storage, jh7110_clock_and_reset, jh7110_watchdog, extensible_host_controller_interface, usb and machine_discovery. The audit used the method of the jh7110_entropy license audit (partsfoundry/jh7110_entropy#3). For each citation it fetched the cited file at a pinned revision, read its license header, and compared it with the crate as runs of identical lower-case word tokens, with hexadecimal normalized and identifiers split at underscores. The pull request that adds this file also fixes the citations that were only wrong about a path, a function name or what a source says. What remains here touches a license, a notice or a design claim, and each item needs an architect's ruling. This is an engineering audit, not legal advice.

Reuse: none exists. The work rewrites or annotates nife's own text, and the method is the one jh7110_entropy already used.

Background

Most of these crates read GPL drivers for facts: offsets, bit positions, register names and bring-up order. The jh7110_entropy audit treated those as facts and rewrote only copied prose and quoted device-tree nodes. Three of the crates also adapt permissive code on purpose: OpenBSD's dwqe, ytphy and dwmmc under ISC, and FreeBSD's Intel shared code under BSD-3-Clause. Each one carries the notice of the file it names. The findings below are the places where the code follows a source more closely than the crate says, or follows a file whose notice it does not carry.

Items, most severe first

Each item gives the recommendation first.

  1. Ruled 2026-11-01 UTC and done by #2987: jh7110_clock_and_reset::standard_mode_100k is rewritten from a permissively licensed source or the I2C specification, with a fill nife chooses and states. The same pull request records a bench check of the PMIC reset path in milestone 819 (JH7110 clock and reset logic, proven)'s BUGS section, because the fill branch runs at the board's input clock and the programmed counts change. It had translated GPL-2.0+ code from the vendor U-Boot designware_i2c.c functions dw_i2c_calc_timing and calc_counts.

  2. Ruled 2026-11-04 UTC and done by #3198: usb::boot_keyboard::TABLE and MODIFIER_CODES take their usages from the HID Usage Tables 1.5, mapped by name to the KEY_* codes in include/uapi/linux/input-event-codes.h (GPL-2.0-only WITH Linux-system-call-note). Usages 0x32 and 0x46, and the reading of a two-legend usage name, are nife's own choices, which the module documentation states. A test pins the result of a cross-check against Linux's hid_keyboard[] (GPL-2.0 or later), which agrees on all 104 rows, and the crate holds none of that file's text.

  3. Ruled 2026-11-04 UTC and done by #3200: e1000e::platform_controller_hub/mod.rs carries the BSD-2-Clause notice of FreeBSD's if_em.c and if_em.h and its three copyright lines (Intel 2001-2024, Nicole Graziano 2016, Kevin Bowling 2024), copied from freebsd/freebsd-src@9da2c05a748f (fetched 2026-11-04), beside the Intel shared-code notice. The module takes the descriptor-ring flush, the transmit errata and em_reset's buffer split from those files. The crate README, notes/e1000e/the-i219-port.md and the license column of milestone 494 (the I219 driver)'s Reuse table name them apart from the BSD-3-Clause shared code. The crate's license field reads (MIT OR Apache-2.0) AND BSD-3-Clause AND BSD-2-Clause.

  4. Ruled 2026-11-04 UTC and done by #3200: kernel/src/e1000e.rs runs the flush through platform_controller_hub::flush::empty_descriptor_rings, which the module's notice covers, so the notice lives once. The kernel supplies only configuration space and its ring memory.

  5. Ruled 2026-11-04 UTC and done by #3200: designware_ethernet::motorcomm_physical_layer_device::link_from_registers adapts OpenBSD's ukphy_status (sys/dev/mii/ukphy_subr.c), and src/lib.rs carries its NetBSD Foundation BSD-2-Clause notice beside the ISC notice, as found at openbsd/src@21ea132db7ea. The README, notes/designware-ethernet.md and milestone 53 (the board's own peripherals)'s Reuse: line name the file, and milestone 53 names motorcomm.c, include/uapi/linux/mii.h and include/linux/stmmac.h as fact sources. The crate's license field reads (MIT OR Apache-2.0) AND ISC AND BSD-2-Clause.

  6. Ruled 2026-11-04 UTC and done by #3200: designware_mobile_storage follows only the order of OpenBSD's sdmmc_mem.c (ISC, Uwe Stuehler 2006) for its addressing commands (CMD2, CMD3, CMD9, CMD7), and adapts none of its code. Its power-up sends CMD8 before ACMD41, as the SD specification's figure 4-2 does, where OpenBSD asks the OCR first, and it shares no text run longer than four tokens with the file. So the crate carries only Mark Kettenis's dwmmc.c notice, and src/lib.rs, src/sd.rs and milestone 817 (a proven DesignWare SD and eMMC host)'s Reuse: line say that it follows only the order. The crate's license field reads (MIT OR Apache-2.0) AND ISC, for the dwmmc.c code. Milestone 817's BUGS entry names the machine_discovery fixtures that test the decoder.

  7. Fixtures and doc comments that quote upstream device-tree source. Recommendation: apply the rule of commit e1edb20b5 (cite the upstream TRNG nodes, do not quote them). A comment becomes a citation (path, revision, fetch date) and one sentence, and each fixture body keeps only the properties its test reads. The cases are:

    • machine_discovery/tests/fixtures/th1520.dts, whose header says it copies every node below and shares a 96-token run with th1520.dtsi (GPL-2.0 OR MIT), with no MIT notice.
    • jh7110-stgcrg-mainline.dts, whose comment quotes the stgcrg node at an unpinned revision.
    • jh7110_watchdog/tests/fixtures/jh7110-watchdog-radon.dts, whose body carries the vendor rstgen node whole (40 tokens) and properties no test reads.
    • jh7110_clock_and_reset/src/lib.rs, done: its two PMIC doc comments cite the node, the file and the revision, and give the string and the address as facts.

    Fixture bodies cut to the properties a test reads (up to 40-token runs in the gmac and pmic-bus fixtures) are facts under that precedent, and need a ruling only if it does not cover them.

  8. Attributed quotations of text under a license that asks for a notice. Recommendation: add "(CC-BY-4.0)" beside the 36-token SBI v3.0 quotation in machine_discovery/src/riscv64.rs, and keep the short attributed quotations of the VT-d, AMD IOMMU and ACPI specifications under the five-word rule the jh7110_entropy audit used. The Xen hvm_start_info layout in notes/machine-discovery.md comes from an MIT header without its notice; it is an ABI layout, so a citation of the file and revision should be enough.

  9. Done for designware_ethernet. The module documentation of motorcomm_physical_layer_device is the home of its YT8531 register sources, each pinned to the revision it holds at. OpenBSD's ytphy.c (openbsd/src@9d7a05f92003) and FreeBSD's mcommphy.c (freebsd/freebsd-src@2ad32d3a6868) both name the clock gating and sleep control registers, and Linux's motorcomm.c (torvalds/linux@fc697291ad0a) alone names the bit cleared in each and the whole PHY identifier. The two register constants spell out what each register is, and the crate's Name: blocks cite those rulings as "#2762 Decision N". Each carries OpenBSD's spelling and FreeBSD's as its aliases, and no Linux spelling, since both BSD sources name the two registers. The source table is in the crate's review package, notes/crate-reviews/designware-ethernet.md.

  10. jh7110_watchdog calls the block an Arm SP805, and no listed source says so. WDOGIMS appears in no source; SP805 names that offset WDOGMIS. Recommendation: cite the SP805 manual (ARM DDI 0270) if the identification stands, or say "SP805-like", as milestone 593 (the JH7110 watchdog) does.

  11. Unpinned links where the revision changes the fact. "Both trees assign 50 MHz" to the SD clock, and u5_dw_i2c_clk_core as a fixed factor, hold at the vendor branch head but not both at VF2_v2.10.4, the release radon's firmware comes from. Recommendation: pin the vendor links in jh7110_clock_and_reset and designware_mobile_storage to the revision each claim holds at. Done for jh7110_clock_and_reset: every vendor link names a commit, and each claim links the revision it holds at.

What the lane left alone that a lane could fix after a ruling

Follow-on

Index row

Eight driver crates cite outside drivers, some under licenses that bar copying. An audit found the citations that touch a license, a notice or a design claim, and each needs a ruling before the crate can be released.