From: Kevin Hilman Subject: Re: [PATCH] mmc: meson-gx: fix irq ack Date: Thu, 23 May 2019 08:47:29 -0700 Message-ID: <7ho93t41gu.fsf@baylibre.com> References: <20190523145950.7030-1-jbrunet@baylibre.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20190523145950.7030-1-jbrunet@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org To: Ulf Hansson Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong List-Id: linux-mmc@vger.kernel.org Jerome Brunet writes: > While cleaning the ISR of the meson-gx and acking only raised irqs, > the ack of the irq was moved at the very last stage of the function. > > This was stable during the initial tests but it triggered issues with > hs200, under specific loads (like booting android). Acking the irqs > after calling the mmc_request_done() causes the problem. > > Moving the ack back to the original place solves the issue. Since the > irq is edge triggered, it does not hurt to ack irq even earlier, so > let's do it early in the ISR. > > Fixes: 9c5fdb07a28d ("mmc: meson-gx: ack only raised irq") > Tested-by: Neil Armstrong > Tested-by: Kevin Hilman > Signed-off-by: Jerome Brunet Reviewed-by: Kevin Hilman And to be clear, this fix should go into v5.2-rc. My Tested-by is already above, but just for the benefit of the archives... tested this on mainline, and also on a v4.19 backport with Android and it fixes issues see there. Kevin