From owner-freebsd-current@freebsd.org Sat Feb 20 05:26:10 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28840AAE7F1 for ; Sat, 20 Feb 2016 05:26:10 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DAECBAD0 for ; Sat, 20 Feb 2016 05:26:09 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-vk0-x233.google.com with SMTP id k196so92848312vka.0 for ; Fri, 19 Feb 2016 21:26:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8cSUcWLTFGJ6DAPNdnkmS5Urpgqea2eu6tmw2YjK5mk=; b=W8CbcT1An8jmHZRopyIZP3AumEo3rDPkQ0/H0PWX3iL4DQbanIgLYoh8ljoi+m2HEU NmxAX2Sx1QTwFZoSUpxpKpWzrsp8dXQcCcbOO0nXJGhsopczFGe3YYv/fK1yIKc0oL1w +EGx9WoEAj3Gr4uI9o4FLd8J8F8KVwGN1p1J+ufBHTKOp48QS8U9F7pDNtzldkcGWOUr djPE6fys1vYOGopZ5JJI+TH5ZEzlwEbX4OVSuiKfFHipn5ghwJc3FkZu/0LUq7Aj1cCZ 96pY/KACHRk1UHaaomrwNZSJ/Zc7vC0SREXRJPsozHk2BR9R5fVn3mBE2s4n+jvcF05W xx8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=8cSUcWLTFGJ6DAPNdnkmS5Urpgqea2eu6tmw2YjK5mk=; b=ar8pcf2iucqw9okIcNtqO/L9Kp/h/fc+K7SMS3H2EU3bCQWW3PKMVJiN2x5ulsKvQC JeqALU9McXbyQtFknMri3Go+6oVT3UQ0DxfRXYP/UlL/xNrC06Mhcr0jclHmg/HKhVc5 uPDQ+6OjmB5fI6yYrIoGkoUMd3OeDEgtbjOWp1gsYr245zxAoEjXglXfWS6B0WhqnQke IPT/1QFX/WT0By+ADLxw6LtRHhpaKXsULX8o118SpXr//jkI+KXZX5vSaC/4hzkmyB0Z DU3zvoT3mLyhDYAiPnS3WTRTpB+v88nDRrkPqeq7ZjZxghXJPlSZkXFemy2bLmuZttxA Zmxw== X-Gm-Message-State: AG10YOQ5agpKQh49W3pRb2Bpfa+KvK0HXB9idmQiIDCRMa3JBF6fWTdKLiH945KTm2tACk9b6pBDjp/sYmtKIuOIo9qsyOHmJlQv7L9J6J15F7M72Iw2USJfZA8UpvnQUNWNlw55+PQ0imOt+Tr10DH07+I= MIME-Version: 1.0 X-Received: by 10.31.14.195 with SMTP id 186mr13952439vko.2.1455945968715; Fri, 19 Feb 2016 21:26:08 -0800 (PST) Received: by 10.176.3.161 with HTTP; Fri, 19 Feb 2016 21:26:08 -0800 (PST) In-Reply-To: <2c70336f78b550e1b8964ab21fd9b138@thebighonker.lerctr.org> References: <20160220033215.GB988@lrosenman-dell.lerctr.org> <20160220035821.GA57181@lrosenman-dell.lerctr.org> <56C7EAC9.1050908@rcn.com> <2c70336f78b550e1b8964ab21fd9b138@thebighonker.lerctr.org> Date: Fri, 19 Feb 2016 21:26:08 -0800 Message-ID: Subject: Re: Realtek MMC/MMCSD reader? From: "Lundberg, Johannes" To: Larry Rosenman Cc: Gary Corcoran , "freebsd-current@freebsd.org" , "owner-freebsd-current@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 05:26:10 -0000 I'm also newbie and I'm working on adding a sdhci_acpi driver for Intel's Atom SoC. I wonder if your device would work with the existing sdhci_pci driver. Maybe it just a matter of adding the device id and possibly setting some quirks or you might have to write a new driver for the host controller? For me it's a bit tricky because I have to communicate with the card using GPIO before it can be detected. There is a driver in FreeBSD for reading and writing to a mmc so maybe it is just a matter of connecting that to the controller. Searching the Linux source for the device id to see if there is a driver is a good idea. For FreeBSD source check sys/dev/mmc/ sys/dev/sdhci/ There is also a ongoing project to rewrite mmc to use cam. Maybe good idea to check that as well. https://wiki.freebsd.org/SDIO On Friday, February 19, 2016, Larry Rosenman wrote: > On 2016-02-19 22:25, Gary Corcoran wrote: > >> On 2/19/2016 11:08 PM, Larry Rosenman wrote: >> >>> On 2016-02-19 22:05, Mehmet Erol Sanliturk wrote: >>> >>>> On Fri, Feb 19, 2016 at 7:58 PM, Larry Rosenman wrote= : >>>> >>>> Great. Since I've never done that.... >>>>> >>>>> Any ideas of anyone that might be able to help? >>>>> >>>>> Or where to even start? >>>>> >>>>> >>>>> >>>>> >>>> >>>> Perhaps >>>> >>>> https://www.nostarch.com/bsddrivers.htm >>>> FreeBSD Device Drivers >>>> >>>> >>>> ? >>>> >>>> >>>> Mehmet Erol Sanliturk >>>> >>>> >>>> perhaps. But I'd need an NDA with RealTek to get the chip specs, and >>> I'm not sure I can do that working for Nokia during the day >>> as I do. >>> >>> I'd love for one of the current folks that do realtek stuff to look. >>> >> Sometimes people look to see if Linux has a driver, and if so, you >> might be able to get enough >> programming info from their driver to be able to write a FreeBSD >> driver, without getting the >> full chip specs. >> >> Gary >> >> > http://askubuntu.com/questions/731093/sd-card-reader-realtek-522a-not-wor= king-in-dell-i7559-in-ubuntu-15-10 > > I'm still VERY much a newbie (like ZERO experience) writing drivers. > > Does anyone want to help? > > I'm more than willing to guinea pig stuff. > > > -- > Larry Rosenman http://www.lerctr.org/~ler > Phone: +1 214-642-9640 E-Mail: ler@lerctr.org > US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 -- Name: Johannes Lundberg Position: Mirama project leader Phone: +1-408-636-2161 Skype: brilliantjohannes Online: LinkedIn Facebook Reddit Twitter GitHub GitLab Company: Mirama Brilliantservice US Brilliantservice JP --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.