From patchwork Wed Sep 14 17:05:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 9332083 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 087C0608A1 for ; Wed, 14 Sep 2016 17:06:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA4FA2A1F3 for ; Wed, 14 Sep 2016 17:06:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF1462A21E; Wed, 14 Sep 2016 17:06:09 +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=-6.9 required=2.0 tests=BAYES_00,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 8A29D2A1F3 for ; Wed, 14 Sep 2016 17:06:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762014AbcINRGI (ORCPT ); Wed, 14 Sep 2016 13:06:08 -0400 Received: from sauhun.de ([89.238.76.85]:46004 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762108AbcINRGF (ORCPT ); Wed, 14 Sep 2016 13:06:05 -0400 Received: from p5b3859ec.dip0.t-ipconnect.de ([91.56.89.236]:51146 helo=localhost) by pokefinder.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bkDdK-0000zg-72; Wed, 14 Sep 2016 19:06:02 +0200 From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Simon Horman , Dirk Behme , Wolfram Sang Subject: [PATCH 1/4] mmc: add define for R1 response without CRC Date: Wed, 14 Sep 2016 19:05:55 +0200 Message-Id: <20160914170558.1561-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160914170558.1561-1-wsa+renesas@sang-engineering.com> References: <20160914170558.1561-1-wsa+renesas@sang-engineering.com> 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 The core uses it for polling. Give drivers a proper define to handle this case like all other response types. Signed-off-by: Wolfram Sang --- include/linux/mmc/core.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index b01e77de1a74de..4caee099b63a28 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -55,6 +55,9 @@ struct mmc_command { #define MMC_RSP_R6 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE) #define MMC_RSP_R7 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE) +/* Can be used by core to poll after switch to MMC HS mode */ +#define MMC_RSP_R1_NO_CRC (MMC_RSP_PRESENT|MMC_RSP_OPCODE) + #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MMC_RSP_OPCODE)) /*