From owner-svn-src-head@FreeBSD.ORG Tue Jan 4 00:08:39 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9C7A1065673; Tue, 4 Jan 2011 00:08:39 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D95C08FC0A; Tue, 4 Jan 2011 00:08:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0408dQv010380; Tue, 4 Jan 2011 00:08:39 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0408dak010378; Tue, 4 Jan 2011 00:08:39 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201101040008.p0408dak010378@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 4 Jan 2011 00:08:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216941 - head/sys/dev/mmc X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 00:08:40 -0000 Author: pjd Date: Tue Jan 4 00:08:39 2011 New Revision: 216941 URL: http://svn.freebsd.org/changeset/base/216941 Log: Wait for commands to complete 10 times longer. This makes my A-DATA 32GB SDHC card being detected. Reviewed by: imp MFC after: 2 weeks Modified: head/sys/dev/mmc/mmc.c Modified: head/sys/dev/mmc/mmc.c ============================================================================== --- head/sys/dev/mmc/mmc.c Mon Jan 3 23:37:42 2011 (r216940) +++ head/sys/dev/mmc/mmc.c Tue Jan 4 00:08:39 2011 (r216941) @@ -448,7 +448,7 @@ mmc_send_app_op_cond(struct mmc_softc *s cmd.flags = MMC_RSP_R3 | MMC_CMD_BCR; cmd.data = NULL; - for (i = 0; i < 100; i++) { + for (i = 0; i < 1000; i++) { err = mmc_wait_for_app_cmd(sc, 0, &cmd, CMD_RETRIES); if (err != MMC_ERR_NONE) break; @@ -475,7 +475,7 @@ mmc_send_op_cond(struct mmc_softc *sc, u cmd.flags = MMC_RSP_R3 | MMC_CMD_BCR; cmd.data = NULL; - for (i = 0; i < 100; i++) { + for (i = 0; i < 1000; i++) { err = mmc_wait_for_cmd(sc, &cmd, CMD_RETRIES); if (err != MMC_ERR_NONE) break;