From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754098Ab1EDQDQ (ORCPT ); Wed, 4 May 2011 12:03:16 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:53464 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262Ab1EDQDO (ORCPT ); Wed, 4 May 2011 12:03:14 -0400 MIME-Version: 1.0 In-Reply-To: References: <1304453087-7365-1-git-send-email-per.forlin@linaro.org> Date: Wed, 4 May 2011 18:03:13 +0200 Message-ID: Subject: Re: [PATCH] sdio: optimized SDIO IRQ handling for single function From: Per Forlin To: Nicolas Pitre Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lkml , linaro-dev@lists.linaro.org, Stefan Nilsson XK , Ulf HANSSON Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4 May 2011 17:20, Nicolas Pitre wrote: > On Wed, 4 May 2011, Per Forlin wrote: > >> On 4 May 2011 05:40, Nicolas Pitre wrote: >> > On Tue, 3 May 2011, Per Forlin wrote: >> > >> >> From: Stefan Nilsson XK >> >> >> >> If there is only 1 function registered, and IRQ:s are supported and >> >> currently enabled, call the callback handler directly >> >> without checking the CCCR registers. >> >> >> >> Signed-off-by: Stefan Nilsson XK >> >> Signed-off-by: Per Forlin >> > >> > Acked-by: Nicolas Pitre >> > >> I am working o a patch version 2 after offline discussion with Ulf Hansson. >> Instead of adding this code here. >> Add sdio_single_func member in mmc_card. Set and reset this function >> in sdio_claim_irq and sdio_release_irq. >> process_sdio_pending_irqs would only check if sdio_single_func is != >> null and call it. > > Yes, that's what I was about to propose after thinking about it some > more. > >> This will result in a bigger patch overall but the new code in >> process_sdio_pending_irqs will be minimal. > > Something like this (untested) ? > What I had in mind is similar. Please let me know what you think. I am about to post "patch v2" Regards, Per