All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-03  3:48 ` Tian Tao
  0 siblings, 0 replies; 9+ messages in thread
From: Tian Tao @ 2020-11-03  3:48 UTC (permalink / raw)
  To: ulf.hansson, khilman, narmstrong, jbrunet, martin.blumenstingl,
	linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel

The code has been in a irq-disabled context since it is hard IRQ. There
is no necessity to do it again.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/mmc/host/meson-mx-sdio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
index 1c5299c..d4a4891 100644
--- a/drivers/mmc/host/meson-mx-sdio.c
+++ b/drivers/mmc/host/meson-mx-sdio.c
@@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
 {
 	struct meson_mx_mmc_host *host = (void *) data;
 	u32 irqs, send;
-	unsigned long irqflags;
 	irqreturn_t ret;
 
-	spin_lock_irqsave(&host->irq_lock, irqflags);
+	spin_lock(&host->irq_lock);
 
 	irqs = readl(host->base + MESON_MX_SDIO_IRQS);
 	send = readl(host->base + MESON_MX_SDIO_SEND);
@@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
 	/* finally ACK all pending interrupts */
 	writel(irqs, host->base + MESON_MX_SDIO_IRQS);
 
-	spin_unlock_irqrestore(&host->irq_lock, irqflags);
+	spin_unlock(&host->irq_lock);
 
 	return ret;
 }
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-03  3:48 ` Tian Tao
  0 siblings, 0 replies; 9+ messages in thread
From: Tian Tao @ 2020-11-03  3:48 UTC (permalink / raw)
  To: ulf.hansson, khilman, narmstrong, jbrunet, martin.blumenstingl,
	linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel

The code has been in a irq-disabled context since it is hard IRQ. There
is no necessity to do it again.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/mmc/host/meson-mx-sdio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
index 1c5299c..d4a4891 100644
--- a/drivers/mmc/host/meson-mx-sdio.c
+++ b/drivers/mmc/host/meson-mx-sdio.c
@@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
 {
 	struct meson_mx_mmc_host *host = (void *) data;
 	u32 irqs, send;
-	unsigned long irqflags;
 	irqreturn_t ret;
 
-	spin_lock_irqsave(&host->irq_lock, irqflags);
+	spin_lock(&host->irq_lock);
 
 	irqs = readl(host->base + MESON_MX_SDIO_IRQS);
 	send = readl(host->base + MESON_MX_SDIO_SEND);
@@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
 	/* finally ACK all pending interrupts */
 	writel(irqs, host->base + MESON_MX_SDIO_IRQS);
 
-	spin_unlock_irqrestore(&host->irq_lock, irqflags);
+	spin_unlock(&host->irq_lock);
 
 	return ret;
 }
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-03  3:48 ` Tian Tao
  0 siblings, 0 replies; 9+ messages in thread
From: Tian Tao @ 2020-11-03  3:48 UTC (permalink / raw)
  To: ulf.hansson, khilman, narmstrong, jbrunet, martin.blumenstingl,
	linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel

The code has been in a irq-disabled context since it is hard IRQ. There
is no necessity to do it again.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/mmc/host/meson-mx-sdio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
index 1c5299c..d4a4891 100644
--- a/drivers/mmc/host/meson-mx-sdio.c
+++ b/drivers/mmc/host/meson-mx-sdio.c
@@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
 {
 	struct meson_mx_mmc_host *host = (void *) data;
 	u32 irqs, send;
-	unsigned long irqflags;
 	irqreturn_t ret;
 
-	spin_lock_irqsave(&host->irq_lock, irqflags);
+	spin_lock(&host->irq_lock);
 
 	irqs = readl(host->base + MESON_MX_SDIO_IRQS);
 	send = readl(host->base + MESON_MX_SDIO_SEND);
@@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
 	/* finally ACK all pending interrupts */
 	writel(irqs, host->base + MESON_MX_SDIO_IRQS);
 
-	spin_unlock_irqrestore(&host->irq_lock, irqflags);
+	spin_unlock(&host->irq_lock);
 
 	return ret;
 }
-- 
2.7.4


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
  2020-11-03  3:48 ` Tian Tao
  (?)
