From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753449Ab0L0KRj (ORCPT ); Mon, 27 Dec 2010 05:17:39 -0500 Received: from mga09.intel.com ([134.134.136.24]:33517 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003Ab0L0KRi (ORCPT ); Mon, 27 Dec 2010 05:17:38 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,234,1291622400"; d="scan'208";a="691029402" Date: Mon, 27 Dec 2010 18:13:05 +0800 From: Chuanxiao Dong To: linux-mmc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, cjb@laptop.org, akpm@linux-foundation.org Subject: [PATCH v6 0/3]mmc: implement eMMC4.4 standard HW reset feature Message-ID: <20101227101305.GA20143@intel.com> Reply-To: Chuanxiao Dong MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is the version 6 of hardware reset feature implementation. When eMMC card cannot response any command, signal RST_n can help to reset eMMC card. patch1: enable HW reset capability if card supports. patch2: do hardware reset if card occurs read/write/erase timeout patch3: implement hwreset_emmc and reinit_emmc callbacks. In this patch, hwreset_emmc callback will pull up/down the corresponded GPIO line number to trigger RST_n signal. change log: 1. Move hardware_reset callback to mmc_bus_ops so that all kinds of host controller can use hardware_reset callback to trigger RST_n signal. Different host controller only needs to provide a GPIO line number to this callback. 2. Add GPIO pull up/down part in hardware_reset callback. 3. Remove reset_emmc callback in sdhci_ops. Thanks Chuanxiao