Patch "net: dsa: felix: build as module when tc-taprio is module" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: dsa: felix: build as module when tc-taprio is module

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-dsa-felix-build-as-module-when-tc-taprio-is-modu.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 58a547a24ce6f5917eaee965676eb57402998224
Author: Vladimir Oltean <vladimir.oltean@xxxxxxx>
Date:   Mon Jul 4 22:02:41 2022 +0300

    net: dsa: felix: build as module when tc-taprio is module
    
    [ Upstream commit 10ed11ab6399813eb652137db9c378433c28a95c ]
    
    felix_vsc9959.c calls taprio_offload_get() and taprio_offload_free(),
    symbols exported by net/sched/sch_taprio.c. As such, we must disallow
    building the Felix driver as built-in when the symbol exported by
    tc-taprio isn't present in the kernel image.
    
    Fixes: 1c9017e44af2 ("net: dsa: felix: keep reference on entire tc-taprio config")
    Signed-off-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
    Link: https://lore.kernel.org/r/20220704190241.1288847-2-vladimir.oltean@xxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/dsa/ocelot/Kconfig b/drivers/net/dsa/ocelot/Kconfig
index 220b0b027b55..08db9cf76818 100644
--- a/drivers/net/dsa/ocelot/Kconfig
+++ b/drivers/net/dsa/ocelot/Kconfig
@@ -6,6 +6,7 @@ config NET_DSA_MSCC_FELIX
 	depends on NET_VENDOR_FREESCALE
 	depends on HAS_IOMEM
 	depends on PTP_1588_CLOCK_OPTIONAL
+	depends on NET_SCH_TAPRIO || NET_SCH_TAPRIO=n
 	select MSCC_OCELOT_SWITCH_LIB
 	select NET_DSA_TAG_OCELOT_8021Q
 	select NET_DSA_TAG_OCELOT



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux