From owner-freebsd-arm@FreeBSD.ORG Tue Jul 2 19:34:42 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 12109192 for ; Tue, 2 Jul 2013 19:34:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) by mx1.freebsd.org (Postfix) with ESMTP id D2724110B for ; Tue, 2 Jul 2013 19:34:41 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id i4so6812995oah.24 for ; Tue, 02 Jul 2013 12:34:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=jHnLEivTa4P2sL7H+sO7zbu56z0j64Agl37Klu1lQq0=; b=Ru0Kp5YnbsM9oBDGHisALOFjHVS1CNCKPGHFW3dtfvRSlarQ3H8hvVI4lgn3Fzb5I8 MTHChfOpsPm1cP5cBQtUoyJRKfl/f8qvwPvC0bRW0lzgTgn+a9ZYK0lz2yEeY5Miv6Eo LaLIPAWxdEtmyMYfumJpR3ti5s7rcRPiWr/JPLeQ7hvTW2jv6xvCEOq8UD0fVZeWpQu3 nLhtr5i6DkEDUvnK4VXBQUtQfhzM/y53fblo50gGclsTrZrTWSvIp10AmOYZi9ykdax/ HoY4GD4Ssm0CDvjj6MaDs5A2iGaT1aSau2G/XYQUPFeSDM/XcANAPxeC6jfIxYtTuXzq DN1g== X-Received: by 10.182.61.73 with SMTP id n9mr13897130obr.86.1372793681296; Tue, 02 Jul 2013 12:34:41 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id rs4sm6174374obc.10.2013.07.02.12.34.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jul 2013 12:34:40 -0700 (PDT) Sender: Warner Losh Subject: Re: [PATCH] SDIO support for Globalscale Dreamplug Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <51D3282C.1090701@bakulin.de> Date: Tue, 2 Jul 2013 13:34:37 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: <20130702145905.GA1847@olymp.kibab.com> <51D3097A.8010601@FreeBSD.org> <51D3282C.1090701@bakulin.de> To: Ilya Bakulin X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQk/Td++M6lPXBcVlbe8WkrBNApSdM9Fuu39khZIKlhPLryGgoT/f5mm5v5AFFmrPg3GLw2N 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: Tue, 02 Jul 2013 19:34:42 -0000 On Jul 2, 2013, at 1:21 PM, Ilya Bakulin wrote: > On 02.07.13 19:10, Alexander Motin wrote: >> I think SD world is a terrible mess by itself. I would like to not add >> more. Functions that suppose card access should take card-specific >> structure or device as an argument, not a bus ones. > The problem is that there is a SDIO card which has up to 7 functions, > but it itself has some characteristics that are available at function 0. > If we add, say, sdio0 device and store this information there, we end up > with > the hierarchy suggested by Ben Gray a year ago. Yea, and I didn't like that at all. It violates the FreeBSD device model. > The SD-specific functions like CSD/CSR operations are also in the mmc.c > and considered to be the bus code... All this code is for device enumeration, which belongs in the bus layer. > Or am I missing something obvious here? > >> I would try to look for SDIO Bluetooth card. I think such ones still >> could be found on eBay, and I think there are some specifications for >> that. Though I've never looked inside. > > The SDIO card found in the Dreamplug has three functions, one of them is > Bluetooth. > Will try to find some docs / Linux code for that... I'll see if I can dig mine up as well. This sounds like a fun project.. I'll review the actual code here in a bit. Warner