From: Mark Brown Date: Thu, 27 Feb 2025 16:44:41 +0000 (+0000) Subject: Add SDCA register map support X-Git-Tag: v6.15-rc1~173^2~4^2~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0343fdb567dddaa74ac1b7b6994fd70100a0f6e;p=thirdparty%2Fkernel%2Flinux.git Add SDCA register map support Merge series from Charles Keepax : This series is the next step of adding SDCA support. Here we add helper functions to allow drivers to easily use the SDCA DisCo information to create a register map for the device. The basic idea here is the code takes the list of SDCA controls parsed from DisCo and uses primarily the Access Mode to determine if the register should be marked as readable/writable etc. Further more some additional concepts such as DisCo Constants and Defaults are handled. There is some potential confusion, as DisCo Constants are handled as an entry in the regmap defaults table, whereas a DisCo Default is simply handled as a write to the register. Alas the naming confusion is an unavoidable result of the slight impedance mismatch between the two systems. --- d0343fdb567dddaa74ac1b7b6994fd70100a0f6e