memory: omap-gpmc: deadcode a pair of functions
PATCH v2 1/1 memory: omap-gpmc: deadcode a pair of functions
From: "Dr. David Alan Gilbert" <[email protected]>
gpmc_get_client_irq() last use was removed by
commit ac28e47ccc3f ("ARM: OMAP2+: Remove legacy gpmc-nand.c")
gpmc_ticks_to_ns() last use was removed by commit 2514830b8b8c ("ARM: OMAP2+: Remove gpmc-onenand")
Remove them.
gpmc_clk_ticks_to_ns() is now only used in some DEBUG code; move inside the ifdef to avoid unused warnings.
--- drivers/memory/omap-gpmc.c | 33 +++++++-------------------------- include/linux/omap-gpmc.h | 4 ---- 2 files changed, 7 insertions(+), 30 deletions(-)
drivers/memory/omap-gpmc.c +7 -26
@@ -358,17 +358,6 @@ static unsigned int gpmc_ps_to_ticks(unsigned int time_ps)return (time_ps + tick_ps -1 ) / tick_ps; } -static unsigned int gpmc_clk_ticks_to_ns (unsigned int ticks,int cs, -enum gpmc_clk_domain cd) -{ -return ticks *gpmc_get_clk_period (cs, cd) /1000 ; -} - -unsigned int gpmc_ticks_to_ns (unsigned int ticks) -{ -return gpmc_clk_ticks_to_ns (ticks,/* any CS */ 0 ,GPMC_CD_FCLK ); -} -static unsigned int gpmc_ticks_to_ps (unsigned int ticks) {return ticks *gpmc_get_fclk_period ();
@@ -415,6 +404,13 @@ static void gpmc_cs_bool_timings(int cs, const struct gpmc_bool_timings *p) }#ifdef CONFIG_OMAP_GPMC_DEBUG + +static unsigned int gpmc_clk_ticks_to_ns (unsigned int ticks,int cs, +enum gpmc_clk_domain cd) +{ +return ticks *gpmc_get_clk_period (cs, cd) /1000 ; +} +/** * get_gpmc_timing_reg - read a timing parameter and print DTS settings for it. * @cs: Chip Select Region
@@ -1295,21 +1291,6 @@ int gpmc_omap_onenand_set_timings(struct device *dev, int cs, int freq, }EXPORT_SYMBOL_GPL (gpmc_omap_onenand_set_timings); -int gpmc_get_client_irq (unsigned int irq_config) -{ -if (!gpmc_irq_domain) { -pr_warn ("%s called before GPMC IRQ domain available\n" , - __func__); -return 0 ; - } - -/* we restrict this to NAND IRQs only */ -if (irq_config >=GPMC_NR_NAND_IRQS ) -return 0 ; - -return irq_create_mapping (gpmc_irq_domain, irq_config); -} -static int gpmc_irq_endis (unsigned long hwirq,bool endis) {u32 regval;
include/linux/omap-gpmc.h +0 -4
@@ -66,10 +66,6 @@ extern int gpmc_calc_timings(struct gpmc_timings *gpmc_t,struct device_node ; -extern int gpmc_get_client_irq (unsigned irq_config); - -extern unsigned int gpmc_ticks_to_ns (unsigned int ticks); -extern void gpmc_cs_write_reg (int cs,int idx,u32 val);extern int gpmc_calc_divider (unsigned int sync_clk); extern int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t,
Signature · 1 line
2.47.1
Quoted 8 lines · On 11/12/2024 23:42, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
gpmc_get_client_irq()last use was removed by
commitac28e47ccc3f("ARM: OMAP2+: Remove legacygpmc-nand.c")
gpmc_ticks_to_ns()last use was removed by commit2514830b8b8c("ARM: OMAP2+: Remove gpmc-onenand")
Quoted 6 lines
Remove them.
gpmc_clk_ticks_to_ns()is now only used in some DEBUG code; move inside the ifdef to avoid unused warnings.Signed-off-by Dr. David Alan Gilbert <[email protected]>
Kevin Hilman
AppliedQuoted 9 lines · On Wed, 11 Dec 2024 21:42:27 +0000, [email protected] wrote:
gpmc_get_client_irq()last use was removed by
commitac28e47ccc3f("ARM: OMAP2+: Remove legacygpmc-nand.c")
gpmc_ticks_to_ns()last use was removed by commit2514830b8b8c("ARM: OMAP2+: Remove gpmc-onenand")Remove them.
[...]
Applied, thanks!
[1/1] memory: omap-gpmc: deadcode a pair of functions
commit: 56d96fc5539003a95b8ab631a4ebb5d1b0a24885
Best regards,
Signature · 1 line
Kevin Hilman <[email protected]>
Krzysztof Kozlowski
maintainerQuoted 8 lines · Kevin Hilman
Quoted 6 lines · On Wed, 11 Dec 2024 21:42:27 +0000, [email protected] wrote:
gpmc_get_client_irq()last use was removed by
commitac28e47ccc3f("ARM: OMAP2+: Remove legacygpmc-nand.c")
gpmc_ticks_to_ns()last use was removed by commit2514830b8b8c("ARM: OMAP2+: Remove gpmc-onenand")
Quoted 8 lines
Quoted 3 lines
Remove them.
[...]
Applied, thanks!
[1/1] memory: omap-gpmc: deadcode a pair of functions
commit: 56d96fc5539003a95b8ab631a4ebb5d1b0a24885
This should not go via soc tree, it's memory.
Best regards,
Krzysztof
Kevin Hilman
Acked-byQuoted 11 lines · Krzysztof Kozlowski
Quoted 10 lines · Kevin Hilman
Quoted 8 lines · On Wed, 11 Dec 2024 21:42:27 +0000, [email protected] wrote:
gpmc_get_client_irq()last use was removed by
commitac28e47ccc3f("ARM: OMAP2+: Remove legacygpmc-nand.c")
gpmc_ticks_to_ns()last use was removed by commit2514830b8b8c("ARM: OMAP2+: Remove gpmc-onenand")Remove them.
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
[...]
Applied, thanks!
[1/1] memory: omap-gpmc: deadcode a pair of functions
commit: 56d96fc5539003a95b8ab631a4ebb5d1b0a24885This should not go via soc tree, it's memory.
Indeed, thanks for catching. That's what I get for trying to review/apply patches first thing in the moring.
I dropped it from my tree, sorry for the noise.
What should've said was simply
Kevin
Krzysztof Kozlowski
AppliedQuoted 9 lines · On Wed, 11 Dec 2024 21:42:27 +0000, [email protected] wrote:
gpmc_get_client_irq()last use was removed by
commitac28e47ccc3f("ARM: OMAP2+: Remove legacygpmc-nand.c")
gpmc_ticks_to_ns()last use was removed by commit2514830b8b8c("ARM: OMAP2+: Remove gpmc-onenand")Remove them.
[...]
Applied, thanks!
[1/1] memory: omap-gpmc: deadcode a pair of functions
https://git.kernel.org/krzk/linux-mem-ctrl/c/5119e6b44f8ada5f5cea19935a7f005fee062aef
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>