From owner-freebsd-arm@FreeBSD.ORG Thu Jul 4 05:53:45 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 31DD6C20 for ; Thu, 4 Jul 2013 05:53:45 +0000 (UTC) (envelope-from freebsd_arm@myspectrum.nl) Received: from mail.virtualhost.nl (mail.virtualhost.nl [89.200.201.133]) by mx1.freebsd.org (Postfix) with ESMTP id 826A51F98 for ; Thu, 4 Jul 2013 05:53:43 +0000 (UTC) Received: (qmail 94225 invoked by uid 1141); 4 Jul 2013 07:46:54 +0200 Received: from ip120-12-208-87.adsl2.static.versatel.nl (HELO [10.0.0.15]) (87.208.12.120) (smtp-auth username freebsd_arm@myspectrum.nl, mechanism plain) by mail.virtualhost.nl (qpsmtpd/0.84) with (CAMELLIA256-SHA encrypted) ESMTPSA; Thu, 04 Jul 2013 07:46:54 +0200 Message-ID: <51D50C55.1040300@myspectrum.nl> Date: Thu, 04 Jul 2013 07:47:01 +0200 From: Jeroen Hofstee User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Ilya Bakulin Subject: Re: [PATCH] SDIO support for Globalscale Dreamplug References: <20130702145905.GA1847@olymp.kibab.com> <51D3097A.8010601@FreeBSD.org> <51D3282C.1090701@bakulin.de> <20130703222002.GA60491@olymp.kibab.com> In-Reply-To: <20130703222002.GA60491@olymp.kibab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Motin , freebsd-arm@freebsd.org, freebsd-embedded@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 05:53:45 -0000 Hello Ilya, On 07/04/2013 12:20 AM, Ilya Bakulin wrote: > So some bytes lack 0x40... This problem occurs also with other numbers > read from the card, for example, vendor ID is read as 0x029F instead of 0x02DF. > +/* Halfword bit masks used for command response extraction. */ > +#define MV_SDIO_RSP48_BM2 0x0002 /* Lower 2 bits. */ > +#define MV_SDIO_RSP48_BM6 0x003f /* Lower 6 bits. */ > + /* Response bits [15:14] and [13:8] */ > + *rp++ = (resp[2] & MV_SDIO_RSP48_BM6) | > + ((word & MV_SDIO_RSP48_BM2) << 6); > + From the looks if it, MV_SDIO_RSP48_BM2 must be 3 instead 2. Regards, Jeroen