From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752910AbaHMNib (ORCPT ); Wed, 13 Aug 2014 09:38:31 -0400 Received: from mail-vc0-f180.google.com ([209.85.220.180]:58882 "EHLO mail-vc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbaHMNi2 (ORCPT ); Wed, 13 Aug 2014 09:38:28 -0400 MIME-Version: 1.0 In-Reply-To: <001601cf74d4$3547a410$9fd6ec30$%jun@samsung.com> References: <1400623670-2657-1-git-send-email-dianders@chromium.org> <001601cf74d4$3547a410$9fd6ec30$%jun@samsung.com> Date: Wed, 13 Aug 2014 06:38:27 -0700 X-Google-Sender-Auth: rVtEUL3fiHosb2Qdkz-0zAREqys Message-ID: Subject: Re: [PATCH v2] mmc: dw_mmc: Make sure we don't get stuck when we get an error From: Doug Anderson To: Seungwon Jeon , Ulf Hansson Cc: Jaehoon Chung , Chris Ball , Sonny Rao , Grant Grundler , linux-samsung-soc , Kukjin Kim , sunil joshi , Tomasz Figa , Yuvaraj Kumar C D , Chris Ball , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, May 21, 2014 at 2:08 AM, Seungwon Jeon wrote: > On Wed, May 21, 2014, Doug Anderson wrote: >> If we happened to get a data error at just the wrong time the dw_mmc >> driver could get into a state where it would never complete its >> request. That would leave the caller just hanging there. >> >> We fix this two ways and both of the two fixes on their own appear to >> fix the problems we've seen: >> >> 1. Fix a race in the tasklet where the interrupt setting the data >> error happens _just after_ we check for it, then we get a >> EVENT_XFER_COMPLETE. We fix this by repeating a bit of code. >> 2. Fix it so that if we detect that we've got an error in the "data >> busy" state and we're not going to do anything else we end the >> request and unblock anyone waiting. >> >> Signed-off-by: Doug Anderson >> Signed-off-by: Yuvaraj Kumar C D > > It will be applied after "mmc: dw_mmc: change to use recommended reset procedure" > > Acked-by: Seungwon Jeon > > Thanks, > Seungwon Jeon I saw that Ulf applied "mmc: dw_mmc: change to use recommended reset procedure". Could we apply this one now, too? Do you want me to repost? -Doug