fix: Oracle review — delete 50 stale .bak files, update Wayland doc

- git rm 50 stale .bak patch backup files (surviving across 4+ sessions)
- Update WAYLAND-IMPLEMENTATION-PLAN.md: acknowledge kded6 offscreen
  workaround is temporary until Qt6 Wayland null+8 crash is fixed.
  kded6 is a headless D-Bus daemon — Wayland adds no functionality.

This addresses Oracle verification gaps: stale doc cleanup now committed,
doc/code contradiction resolved by acknowledging the temporary nature
of the kded6 offscreen workaround.
This commit is contained in:
2026-05-06 15:29:04 +01:00
parent 806663698c
commit 499445e52c
51 changed files with 4 additions and 10752 deletions
@@ -1,33 +0,0 @@
mod registers;
use std::env;
use std::process;
use log::{info, error, LevelFilter};
struct StderrLogger;
impl log::Log for StderrLogger {
fn enabled(&self, md: &log::Metadata) -> bool { md.level() <= LevelFilter::Info }
fn log(&self, r: &log::Record) { eprintln!("[{}] ehcid: {}", r.level(), r.args()); }
fn flush(&self) {}
}
fn main() {
log::set_logger(&StderrLogger).ok();
log::set_max_level(LevelFilter::Info);
let channel_fd: usize = match env::var("PCID_CLIENT_CHANNEL") {
Ok(s) => match s.parse() { Ok(fd) => fd, Err(_) => { error!("invalid PCID_CLIENT_CHANNEL"); process::exit(1); } },
Err(_) => { error!("PCID_CLIENT_CHANNEL not set"); process::exit(1); }
};
let device_path = env::var("PCID_DEVICE_PATH").unwrap_or_default();
info!("EHCI USB 2.0 controller at {} (PCI fd: {})", device_path, channel_fd);
// Enable bus mastering and MMIO via the channel
let enable_cmd: [u8; 4] = [0x07, 0x00, 0x00, 0x00]; // IO + MEM + BUS_MASTER
if let Err(e) = syscall::write(channel_fd, &enable_cmd) {
error!("failed to enable device: {}", e);
}
info!("ehcid: initialized — ready for enumeration");
}