From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: Re: [PATCH 3/4] mmc: sdhi: Make use of per-source irq handlers Date: Wed, 17 Aug 2011 20:41:47 +0900 Message-ID: <20110817114147.GA13086@verge.net.au> References: <1313578756-10413-1-git-send-email-horms@verge.net.au> <1313578756-10413-4-git-send-email-horms@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-sh-owner@vger.kernel.org To: Guennadi Liakhovetski Cc: linux-mmc@vger.kernel.org, linux-sh@vger.kernel.org, Chris Ball , Magnus Damm , Paul Mundt List-Id: linux-mmc@vger.kernel.org On Wed, Aug 17, 2011 at 01:24:58PM +0200, Guennadi Liakhovetski wrote: > On Wed, 17 Aug 2011, Simon Horman wrote: > > > Make use of per-source irq handles if the > > platform (data) has multiple irq sources. > > > > Also, as suggested by Guennadi Liakhovetski, > > add and use defines the index or irqs in platform data. > > > > Cc: Guennadi Liakhovetski > > Cc: Magnus Damm > > Signed-off-by: Simon Horman > > > > --- > > > > v5 > > * As suggested by Guennadi Liakhovetski: > > - Allow only SH_MOBILE_SDHI_IRQ_SDCARD and > > SH_MOBILE_SDHI_IRQ_SDIO to be specified in platform data > > This means, CARD_DETECT is optional in a multi-irq configuration, agree. [snip] > > + ret = irq = platform_get_irq(pdev, SH_MOBILE_SDHI_IRQ_SDCARD); > > + if (irq >= 0) { > > + multi_irq = true; > > + ret = request_irq(irq, tmio_mmc_sdcard_irq, 0, > > + dev_name(&pdev->dev), host); > > + if (ret) > > + goto eirq_sdcard; > > } > > This means SDCARD is optional in both single- and multi-irq > configurations. > > > + > > + ret = irq = platform_get_irq(pdev, SH_MOBILE_SDHI_IRQ_CARD_DETECT); > > + if (irq < 0) > > + goto eirq_card_detect; > > This means, CARD_DETECT is compulsory in all configurations. > > One of us must be speaking klingonish today. Sorry, I messed that up a bit. I will make CARD_DETECT optional in multi-irq configurations. Likewise SDIO will be optional in multi-irq configurations. But SDCARD will always be required.