@ 2020-11-05  9:57   ` Jerome Brunet
  -1 siblings, 0 replies; 9+ messages in thread
From: Jerome Brunet @ 2020-11-05  9:57 UTC (permalink / raw)
  To: Tian Tao, ulf.hansson, khilman, narmstrong, martin.blumenstingl,
	linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel


On Tue 03 Nov 2020 at 04:48, Tian Tao <tiantao6@hisilicon.com> wrote:

> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>

> ---
>  drivers/mmc/host/meson-mx-sdio.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
> index 1c5299c..d4a4891 100644
> --- a/drivers/mmc/host/meson-mx-sdio.c
> +++ b/drivers/mmc/host/meson-mx-sdio.c
> @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  {
>  	struct meson_mx_mmc_host *host = (void *) data;
>  	u32 irqs, send;
> -	unsigned long irqflags;
>  	irqreturn_t ret;
>  
> -	spin_lock_irqsave(&host->irq_lock, irqflags);
> +	spin_lock(&host->irq_lock);
>  
>  	irqs = readl(host->base + MESON_MX_SDIO_IRQS);
>  	send = readl(host->base + MESON_MX_SDIO_SEND);
> @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  	/* finally ACK all pending interrupts */
>  	writel(irqs, host->base + MESON_MX_SDIO_IRQS);
>  
> -	spin_unlock_irqrestore(&host->irq_lock, irqflags);
> +	spin_unlock(&host->irq_lock);
>  
>  	return ret;
>  }


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-05  9:57   ` Jerome Brunet
  0 siblings, 0 replies; 9+ messages in thread
From: Jerome Brunet @ 2020-11-05  9:57 UTC (permalink / raw)
  To: Tian Tao, ulf.hansson, khilman, narmstrong, martin.blumenstingl,
	linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel


On Tue 03 Nov 2020 at 04:48, Tian Tao <tiantao6@hisilicon.com> wrote:

> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>

> ---
>  drivers/mmc/host/meson-mx-sdio.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
> index 1c5299c..d4a4891 100644
> --- a/drivers/mmc/host/meson-mx-sdio.c
> +++ b/drivers/mmc/host/meson-mx-sdio.c
> @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  {
>  	struct meson_mx_mmc_host *host = (void *) data;
>  	u32 irqs, send;
> -	unsigned long irqflags;
>  	irqreturn_t ret;
>  
> -	spin_lock_irqsave(&host->irq_lock, irqflags);
> +	spin_lock(&host->irq_lock);
>  
>  	irqs = readl(host->base + MESON_MX_SDIO_IRQS);
>  	send = readl(host->base + MESON_MX_SDIO_SEND);
> @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  	/* finally ACK all pending interrupts */
>  	writel(irqs, host->base + MESON_MX_SDIO_IRQS);
>  
> -	spin_unlock_irqrestore(&host->irq_lock, irqflags);
> +	spin_unlock(&host->irq_lock);
>  
>  	return ret;
>  }


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-05  9:57   ` Jerome Brunet
  0 siblings, 0 replies; 9+ messages in thread
From: Jerome Brunet @ 2020-11-05  9:57 UTC (permalink / raw)
  To: Tian Tao, ulf.hansson, khilman, narmstrong, martin.blumenstingl,
	linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel


On Tue 03 Nov 2020 at 04:48, Tian Tao <tiantao6@hisilicon.com> wrote:

> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>

> ---
>  drivers/mmc/host/meson-mx-sdio.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
> index 1c5299c..d4a4891 100644
> --- a/drivers/mmc/host/meson-mx-sdio.c
> +++ b/drivers/mmc/host/meson-mx-sdio.c
> @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  {
>  	struct meson_mx_mmc_host *host = (void *) data;
>  	u32 irqs, send;
> -	unsigned long irqflags;
>  	irqreturn_t ret;
>  
> -	spin_lock_irqsave(&host->irq_lock, irqflags);
> +	spin_lock(&host->irq_lock);
>  
>  	irqs = readl(host->base + MESON_MX_SDIO_IRQS);
>  	send = readl(host->base + MESON_MX_SDIO_SEND);
> @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  	/* finally ACK all pending interrupts */
>  	writel(irqs, host->base + MESON_MX_SDIO_IRQS);
>  
> -	spin_unlock_irqrestore(&host->irq_lock, irqflags);
> +	spin_unlock(&host->irq_lock);
>  
>  	return ret;
>  }


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
  2020-11-03  3:48 ` Tian Tao
  (?)
