net: ipa: kill ipa_power_suspend_handler()
authorAlex Elder <elder@linaro.org>
Fri, 23 Feb 2024 13:39:29 +0000 (07:39 -0600)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 27 Feb 2024 10:24:04 +0000 (11:24 +0100)
Now that ipa_power_suspend_handler() is a trivial wrapper around
ipa_interrupt_suspend_clear_all(), we can open-code it in the one
place it's used, and get rid of the function.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ipa/ipa_interrupt.c
drivers/net/ipa/ipa_interrupt.h
drivers/net/ipa/ipa_power.c
drivers/net/ipa/ipa_power.h

index e5e01655e8c28f6b6256900db37efa976ae91d25..501962cc4e90fe2ac47c5138f6155db108b7a7c7 100644 (file)
@@ -44,7 +44,7 @@ struct ipa_interrupt {
 };
 
 /* Clear the suspend interrupt for all endpoints that signaled it */
-void ipa_interrupt_suspend_clear_all(struct ipa_interrupt *interrupt)
+static void ipa_interrupt_suspend_clear_all(struct ipa_interrupt *interrupt)
 {
        struct ipa *ipa = interrupt->ipa;
        u32 unit_count;
@@ -94,7 +94,7 @@ static void ipa_interrupt_process(struct ipa_interrupt *interrupt, u32 irq_id)
                 * caused the interrupt, so defer clearing until after
                 * the handler has been called.
                 */
-               ipa_power_suspend_handler(ipa, irq_id);
+               ipa_interrupt_suspend_clear_all(interrupt);
                fallthrough;
 
        default:        /* Silently ignore (and clear) any other condition */
index 12e3e798ccb38ee44ddbccef167c9786e9fe07f7..53e1b71685c7550a100c8677eed91aa8d4171077 100644 (file)
@@ -34,14 +34,6 @@ void ipa_interrupt_suspend_enable(struct ipa_interrupt *interrupt,
 void ipa_interrupt_suspend_disable(struct ipa_interrupt *interrupt,
                                   u32 endpoint_id);
 
-/**
- * ipa_interrupt_suspend_clear_all - clear all suspend interrupts
- * @interrupt: IPA interrupt structure
- *
- * Clear the TX_SUSPEND interrupt for all endpoints that signaled it.
- */
-void ipa_interrupt_suspend_clear_all(struct ipa_interrupt *interrupt);
-
 /**
  * ipa_interrupt_simulate_suspend() - Simulate TX_SUSPEND IPA interrupt
  * @interrupt: IPA interrupt structure
index eee251d67f81ae377fac2d2812493292a16aae98..0f635b8356bfb7cd34f5f433ee3e2b36ff905a9b 100644 (file)
@@ -194,12 +194,6 @@ u32 ipa_core_clock_rate(struct ipa *ipa)
        return ipa->power ? (u32)clk_get_rate(ipa->power->core) : 0;
 }
 
-void ipa_power_suspend_handler(struct ipa *ipa, enum ipa_irq_id irq_id)
-{
-       /* Acknowledge/clear the suspend interrupt on all endpoints */
-       ipa_interrupt_suspend_clear_all(ipa->interrupt);
-}
-
 static int ipa_power_retention_init(struct ipa_power *power)
 {
        struct qmp *qmp = qmp_get(power->dev);
index 718aacf5e2b23eea9da9140167dc7b927d208a17..227cc04bea8065c9e72ae580f31b62a5f608ed7d 100644 (file)
@@ -30,17 +30,6 @@ u32 ipa_core_clock_rate(struct ipa *ipa);
  */
 void ipa_power_retention(struct ipa *ipa, bool enable);
 
-/**
- * ipa_power_suspend_handler() - Handler for SUSPEND IPA interrupts
- * @ipa:       IPA pointer
- * @irq_id:    IPA interrupt ID (unused)
- *
- * If an RX endpoint is suspended, and the IPA has a packet destined for
- * that endpoint, the IPA generates a SUSPEND interrupt to inform the AP
- * that it should resume the endpoint.
- */
-void ipa_power_suspend_handler(struct ipa *ipa, enum ipa_irq_id irq_id);
-
 /**
  * ipa_power_setup() - Set up IPA power management
  * @ipa:       IPA pointer