bus: fsl-mc: Remove deadcode
Subsystems (2)
PATCH 1/1 bus: fsl-mc: Remove deadcode
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit() was added explicitly by
commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function") but was never used.
Remove it.
fsl_mc_portal_reset() was added in 2015 by
commit 197f4d6a4a00 ("staging: fsl-mc: fsl-mc object allocator driver") but was never used.
Remove it.
fsl_mc_portal_reset() was the only caller of dpmcp_reset().
Remove it.
--- drivers/bus/fsl-mc/dpmcp.c | 22 ---------------------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 ----- drivers/bus/fsl-mc/fsl-mc-private.h | 6 ------ drivers/bus/fsl-mc/mc-io.c | 20 -------------------- include/linux/fsl/mc.h | 2 -- 5 files changed, 55 deletions(-)
drivers/bus/fsl-mc/dpmcp.c +0 -22
@@ -75,25 +75,3 @@ int dpmcp_close(struct fsl_mc_io *mc_io,/* send command to mc*/ return mc_send_command (mc_io, &cmd); } - -/** -* dpmcp_reset() - Reset the DPMCP, returns the object to initial state. -* @mc_io: Pointer to MC portal's I/O object -* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' -* @token: Token of DPMCP object -* -* Return: '0' on Success; Error code otherwise. -*/ -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token) -{ -struct fsl_mc_command cmd = {0 }; - -/* prepare command */ - cmd.header =mc_encode_cmd_header (DPMCP_CMDID_RESET , - cmd_flags, token); - -/* send command to mc*/ -return mc_send_command (mc_io, &cmd); -}
drivers/bus/fsl-mc/fsl-mc-allocator.c +0 -5
@@ -656,8 +656,3 @@ int __init fsl_mc_allocator_driver_init(void) {return fsl_mc_driver_register (&fsl_mc_allocator_driver); } - -void fsl_mc_allocator_driver_exit (void ) -{ -fsl_mc_driver_unregister (&fsl_mc_allocator_driver); -}
drivers/bus/fsl-mc/fsl-mc-private.h +0 -6
@@ -66,10 +66,6 @@ int dpmcp_close(struct fsl_mc_io *mc_io,u32 cmd_flags, u16 token); -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token); -/* * Data Path Resource Container (DPRC) API */
@@ -631,8 +627,6 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,int __init fsl_mc_allocator_driver_init (void ); -void fsl_mc_allocator_driver_exit (void ); -void fsl_mc_init_all_resource_pools (struct fsl_mc_device *mc_bus_dev);void fsl_mc_cleanup_all_resource_pools (struct fsl_mc_device *mc_bus_dev);
drivers/bus/fsl-mc/mc-io.c +0 -20
@@ -263,23 +263,3 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io) dpmcp_dev->consumer_link =NULL ; }EXPORT_SYMBOL_GPL (fsl_mc_portal_free); - -/** -* fsl_mc_portal_reset - Resets the dpmcp object for a given fsl_mc_io object -* -* @mc_io: Pointer to the fsl_mc_io object that wraps the MC portal to free -*/ -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io) -{ -int error; -struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; - - error =dpmcp_reset (mc_io,0 , dpmcp_dev->mc_handle); -if (error <0 ) { -dev_err (&dpmcp_dev->dev,"dpmcp_reset() failed: %d\n" , error); -return error; - } - -return 0 ; -} -EXPORT_SYMBOL_GPL (fsl_mc_portal_reset);
include/linux/fsl/mc.h +0 -2
@@ -417,8 +417,6 @@ int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,void fsl_mc_portal_free (struct fsl_mc_io *mc_io); -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io); -int __must_check fsl_mc_object_allocate (struct fsl_mc_device *mc_dev,enum fsl_mc_pool_type pool_type,struct fsl_mc_device **new_mc_adev);
Signature · 1 line
2.47.0
Le 15/11/2024 à 16:20, [email protected] a écrit :
Quoted 14 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.
Quoted 7 lines
Remove it.
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Quoted 119 lines
--- drivers/bus/fsl-mc/dpmcp.c | 22 ---------------------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 ----- drivers/bus/fsl-mc/fsl-mc-private.h | 6 ------ drivers/bus/fsl-mc/mc-io.c | 20 -------------------- include/linux/fsl/mc.h | 2 -- 5 files changed, 55 deletions(-)drivers/bus/fsl-mc/dpmcp.c +0
-22@@ -75,25 +75,3 @@ int dpmcp_close(struct fsl_mc_io *mc_io,/* send command to mc*/ return mc_send_command (mc_io, &cmd); } - -/** -* dpmcp_reset() - Reset the DPMCP, returns the object to initial state. -* @mc_io: Pointer to MC portal's I/O object -* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' -* @token: Token of DPMCP object -* -* Return: '0' on Success; Error code otherwise. -*/ -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token) -{ -struct fsl_mc_command cmd = {0 }; - -/* prepare command */ - cmd.header =mc_encode_cmd_header (DPMCP_CMDID_RESET , - cmd_flags, token); - -/* send command to mc*/ -return mc_send_command (mc_io, &cmd); -}drivers/bus/fsl-mc/fsl-mc-allocator.c +0
-5@@ -656,8 +656,3 @@ int __init fsl_mc_allocator_driver_init(void) {return fsl_mc_driver_register (&fsl_mc_allocator_driver); } - -void fsl_mc_allocator_driver_exit (void ) -{ -fsl_mc_driver_unregister (&fsl_mc_allocator_driver); -}drivers/bus/fsl-mc/fsl-mc-private.h +0
-6@@ -66,10 +66,6 @@ int dpmcp_close(struct fsl_mc_io *mc_io,u32 cmd_flags, u16 token); -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token); -/* * Data Path Resource Container (DPRC) API */ @@ -631,8 +627,6 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,int __init fsl_mc_allocator_driver_init (void ); -void fsl_mc_allocator_driver_exit (void ); -void fsl_mc_init_all_resource_pools (struct fsl_mc_device *mc_bus_dev);void fsl_mc_cleanup_all_resource_pools (struct fsl_mc_device *mc_bus_dev);drivers/bus/fsl-mc/mc-io.c +0
-20@@ -263,23 +263,3 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io) dpmcp_dev->consumer_link =NULL ; }EXPORT_SYMBOL_GPL (fsl_mc_portal_free); - -/** -* fsl_mc_portal_reset - Resets the dpmcp object for a given fsl_mc_io object -* -* @mc_io: Pointer to the fsl_mc_io object that wraps the MC portal to free -*/ -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io) -{ -int error; -struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; - - error =dpmcp_reset (mc_io,0 , dpmcp_dev->mc_handle); -if (error <0 ) { -dev_err (&dpmcp_dev->dev,"dpmcp_reset() failed: %d\n" , error); -return error; - } - -return 0 ; -} -EXPORT_SYMBOL_GPL (fsl_mc_portal_reset);include/linux/fsl/mc.h +0
-3@@ -417,8 +417,6 @@ int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,void fsl_mc_portal_free (struct fsl_mc_io *mc_io); -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io); -int __must_check fsl_mc_object_allocate (struct fsl_mc_device *mc_dev,enum fsl_mc_pool_type pool_type,struct fsl_mc_device **new_mc_adev); --2.47.0
Quoted 19 lines · * Christophe Leroy ([email protected]) wrote:
Le 15/11/2024 à 16:20, [email protected] a écrit :
Quoted 16 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.Remove it.
Quoted 7 lines
Quoted 5 lines
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Acked-by Christophe Leroy <[email protected]>
Hi,
Can someone pick this old change up please? I see the PPC patchwork says 'handled elsewhere' but doesn't say where.
Thanks,
Dave
Quoted 121 lines
Quoted 120 lines
--- drivers/bus/fsl-mc/dpmcp.c | 22 ---------------------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 ----- drivers/bus/fsl-mc/fsl-mc-private.h | 6 ------ drivers/bus/fsl-mc/mc-io.c | 20 -------------------- include/linux/fsl/mc.h | 2 -- 5 files changed, 55 deletions(-)drivers/bus/fsl-mc/dpmcp.c +0
-22@@ -75,25 +75,3 @@ int dpmcp_close(struct fsl_mc_io *mc_io,/* send command to mc*/ return mc_send_command (mc_io, &cmd); } - -/** -* dpmcp_reset() - Reset the DPMCP, returns the object to initial state. -* @mc_io: Pointer to MC portal's I/O object -* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' -* @token: Token of DPMCP object -* -* Return: '0' on Success; Error code otherwise. -*/ -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token) -{ -struct fsl_mc_command cmd = {0 }; - -/* prepare command */ - cmd.header =mc_encode_cmd_header (DPMCP_CMDID_RESET , - cmd_flags, token); - -/* send command to mc*/ -return mc_send_command (mc_io, &cmd); -}drivers/bus/fsl-mc/fsl-mc-allocator.c +0
-5@@ -656,8 +656,3 @@ int __init fsl_mc_allocator_driver_init(void) {return fsl_mc_driver_register (&fsl_mc_allocator_driver); } - -void fsl_mc_allocator_driver_exit (void ) -{ -fsl_mc_driver_unregister (&fsl_mc_allocator_driver); -}drivers/bus/fsl-mc/fsl-mc-private.h +0
-6@@ -66,10 +66,6 @@ int dpmcp_close(struct fsl_mc_io *mc_io,u32 cmd_flags, u16 token); -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token); -/* * Data Path Resource Container (DPRC) API */ @@ -631,8 +627,6 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,int __init fsl_mc_allocator_driver_init (void ); -void fsl_mc_allocator_driver_exit (void ); -void fsl_mc_init_all_resource_pools (struct fsl_mc_device *mc_bus_dev);void fsl_mc_cleanup_all_resource_pools (struct fsl_mc_device *mc_bus_dev);drivers/bus/fsl-mc/mc-io.c +0
-20@@ -263,23 +263,3 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io) dpmcp_dev->consumer_link =NULL ; }EXPORT_SYMBOL_GPL (fsl_mc_portal_free); - -/** -* fsl_mc_portal_reset - Resets the dpmcp object for a given fsl_mc_io object -* -* @mc_io: Pointer to the fsl_mc_io object that wraps the MC portal to free -*/ -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io) -{ -int error; -struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; - - error =dpmcp_reset (mc_io,0 , dpmcp_dev->mc_handle); -if (error <0 ) { -dev_err (&dpmcp_dev->dev,"dpmcp_reset() failed: %d\n" , error); -return error; - } - -return 0 ; -} -EXPORT_SYMBOL_GPL (fsl_mc_portal_reset);include/linux/fsl/mc.h +0
-3@@ -417,8 +417,6 @@ int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,void fsl_mc_portal_free (struct fsl_mc_io *mc_io); -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io); -int __must_check fsl_mc_object_allocate (struct fsl_mc_device *mc_dev,enum fsl_mc_pool_type pool_type,struct fsl_mc_device **new_mc_adev); --2.47.0
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Le 13/03/2025 à 14:21, Dr. David Alan Gilbert a écrit :
Quoted 26 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
Quoted 23 lines · * Christophe Leroy ([email protected]) wrote:
Quoted 20 lines · Le 15/11/2024 à 16:20, [email protected] a écrit :
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.Remove it.
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Dr. David Alan Gilbert <[email protected]>Acked-by Christophe Leroy <[email protected]>Hi,
Can someone pick this old change up please? I see the PPC patchwork says 'handled elsewhere' but doesn't say where.
MAINTAINERS file says where:
QORIQ DPAA2 FSL-MC BUS DRIVER
M: Stuart Yoder <[email protected]>
M: Laurentiu Tudor <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/ABI/stable/sysfs-bus-fsl-mc
F: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
F: Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst
F: drivers/bus/fsl-mc/
F: include/uapi/linux/fsl_mc.h
FREESCALE SOC DRIVERS
M: Christophe Leroy <[email protected]>
L: [email protected]
L: [email protected] (moderated for non-subscribers)
S: Maintained
F: Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml
F: Documentation/devicetree/bindings/soc/fsl/
F: drivers/soc/fsl/
F: include/linux/fsl/
F: include/soc/fsl/
I acked the 2 line changes in include/linux/fsl/mc.h, the main changes being in the C files which are not under my scope.
Stuart, Laurentiu, can you pick up the patch ?
Christophe
Quoted 130 lines
Thanks,
Dave
Quoted 112 lines
Quoted 112 lines
--- drivers/bus/fsl-mc/dpmcp.c | 22 ---------------------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 ----- drivers/bus/fsl-mc/fsl-mc-private.h | 6 ------ drivers/bus/fsl-mc/mc-io.c | 20 -------------------- include/linux/fsl/mc.h | 2 -- 5 files changed, 55 deletions(-)drivers/bus/fsl-mc/dpmcp.c +0
-22@@ -75,25 +75,3 @@ int dpmcp_close(struct fsl_mc_io *mc_io,/* send command to mc*/ return mc_send_command (mc_io, &cmd); } - -/** -* dpmcp_reset() - Reset the DPMCP, returns the object to initial state. -* @mc_io: Pointer to MC portal's I/O object -* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' -* @token: Token of DPMCP object -* -* Return: '0' on Success; Error code otherwise. -*/ -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token) -{ -struct fsl_mc_command cmd = {0 }; - -/* prepare command */ - cmd.header =mc_encode_cmd_header (DPMCP_CMDID_RESET , - cmd_flags, token); - -/* send command to mc*/ -return mc_send_command (mc_io, &cmd); -}drivers/bus/fsl-mc/fsl-mc-allocator.c +0
-5@@ -656,8 +656,3 @@ int __init fsl_mc_allocator_driver_init(void) {return fsl_mc_driver_register (&fsl_mc_allocator_driver); } - -void fsl_mc_allocator_driver_exit (void ) -{ -fsl_mc_driver_unregister (&fsl_mc_allocator_driver); -}drivers/bus/fsl-mc/fsl-mc-private.h +0
-6@@ -66,10 +66,6 @@ int dpmcp_close(struct fsl_mc_io *mc_io,u32 cmd_flags, u16 token); -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token); -/* * Data Path Resource Container (DPRC) API */ @@ -631,8 +627,6 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,int __init fsl_mc_allocator_driver_init (void ); -void fsl_mc_allocator_driver_exit (void ); -void fsl_mc_init_all_resource_pools (struct fsl_mc_device *mc_bus_dev);void fsl_mc_cleanup_all_resource_pools (struct fsl_mc_device *mc_bus_dev);drivers/bus/fsl-mc/mc-io.c +0
-20@@ -263,23 +263,3 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io) dpmcp_dev->consumer_link =NULL ; }EXPORT_SYMBOL_GPL (fsl_mc_portal_free); - -/** -* fsl_mc_portal_reset - Resets the dpmcp object for a given fsl_mc_io object -* -* @mc_io: Pointer to the fsl_mc_io object that wraps the MC portal to free -*/ -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io) -{ -int error; -struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; - - error =dpmcp_reset (mc_io,0 , dpmcp_dev->mc_handle); -if (error <0 ) { -dev_err (&dpmcp_dev->dev,"dpmcp_reset() failed: %d\n" , error); -return error; - } - -return 0 ; -} -EXPORT_SYMBOL_GPL (fsl_mc_portal_reset);include/linux/fsl/mc.h +0
-0@@ -417,8 +417,6 @@ int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,void fsl_mc_portal_free (struct fsl_mc_io *mc_io);Quoted 9 lines
Quoted 8 lines
include/linux/fsl/mc.h +0
-3-int fsl_mc_portal_reset (struct fsl_mc_io *mc_io); -int __must_check fsl_mc_object_allocate (struct fsl_mc_device *mc_dev,enum fsl_mc_pool_type pool_type,struct fsl_mc_device **new_mc_adev); --2.47.0
--
-----Open up your eyes, open up your mind, open up your code -------/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex /
Ioana Ciornei
maintainerQuoted 62 lines · Christophe Leroy
Le 13/03/2025 à 14:21, Dr. David Alan Gilbert a écrit :
Quoted 26 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
Quoted 23 lines · * Christophe Leroy ([email protected]) wrote:
Quoted 20 lines · Le 15/11/2024 à 16:20, [email protected] a écrit :
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.Remove it.
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Dr. David Alan Gilbert <[email protected]>Acked-by Christophe Leroy <[email protected]>Hi,
Can someone pick this old change up please? I see the PPC patchwork says 'handled elsewhere' but doesn't say where.
MAINTAINERSfile says where:QORIQ DPAA2 FSL-MC BUS DRIVER
M: Stuart Yoder <[email protected]>
M: Laurentiu Tudor <[email protected]>
L: [email protected]
S: Maintained
F:Documentation/ABI/stable/sysfs-bus-fsl-mc
F:Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
F:Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst
F:drivers/bus/fsl-mc/
F:include/uapi/linux/fsl_mc.hFREESCALE SOC DRIVERS
M: Christophe Leroy <[email protected]>
L: [email protected]
L: [email protected] (moderated for non-subscribers)
S: Maintained
F:Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml
F:Documentation/devicetree/bindings/soc/fsl/
F:drivers/soc/fsl/
F:include/linux/fsl/
F:include/soc/fsl/
Quoted 4 lines
I acked the 2 line changes in
include/linux/fsl/mc.h, the main changes being in the C files which are not under my scope.Stuart, Laurentiu, can you pick up the patch ?
Stuart and Laurentiu are no longer at NXP. Even when they handled the fsl-mc bus driver, they didn't have a tree themselves to pick patches up but rather, historically, patches on the fsl-mc bus were picked by Greg KH.
Ioana
Hi Greg,
Quoted 66 lines · * Ioana Ciornei ([email protected]) wrote:
Quoted 65 lines · Christophe Leroy
Le 13/03/2025 à 14:21, Dr. David Alan Gilbert a écrit :
Quoted 26 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
Quoted 23 lines · * Christophe Leroy ([email protected]) wrote:
Quoted 20 lines · Le 15/11/2024 à 16:20, [email protected] a écrit :
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.Remove it.
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Dr. David Alan Gilbert <[email protected]>Acked-by Christophe Leroy <[email protected]>Hi,
Can someone pick this old change up please? I see the PPC patchwork says 'handled elsewhere' but doesn't say where.
MAINTAINERSfile says where:QORIQ DPAA2 FSL-MC BUS DRIVER
M: Stuart Yoder <[email protected]>
M: Laurentiu Tudor <[email protected]>
L: [email protected]
S: Maintained
F:Documentation/ABI/stable/sysfs-bus-fsl-mc
F:Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt
F:Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst
F:drivers/bus/fsl-mc/
F:include/uapi/linux/fsl_mc.hFREESCALE SOC DRIVERS
M: Christophe Leroy <[email protected]>
L: [email protected]
L: [email protected] (moderated for non-subscribers)
S: Maintained
F:Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml
F:Documentation/devicetree/bindings/soc/fsl/
F:drivers/soc/fsl/
F:include/linux/fsl/
F:include/soc/fsl/I acked the 2 line changes in
include/linux/fsl/mc.h, the main changes being in the C files which are not under my scope.
Quoted 6 lines
Quoted 1 line
Stuart, Laurentiu, can you pick up the patch ?
Stuart and Laurentiu are no longer at NXP. Even when they handled the fsl-mc bus driver, they didn't have a tree themselves to pick patches up but rather, historically, patches on the fsl-mc bus were picked by Greg KH.
OK, copied Greg in.
Dave
Quoted 1 line
Ioana
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Ioana,
Le 15/11/2024 à 16:20, [email protected] a écrit :
Quoted 14 lines
[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.
Quoted 7 lines
Remove it.
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Can you ack this patch ?
Thanks
Christophe
Quoted 119 lines
--- drivers/bus/fsl-mc/dpmcp.c | 22 ---------------------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 ----- drivers/bus/fsl-mc/fsl-mc-private.h | 6 ------ drivers/bus/fsl-mc/mc-io.c | 20 -------------------- include/linux/fsl/mc.h | 2 -- 5 files changed, 55 deletions(-)drivers/bus/fsl-mc/dpmcp.c +0
-22@@ -75,25 +75,3 @@ int dpmcp_close(struct fsl_mc_io *mc_io,/* send command to mc*/ return mc_send_command (mc_io, &cmd); } - -/** -* dpmcp_reset() - Reset the DPMCP, returns the object to initial state. -* @mc_io: Pointer to MC portal's I/O object -* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' -* @token: Token of DPMCP object -* -* Return: '0' on Success; Error code otherwise. -*/ -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token) -{ -struct fsl_mc_command cmd = {0 }; - -/* prepare command */ - cmd.header =mc_encode_cmd_header (DPMCP_CMDID_RESET , - cmd_flags, token); - -/* send command to mc*/ -return mc_send_command (mc_io, &cmd); -}drivers/bus/fsl-mc/fsl-mc-allocator.c +0
-5@@ -656,8 +656,3 @@ int __init fsl_mc_allocator_driver_init(void) {return fsl_mc_driver_register (&fsl_mc_allocator_driver); } - -void fsl_mc_allocator_driver_exit (void ) -{ -fsl_mc_driver_unregister (&fsl_mc_allocator_driver); -}drivers/bus/fsl-mc/fsl-mc-private.h +0
-6@@ -66,10 +66,6 @@ int dpmcp_close(struct fsl_mc_io *mc_io,u32 cmd_flags, u16 token); -int dpmcp_reset (struct fsl_mc_io *mc_io, -u32 cmd_flags, -u16 token); -/* * Data Path Resource Container (DPRC) API */ @@ -631,8 +627,6 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,int __init fsl_mc_allocator_driver_init (void ); -void fsl_mc_allocator_driver_exit (void ); -void fsl_mc_init_all_resource_pools (struct fsl_mc_device *mc_bus_dev);void fsl_mc_cleanup_all_resource_pools (struct fsl_mc_device *mc_bus_dev);drivers/bus/fsl-mc/mc-io.c +0
-20@@ -263,23 +263,3 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io) dpmcp_dev->consumer_link =NULL ; }EXPORT_SYMBOL_GPL (fsl_mc_portal_free); - -/** -* fsl_mc_portal_reset - Resets the dpmcp object for a given fsl_mc_io object -* -* @mc_io: Pointer to the fsl_mc_io object that wraps the MC portal to free -*/ -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io) -{ -int error; -struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; - - error =dpmcp_reset (mc_io,0 , dpmcp_dev->mc_handle); -if (error <0 ) { -dev_err (&dpmcp_dev->dev,"dpmcp_reset() failed: %d\n" , error); -return error; - } - -return 0 ; -} -EXPORT_SYMBOL_GPL (fsl_mc_portal_reset);include/linux/fsl/mc.h +0
-3@@ -417,8 +417,6 @@ int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,void fsl_mc_portal_free (struct fsl_mc_io *mc_io); -int fsl_mc_portal_reset (struct fsl_mc_io *mc_io); -int __must_check fsl_mc_object_allocate (struct fsl_mc_device *mc_dev,enum fsl_mc_pool_type pool_type,struct fsl_mc_device **new_mc_adev); --2.47.0
Quoted 12 lines · On Fri, Nov 15, 2024 at 03:20:55PM +0000, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.
Quoted 7 lines
Remove it.
fsl_mc_portal_reset()was the only caller ofdpmcp_reset().Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Christophe Leroy
AppliedQuoted 11 lines · On Fri, 15 Nov 2024 15:20:55 +0000, [email protected] wrote:
fsl_mc_allocator_driver_exit()was added explicitly by
commit1e8ac83b6caf("bus: fsl-mc: addfsl_mc_allocatorcleanup function") but was never used.Remove it.
fsl_mc_portal_reset()was added in 2015 by
commit197f4d6a4a00("staging: fsl-mc: fsl-mc object allocator driver") but was never used.[...]
Applied, thanks!
[1/1] bus: fsl-mc: Remove deadcode
commit: c25951eb7518844fcb7fc9ec58e888731e8c46d0
Best regards,
Signature · 1 line
Christophe Leroy <[email protected]>