From patchwork Thu Nov 15 13:53:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 10684343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1398014BD for ; Thu, 15 Nov 2018 13:55:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03A8E2BEBF for ; Thu, 15 Nov 2018 13:55:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC4FE2C78A; Thu, 15 Nov 2018 13:55:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 775C12C759 for ; Thu, 15 Nov 2018 13:55:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388317AbeKPADc (ORCPT ); Thu, 15 Nov 2018 19:03:32 -0500 Received: from mga09.intel.com ([134.134.136.24]:62224 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388239AbeKPADc (ORCPT ); Thu, 15 Nov 2018 19:03:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2018 05:55:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,236,1539673200"; d="scan'208";a="108803976" Received: from ahunter-desktop.fi.intel.com ([10.237.72.130]) by orsmga002.jf.intel.com with ESMTP; 15 Nov 2018 05:55:33 -0800 From: Adrian Hunter To: Ulf Hansson Cc: linux-mmc , Stefan Agner Subject: [PATCH 0/3] mmc: sdhci: Fixes for error handling Date: Thu, 15 Nov 2018 15:53:40 +0200 Message-Id: <20181115135343.31540-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.17.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Here are a couple of fixes for sdhci error handling. I came accoss these while forcing the controller to produce CRC errors. AFAIK they do not address problems seen in the wild, so I haven't marked the patches for stable. Adrian Hunter (3): mmc: sdhci: Fix data command CRC error handling mmc: sdhci: Rename SDHCI_ACMD12_ERR and SDHCI_INT_ACMD12ERR mmc: sdhci: Handle auto-command errors drivers/mmc/host/sdhci-esdhc-imx.c | 12 +++--- drivers/mmc/host/sdhci.c | 79 +++++++++++++++++++++++++------------- drivers/mmc/host/sdhci.h | 11 ++++-- 3 files changed, 66 insertions(+), 36 deletions(-) Regards Adrian