From: David S. Miller Date: Mon, 15 Aug 2022 10:49:58 +0000 (+0100) Subject: Merge branch 'mlxsw-fixes' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5061e34c67446f73842391f9b3275e1be5491871;p=linux.git Merge branch 'mlxsw-fixes' Petr Machata says: ==================== mlxsw: Fixes for PTP support This set fixes several issues in mlxsw PTP code. - Patch #1 fixes compilation warnings. - Patch #2 adjusts the order of operation during cleanup, thereby closing the window after PTP state was already cleaned in the ASIC for the given port, but before the port is removed, when the user could still in theory make changes to the configuration. - Patch #3 protects the PTP configuration with a custom mutex, instead of relying on RTNL, which is not held in all access paths. - Patch #4 forbids enablement of PTP only in RX or only in TX. The driver implicitly assumed this would be the case, but neglected to sanitize the configuration. ==================== Signed-off-by: David S. Miller --- 5061e34c67446f73842391f9b3275e1be5491871