linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the spi-mb tree with the mmc tree
@ 2012-09-05  3:15 Stephen Rothwell
  2012-09-05  3:56 ` Marek Vasut
  2012-09-06  6:26 ` Lauri Hintsala
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Rothwell @ 2012-09-05  3:15 UTC (permalink / raw)
  To: Mark Brown
  Cc: linux-next, linux-kernel, Lauri Hintsala, Chris Ball, Marek Vasut

[-- Attachment #1: Type: text/plain, Size: 2363 bytes --]

Hi Mark,

Today's linux-next merge of the spi-mb tree got a conflict in
drivers/mmc/host/mxs-mmc.c between commit fc108d24d3a6 ("mmc: mxs-mmc:
fix deadlock caused by recursion loop") from the mmc tree and commit
829c1bf40b92 ("mmc: spi: Pull out parts shared between MMC and SPI") from
the spi-mb tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc drivers/mmc/host/mxs-mmc.c
index ad3fcea,4da9966..0000000
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@@ -281,12 -193,10 +193,12 @@@ static irqreturn_t mxs_mmc_irq_handler(
  
  	spin_lock(&host->lock);
  
- 	stat = readl(host->base + HW_SSP_CTRL1(host));
+ 	stat = readl(ssp->base + HW_SSP_CTRL1(ssp));
  	writel(stat & MXS_MMC_IRQ_BITS,
- 	       host->base + HW_SSP_CTRL1(host) + STMP_OFFSET_REG_CLR);
+ 	       ssp->base + HW_SSP_CTRL1(ssp) + STMP_OFFSET_REG_CLR);
  
 +	spin_unlock(&host->lock);
 +
  	if ((stat & BM_SSP_CTRL1_SDIO_IRQ) && (stat & BM_SSP_CTRL1_SDIO_IRQ_EN))
  		mmc_signal_sdio_irq(host->mmc);
  
@@@ -641,22 -523,22 +523,22 @@@ static void mxs_mmc_enable_sdio_irq(str
  
  	if (enable) {
  		writel(BM_SSP_CTRL0_SDIO_IRQ_CHECK,
- 		       host->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_SET);
+ 		       ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_SET);
  		writel(BM_SSP_CTRL1_SDIO_IRQ_EN,
- 		       host->base + HW_SSP_CTRL1(host) + STMP_OFFSET_REG_SET);
+ 		       ssp->base + HW_SSP_CTRL1(ssp) + STMP_OFFSET_REG_SET);
 -
 -		if (readl(ssp->base + HW_SSP_STATUS(ssp)) &
 -				BM_SSP_STATUS_SDIO_IRQ)
 -			mmc_signal_sdio_irq(host->mmc);
 -
  	} else {
  		writel(BM_SSP_CTRL0_SDIO_IRQ_CHECK,
- 		       host->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR);
+ 		       ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR);
  		writel(BM_SSP_CTRL1_SDIO_IRQ_EN,
- 		       host->base + HW_SSP_CTRL1(host) + STMP_OFFSET_REG_CLR);
+ 		       ssp->base + HW_SSP_CTRL1(ssp) + STMP_OFFSET_REG_CLR);
  	}
  
  	spin_unlock_irqrestore(&host->lock, flags);
 +
- 	if (enable && readl(host->base + HW_SSP_STATUS(host)) &
++	if (enable && readl(ssp->base + HW_SSP_STATUS(ssp)) &
 +			BM_SSP_STATUS_SDIO_IRQ)
 +		mmc_signal_sdio_irq(host->mmc);
 +
  }
  
  static const struct mmc_host_ops mxs_mmc_ops = {

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: linux-next: manual merge of the spi-mb tree with the mmc tree
  2012-09-05  3:15 linux-next: manual merge of the spi-mb tree with the mmc tree Stephen Rothwell
@ 2012-09-05  3:56 ` Marek Vasut
  2012-09-06  6:26 ` Lauri Hintsala
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-09-05  3:56 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Mark Brown, linux-next, linux-kernel, Lauri Hintsala, Chris Ball

Dear Stephen Rothwell,

> Hi Mark,
> 
> Today's linux-next merge of the spi-mb tree got a conflict in
> drivers/mmc/host/mxs-mmc.c between commit fc108d24d3a6 ("mmc: mxs-mmc:
> fix deadlock caused by recursion loop") from the mmc tree and commit
> 829c1bf40b92 ("mmc: spi: Pull out parts shared between MMC and SPI") from
> the spi-mb tree.
> 
> I fixed it up (see below) and can carry the fix as necessary (no action
> is required).

On a quick glance, it seems correct. Thank you!

Best regards,
Marek Vasut

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

* Re: linux-next: manual merge of the spi-mb tree with the mmc tree
  2012-09-05  3:15 linux-next: manual merge of the spi-mb tree with the mmc tree Stephen Rothwell
  2012-09-05  3:56 ` Marek Vasut
@ 2012-09-06  6:26 ` Lauri Hintsala
  1 sibling, 0 replies; 3+ messages in thread
From: Lauri Hintsala @ 2012-09-06  6:26 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Mark Brown, linux-next, linux-kernel, Chris Ball, Marek Vasut

On 09/05/2012 06:15 AM, Stephen Rothwell wrote:
> Hi Mark,
>
> Today's linux-next merge of the spi-mb tree got a conflict in
> drivers/mmc/host/mxs-mmc.c between commit fc108d24d3a6 ("mmc: mxs-mmc:
> fix deadlock caused by recursion loop") from the mmc tree and commit
> 829c1bf40b92 ("mmc: spi: Pull out parts shared between MMC and SPI") from
> the spi-mb tree.
>
> I fixed it up (see below) and can carry the fix as necessary (no action
> is required).

Reviewed and tested. Looks good.

Lauri

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

end of thread, other threads:[~2012-09-06  6:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-05  3:15 linux-next: manual merge of the spi-mb tree with the mmc tree Stephen Rothwell
2012-09-05  3:56 ` Marek Vasut
2012-09-06  6:26 ` Lauri Hintsala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).