Re: Realtek MMC/MMCSD reader?

2016-02-20 Thread Kevin Lo
On Fri, Feb 19, 2016 at 11:25:45PM -0500, 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.

Or do a port of the OpenBSD's rtsx(4).

> Gary

Kevin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-20 Thread Gary Jennejohn
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
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Lundberg, Johannes
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-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.
>
>
> --
> Larry Rosenman http://www.lerctr.org/~ler
> Phone: +1 214-642-9640 E-Mail: l...@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-unsubscr...@freebsd.org"
>


-- 
--
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


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
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.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Larry Rosenman

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.


--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@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-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Gary Corcoran

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

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Larry Rosenman

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.



--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@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-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Mehmet Erol Sanliturk
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




> On Fri, Feb 19, 2016 at 08:48:02PM -0700, Warner Losh wrote:
> > You'll have to write a driver for it.
> >
> > Warner
> > On Feb 19, 2016 8:32 PM, "Larry Rosenman"  wrote:
> >
> > > Any chance of supporting:
> > >
> > > none7@pci0:6:0:0:   class=0xff card=0x522a10ec chip=0x522a10ec
> > > rev=0x01 hdr=0x00
> > > vendor = 'Realtek Semiconductor Co., Ltd.'
> > >
> > >
> > > Thanks!
> > > ___
> > > freebsd-current@freebsd.org mailing list
> > > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> > >
> > ___
> > freebsd-current@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Larry Rosenman
Great.  Since I've never done that

Any ideas of anyone that might be able to help?

Or where to even start?


On Fri, Feb 19, 2016 at 08:48:02PM -0700, Warner Losh wrote:
> You'll have to write a driver for it.
> 
> Warner
> On Feb 19, 2016 8:32 PM, "Larry Rosenman"  wrote:
> 
> > Any chance of supporting:
> >
> > none7@pci0:6:0:0:   class=0xff card=0x522a10ec chip=0x522a10ec
> > rev=0x01 hdr=0x00
> > vendor = 'Realtek Semiconductor Co., Ltd.'
> >
> >
> > Thanks!
> > ___
> > freebsd-current@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> >
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Realtek MMC/MMCSD reader?

2016-02-19 Thread Warner Losh
You'll have to write a driver for it.

Warner
On Feb 19, 2016 8:32 PM, "Larry Rosenman"  wrote:

> Any chance of supporting:
>
> none7@pci0:6:0:0:   class=0xff card=0x522a10ec chip=0x522a10ec
> rev=0x01 hdr=0x00
> vendor = 'Realtek Semiconductor Co., Ltd.'
>
>
> Thanks!
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"