From owner-freebsd-mobile@FreeBSD.ORG Sun Feb 1 04:10:18 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 063DD1065785 for ; Sun, 1 Feb 2009 04:10:18 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id CF2308FC1B for ; Sun, 1 Feb 2009 04:10:17 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1076162rvf.43 for ; Sat, 31 Jan 2009 20:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=196076RuCP60jUFPe00PotANeahcvZnRtG4NtnJhvxc=; b=pn+UNXlzSbaOv8pLiFIJq+edFMyX/43UHbdQ3DmTnGDDrjQtNcetTcO90+Agr0ODE2 45KgmVUo0jqtpOQAE+6bBtbGl8NP3XdfRV6MvpK6y51NLgzbI/8mYPv/blnpO2pIpmSm hnFvp6P8Q2W0VZe4qCNx2XGfLD25Dm1CU/7/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type:content-transfer-encoding; b=rAcY+Oa0a3LWS2nqWsl2lFM1YWfZmjqVQoLZVFEx/aC39m0jIjmJA7Q7skIqR9wWqy BGNmaO3VwBT+6CgEkvwUigjUmZ9zm5Q+96hV4o9QRbxwSfE7Y01S1ODd3dtAcv/Y7Z8j JhiSoPKCXrjJfzWvfhyyB+S1Ni2d8toE4LjGk= MIME-Version: 1.0 Received: by 10.142.89.13 with SMTP id m13mr1215213wfb.50.1233460174440; Sat, 31 Jan 2009 19:49:34 -0800 (PST) Date: Sun, 1 Feb 2009 11:49:34 +0800 Message-ID: <53a1e0710901311949x3b853404oe89cf2ae9a0903f7@mail.gmail.com> From: Henry Hu To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Motin Subject: Problem about the new sdhci driver X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hu.henry9@gmail.com List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 04:10:18 -0000 Hi, I'm using FreeBSD 7-STABLE, with sdhci driver sdhci.20081029.tgz mmc.20081029.tgz I've found that if I load sdhci driver with card inserted, everything works fine. But if I load sdhci driver first, and then insert card, the card is not detected.Additionally, there is no interrupt. After I've load sdhci driver without card, the controller seems to be in a problematic state. The register dump outputed when the driver loaded showed that Present is 0x01f20000 which is correct since the card is not inserted then. But cards is not detected. Even if I unload the driver and reload with card inserted, the card still cannot be detected, and there's no interrupt. But the Present register changed to 0x01fa0000 which is strange. So I guess there's something wrong with the driver when the card is not present. sdhci0: mem 0xf0401000-0xf04010ff irq 18 at device 9.1 on pci5 sdhci0-slot0: 33MHz 4bits 3.3V DMA sdhci0-slot0: ============== REGISTER DUMP ============== sdhci0-slot0: Sys addr: 0x00000000 | Version: 0x00000200 sdhci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000 sdhci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 sdhci0-slot0: Present: 0x01f20000 | Host ctl: 0x00000000 sdhci0-slot0: Power: 0x00000000 | Blk gap: 0x00000000 sdhci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000000 sdhci0-slot0: Timeout: 0x0000000c | Int stat: 0x00000000 sdhci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci0-slot0: Caps: 0x01c021a1 | Max curr: 0x00000040 sdhci0-slot0: =========================================== I'm using hw.pci.do_power_nodriver=3 Cheers, Henry