diff options
| author | 2026-09-30 12:19:51 +0300 | |
|---|---|---|
| committer | 2026-10-14 11:56:38 +0300 | |
| commit | 5567873198b2eea8e22a12a104ae870e8c318e3f (patch) | |
| tree | 08390ea86c0d06391c85d646b46988449f31c8ae /scripts/Makefile.thinlto | |
| parent | wifi: iwlwifi: mld: test TX gp2 timestamps (diff) | |
wifi: iwlwifi: trans: bring virtualization back
We removed virtualization because PCIe is the only bus.
The problem with the if-else approach is that it causes a dual dependency:
the generic trans needs to include the bus specific, and vice-versa.
Besides being a bad design, it also has pratical problems:
1. small functions that could be static inline ones - can't, because
only iwl-trans.c has the bus specific include.
2. while in pcie we have one giant header file, ironically called
internal.h, that has all the declarations needed by the generic
trans, in USB there will be several ones, and including them means
including all the USB internal logic, which should not be exposed.
This commit brings back the virtualization.
Since gen1 and gen2 were never split properly, and since they share
almost all the callbacks, pcie registers with a single ops struct.
This also fixed the debug code to call a generic API for fw reset
handshake, instead of calling the pcie directly.
Assisted-by: GitHubCopilot:claude-opus-4.8
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20260930121740.c0dde34db029.I0b53f83df3faad21c0c39b3e709896e7dde6ac35@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
