From owner-freebsd-current@freebsd.org Sat Feb 20 09:44:18 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 A5366AADA04; Sat, 20 Feb 2016 09:44:18 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 3B3DAE84; Sat, 20 Feb 2016 09:44:18 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id a4so101185333wme.1; Sat, 20 Feb 2016 01:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-type:content-transfer-encoding; bh=w2poA3ug+exocanap6KGdzVIc1IlsNzkPXCzEPSxDo0=; b=KutTkCUrHuqukIEpGWHT7WU+VgpCSAneBjFYB7ZZn1H4fNbuLNFhY/aZvYaUlWutnc w7teZO2gLMUshmNFuF7dSgcQnW+5vZrSW7hZ4/eyDNJ64tVtLD/icGxgMNJZiDqEXw3g RWno9c31VDKClANL6ideiaNtz+gbYqHZfoJA4i6sq957XyS0PdkykaZf3BA6ieoPh56h 4ZdP35vkKodMKKZHSzqDSCyxXpP+PShSDhnIiQiFvB1J6iDj2PzQAIjyIBSBRtI17fwV mhugj2OV7jJnFjM5zPMiD9jChOn5skoYvIGMx6R8ZbSbRYQ3U4fbsYSvpWGXZvXNwotL EUQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-type :content-transfer-encoding; bh=w2poA3ug+exocanap6KGdzVIc1IlsNzkPXCzEPSxDo0=; b=koo39+RJSUFRRLGoPa7uJwbj7MPSjVrut35+nLgxAuIyICaNy1cRDmCa7QhGX7be/x uEfzNAF8DrZ+lWkAAzq2TiTt7fQZ+iuobDHHN+Itl0MlxRaLCBjVffGhgZWuPrGKHOJh RqZTPDovDFPDK3cIuL6Jih9t07/1A5PI+YHctAD+P7Rj5nDQfBmZTZY0WZF5jTqUnXSR eea4AYKmGtJrk/xiRfMHk0g65ClYT+kNahXDtCAi0gIiJXUx0DrZcSIBCvU1sg4NYISJ qDCC+nyF/LIXaKPt24Twxm+33W4y5fjeGgkKq/A7BZNHXLMK0+9sE1l0KDVEw6EuFll+ BtCg== X-Gm-Message-State: AG10YOSHgsNxz981izLY2poXStdIAhoPsVSwyEwhjePfFoFLBwcxvXPWkRkhuiuj6cKUwQ== X-Received: by 10.194.94.138 with SMTP id dc10mr20628050wjb.37.1455961456657; Sat, 20 Feb 2016 01:44:16 -0800 (PST) Received: from ernst.home (p578E1EFC.dip0.t-ipconnect.de. [87.142.30.252]) by smtp.gmail.com with ESMTPSA id 8sm11321565wmk.13.2016.02.20.01.44.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Feb 2016 01:44:15 -0800 (PST) Date: Sat, 20 Feb 2016 10:44:13 +0100 From: Gary Jennejohn To: Larry Rosenman Cc: Gary Corcoran , freebsd-current@freebsd.org, owner-freebsd-current@freebsd.org Subject: Re: Realtek MMC/MMCSD reader? Message-ID: <20160220104413.6b6bdd17@ernst.home> 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> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 09:44:18 -0000 On Fri, 19 Feb 2016 23:02:26 -0600 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-working-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. > Looking at the patch some non-trivial changes were made to the driver. It's hard to tell whether most of them were meant to make the driver more flexible, or whether they were really added to support this device. That said, a number of device-specific commands and at least one new function were added just for this. Whether these changes can easily be implemented in the FBSD code I can't answer without investing more time. There's also the point that any programmer willing to help may need the hardware. Blindly making changes to a driver in the hope they might work isn't exactly good practice. -- Gary Jennejohn