diff options
author | James Clark <james.clark@arm.com> | 2024-01-29 18:40:35 +0300 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2024-02-12 13:21:38 +0300 |
commit | 9cae77cf23e317f31de036ced7ad2c261317dc76 (patch) | |
tree | 1857032d309f6a1d68eba056ae601fd3ec4848dc /drivers/net/macsec.c | |
parent | a11ebe138b8ddb119b1b75c143429f64d605a54e (diff) | |
download | linux-9cae77cf23e317f31de036ced7ad2c261317dc76.tar.xz |
coresight: Move mode to struct coresight_device
Most devices use mode, so move the mode definition out of the individual
devices and up to the Coresight device. This will allow the core code to
also know the mode which will be useful in a later commit.
This also fixes the inconsistency of the documentation of the mode field
on the individual device types. For example ETB10 had "this ETB is being
used".
Two devices didn't require an atomic mode type, so these usages have
been converted to atomic_get() and atomic_set() only to make it compile,
but the documentation of the field in struct coresight_device explains
this type of usage.
In the future, manipulation of the mode could be completely moved out of
the individual devices and into the core code because it's almost all
duplicate code, and this change is a step towards that.
Signed-off-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20240129154050.569566-5-james.clark@arm.com
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Diffstat (limited to 'drivers/net/macsec.c')
0 files changed, 0 insertions, 0 deletions