From owner-freebsd-mips@FreeBSD.ORG Sat Apr 6 22:28:11 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0B115256; Sat, 6 Apr 2013 22:28:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 6FDEB3C4; Sat, 6 Apr 2013 22:28:10 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id p43so3744517wea.10 for ; Sat, 06 Apr 2013 15:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zA1v85p4rY+JTA1BTuEIskwFub5dSt3Hs5CoFDFloMQ=; b=d4oWxY9YR4S5SQgYlU6qUTcPAwwmLb0P5wNw101X6KWt2GlB6yeqDu8G0+jWScTNMH hH0gEIm3PSiRm3+qucGwzo52Kd3PH1yGltRsm3LyDqRAj5VN0UoZsao+MwKZwuEF9ReK w71g6GBt/lJmkr1CVi5i7YAFoia4lbBAVFBhldrUYHeA56f5WHcK2yyRntROG6B9BgDB iFU0T/KXLzmnbDjIFOkmf1zAHyOC/iXEcSN2Wg11AKe3VyzD5t+8xYhMISpn6puJChJN UNn8+MAV8fNrlkfDw2PUn27ACYF3k71p5YDpchF7rranVn+RSTLHD243Rvki8pVbNliw oO9g== MIME-Version: 1.0 X-Received: by 10.180.13.34 with SMTP id e2mr5722856wic.29.1365287289666; Sat, 06 Apr 2013 15:28:09 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.121.136 with HTTP; Sat, 6 Apr 2013 15:28:09 -0700 (PDT) In-Reply-To: <20130407011307.9a9a9d64.ray@freebsd.org> References: <20130407011307.9a9a9d64.ray@freebsd.org> Date: Sat, 6 Apr 2013 15:28:09 -0700 X-Google-Sender-Auth: G_s8d75m7gNug7j_wipoRBsYXLM Message-ID: Subject: Re: [PATCH] MMC/SD SPI-mode driver From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: Dmytro , freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Apr 2013 22:28:11 -0000 On 6 April 2013 15:13, Aleksandr Rybalko wrote: > > Yeah, found :) > here it is http://zrouter.org/hg/FreeBSD/head/rev/a92b653f5b46 Yup. We just need a bit more wrapped around this. Ie, bringing it in/out of the SPI mode. The other question is how we implement it. You've implemented a "get block" device method. That's a very atheros chipset specific hack just to get accelerated flash IO. Is there perhaps a better way to approach this? What about the 8 versus 32 bit shifting that I see in the driver? Are we able to actually shift 32 bits at a time? Adrian