]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Update tsu clk usage in runtime suspend/resume for Versal
authorHarini Katakam <harini.katakam@xilinx.com>
Fri, 22 Jul 2022 11:03:30 +0000 (16:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 11:29:54 +0000 (12:29 +0100)
commite04a6f6844d90682dd7c5dc1a2d4a63c63cd2809
tree42d7015fc7e9f3e7aec48f50ef3338c7bc02f9d1
parent05173eb626c6824ba1686e095e86f8227c4071b9
net: macb: Update tsu clk usage in runtime suspend/resume for Versal

On Versal TSU clock cannot be disabled irrespective of whether PTP is
used. Hence introduce a new Versal config structure with a "need tsu"
caps flag and check the same in runtime_suspend/resume before cutting
off clocks.

More information on this for future reference:
This is an IP limitation on versions 1p11 and 1p12 when Qbv is enabled
(See designcfg1, bit 3). However it is better to rely on an SoC specific
check rather than the IP version because tsu clk property itself may not
represent actual HW tsu clock on some chip designs.

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c