]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: Add firmware capability bits for feature gating
authorJonathan Lemon <jonathan.lemon@gmail.com>
Thu, 10 Mar 2022 20:19:07 +0000 (12:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2022 11:54:45 +0000 (11:54 +0000)
commit2114f6086b69d159bcda6ea831aeae7b853cb221
treecb8c842d2c78581efeb2ce9a50cd41920b3fb70b
parente8e2b93510c0da42afa401ad7f89aadc10706283
ptp: ocp: Add firmware capability bits for feature gating

Add the ability to group sysfs nodes behind a firmware feature
check.  This way non-present sysfs attributes are omitted on
older firmware, which does not have newer features.

This will be used in the upcoming patches which adds more
features to the timecard.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c