@ 2020-11-05 12:59   ` Ulf Hansson
  -1 siblings, 0 replies; 9+ messages in thread
From: Ulf Hansson @ 2020-11-05 12:59 UTC (permalink / raw)
  To: Tian Tao
  Cc: Kevin Hilman, Neil Armstrong, Jerome Brunet, Martin Blumenstingl,
	linux-mmc, Linux ARM, open list:ARM/Amlogic Meson...,
	Linux Kernel Mailing List

On Tue, 3 Nov 2020 at 04:48, Tian Tao <tiantao6@hisilicon.com> wrote:
>
> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/meson-mx-sdio.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
> index 1c5299c..d4a4891 100644
> --- a/drivers/mmc/host/meson-mx-sdio.c
> +++ b/drivers/mmc/host/meson-mx-sdio.c
> @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  {
>         struct meson_mx_mmc_host *host = (void *) data;
>         u32 irqs, send;
> -       unsigned long irqflags;
>         irqreturn_t ret;
>
> -       spin_lock_irqsave(&host->irq_lock, irqflags);
> +       spin_lock(&host->irq_lock);
>
>         irqs = readl(host->base + MESON_MX_SDIO_IRQS);
>         send = readl(host->base + MESON_MX_SDIO_SEND);
> @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>         /* finally ACK all pending interrupts */
>         writel(irqs, host->base + MESON_MX_SDIO_IRQS);
>
> -       spin_unlock_irqrestore(&host->irq_lock, irqflags);
> +       spin_unlock(&host->irq_lock);
>
>         return ret;
>  }
> --
> 2.7.4
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-05 12:59   ` Ulf Hansson
  0 siblings, 0 replies; 9+ messages in thread
From: Ulf Hansson @ 2020-11-05 12:59 UTC (permalink / raw)
  To: Tian Tao
  Cc: Neil Armstrong, Martin Blumenstingl, Kevin Hilman, linux-mmc,
	Linux Kernel Mailing List, open list:ARM/Amlogic Meson...,
	Linux ARM, Jerome Brunet

On Tue, 3 Nov 2020 at 04:48, Tian Tao <tiantao6@hisilicon.com> wrote:
>
> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/meson-mx-sdio.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
> index 1c5299c..d4a4891 100644
> --- a/drivers/mmc/host/meson-mx-sdio.c
> +++ b/drivers/mmc/host/meson-mx-sdio.c
> @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  {
>         struct meson_mx_mmc_host *host = (void *) data;
>         u32 irqs, send;
> -       unsigned long irqflags;
>         irqreturn_t ret;
>
> -       spin_lock_irqsave(&host->irq_lock, irqflags);
> +       spin_lock(&host->irq_lock);
>
>         irqs = readl(host->base + MESON_MX_SDIO_IRQS);
>         send = readl(host->base + MESON_MX_SDIO_SEND);
> @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>         /* finally ACK all pending interrupts */
>         writel(irqs, host->base + MESON_MX_SDIO_IRQS);
>
> -       spin_unlock_irqrestore(&host->irq_lock, irqflags);
> +       spin_unlock(&host->irq_lock);
>
>         return ret;
>  }
> --
> 2.7.4
>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2020-11-05 12:59   ` Ulf Hansson
  0 siblings, 0 replies; 9+ messages in thread
From: Ulf Hansson @ 2020-11-05 12:59 UTC (permalink / raw)
  To: Tian Tao
  Cc: Neil Armstrong, Martin Blumenstingl, Kevin Hilman, linux-mmc,
	Linux Kernel Mailing List, open list:ARM/Amlogic Meson...,
	Linux ARM, Jerome Brunet

On Tue, 3 Nov 2020 at 04:48, Tian Tao <tiantao6@hisilicon.com> wrote:
>
> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/meson-mx-sdio.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c
> index 1c5299c..d4a4891 100644
> --- a/drivers/mmc/host/meson-mx-sdio.c
> +++ b/drivers/mmc/host/meson-mx-sdio.c
> @@ -418,10 +418,9 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>  {
>         struct meson_mx_mmc_host *host = (void *) data;
>         u32 irqs, send;
> -       unsigned long irqflags;
>         irqreturn_t ret;
>
> -       spin_lock_irqsave(&host->irq_lock, irqflags);
> +       spin_lock(&host->irq_lock);
>
>         irqs = readl(host->base + MESON_MX_SDIO_IRQS);
>         send = readl(host->base + MESON_MX_SDIO_SEND);
> @@ -434,7 +433,7 @@ static irqreturn_t meson_mx_mmc_irq(int irq, void *data)
>         /* finally ACK all pending interrupts */
>         writel(irqs, host->base + MESON_MX_SDIO_IRQS);
>
> -       spin_unlock_irqrestore(&host->irq_lock, irqflags);
> +       spin_unlock(&host->irq_lock);
>
>         return ret;
>  }
> --
> 2.7.4
>

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-05 13:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03  3:48 [PATCH] mmc: meson-mx-sdio: replace spin_lock_irqsave by spin_lock in hard IRQ Tian Tao
2020-11-03  3:48 ` Tian Tao
2020-11-03  3:48 ` Tian Tao
2020-11-05  9:57 ` Jerome Brunet
2020-11-05  9:57   ` Jerome Brunet
2020-11-05  9:57   ` Jerome Brunet
2020-11-05 12:59 ` Ulf Hansson
2020-11-05 12:59   ` Ulf Hansson
2020-11-05 12:59   ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.