1*926ce35aSJung-uk Kim.\" 2*926ce35aSJung-uk Kim.\" Copyright (c) 2020 Henri Hennebert <hlh@restart.be> 3*926ce35aSJung-uk Kim.\" All rights reserved. 4*926ce35aSJung-uk Kim.\" 5*926ce35aSJung-uk Kim.\" Redistribution and use in source and binary forms, with or without 6*926ce35aSJung-uk Kim.\" modification, are permitted provided that the following conditions 7*926ce35aSJung-uk Kim.\" are met: 8*926ce35aSJung-uk Kim.\" 1. Redistributions of source code must retain the above copyright 9*926ce35aSJung-uk Kim.\" notice, this list of conditions and the following disclaimer. 10*926ce35aSJung-uk Kim.\" 2. The name of the author may not be used to endorse or promote products 11*926ce35aSJung-uk Kim.\" derived from this software without specific prior written permission. 12*926ce35aSJung-uk Kim.\" 13*926ce35aSJung-uk Kim.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*926ce35aSJung-uk Kim.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*926ce35aSJung-uk Kim.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*926ce35aSJung-uk Kim.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*926ce35aSJung-uk Kim.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*926ce35aSJung-uk Kim.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*926ce35aSJung-uk Kim.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*926ce35aSJung-uk Kim.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*926ce35aSJung-uk Kim.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*926ce35aSJung-uk Kim.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*926ce35aSJung-uk Kim.\" SUCH DAMAGE. 24*926ce35aSJung-uk Kim.\" 25*926ce35aSJung-uk Kim.\" $FreeBSD$ 26*926ce35aSJung-uk Kim.\" 27*926ce35aSJung-uk Kim.Dd November 24, 2020 28*926ce35aSJung-uk Kim.Dt RTSX 4 29*926ce35aSJung-uk Kim.Os 30*926ce35aSJung-uk Kim.Sh NAME 31*926ce35aSJung-uk Kim.Nm rtsx 32*926ce35aSJung-uk Kim.Nd Realtek SD card reader 33*926ce35aSJung-uk Kim.Sh SYNOPSIS 34*926ce35aSJung-uk KimTo compile this driver into the kernel, place the following 35*926ce35aSJung-uk Kimlines in the kernel configuration file: 36*926ce35aSJung-uk Kim.Bd -ragged -offset indent 37*926ce35aSJung-uk Kim.Cd "device mmc" 38*926ce35aSJung-uk Kim.Cd "device mmcsd" 39*926ce35aSJung-uk Kim.Cd "device rtsx" 40*926ce35aSJung-uk Kim.Ed 41*926ce35aSJung-uk Kim.Pp 42*926ce35aSJung-uk KimAlternatively, to load the driver as a module at boot time, 43*926ce35aSJung-uk Kimplace the following lines in 44*926ce35aSJung-uk Kim.Xr loader.conf 5 : 45*926ce35aSJung-uk Kim.Bd -literal -offset indent 46*926ce35aSJung-uk Kimmmc_load="YES" 47*926ce35aSJung-uk Kimmmcsd_load="YES" 48*926ce35aSJung-uk Kimrtsx_load="YES" 49*926ce35aSJung-uk Kim.Ed 50*926ce35aSJung-uk Kim.Sh DESCRIPTION 51*926ce35aSJung-uk KimThe 52*926ce35aSJung-uk Kim.Nm 53*926ce35aSJung-uk Kimdriver provides support for Realtek SD card reader. 54*926ce35aSJung-uk KimDriver attaches mmc bus on card insertion and detaches it on card removing. 55*926ce35aSJung-uk Kim.Sh HARDWARE 56*926ce35aSJung-uk KimThe 57*926ce35aSJung-uk Kim.Nm 58*926ce35aSJung-uk Kimdriver supports different specification compatible chips. 59*926ce35aSJung-uk KimThe following chips have been verified to work: 60*926ce35aSJung-uk Kim.Pp 61*926ce35aSJung-uk Kim.Bl -bullet -compact 62*926ce35aSJung-uk Kim.It 63*926ce35aSJung-uk KimRTS5209 64*926ce35aSJung-uk Kim.It 65*926ce35aSJung-uk KimRTS5227 66*926ce35aSJung-uk Kim.It 67*926ce35aSJung-uk KimRTS5229 68*926ce35aSJung-uk Kim.It 69*926ce35aSJung-uk KimRTS522A 70*926ce35aSJung-uk Kim.It 71*926ce35aSJung-uk KimRTS525A 72*926ce35aSJung-uk Kim.It 73*926ce35aSJung-uk KimRTL8411B 74*926ce35aSJung-uk Kim.El 75*926ce35aSJung-uk Kim.Pp 76*926ce35aSJung-uk KimIt should also work for: 77*926ce35aSJung-uk Kim.Pp 78*926ce35aSJung-uk Kim.Bl -bullet -compact 79*926ce35aSJung-uk Kim.It 80*926ce35aSJung-uk KimRTS5249 81*926ce35aSJung-uk Kim.It 82*926ce35aSJung-uk KimRTL8402 83*926ce35aSJung-uk Kim.It 84*926ce35aSJung-uk KimRTL8411 85*926ce35aSJung-uk Kim.El 86*926ce35aSJung-uk Kim.Sh SEE ALSO 87*926ce35aSJung-uk Kim.Xr mmc 4 , 88*926ce35aSJung-uk Kim.Xr mmcsd 4 89*926ce35aSJung-uk Kim.Rs 90*926ce35aSJung-uk Kim.%T "SD Specifications, Part 2, SD Host Controller, Simplified Specification" 91*926ce35aSJung-uk Kim.%T "SanDisk Secure Digital Card" 92*926ce35aSJung-uk Kim.Re 93*926ce35aSJung-uk Kim.Sh HISTORY 94*926ce35aSJung-uk KimThe 95*926ce35aSJung-uk Kim.Nm 96*926ce35aSJung-uk Kimdriver was ported from 97*926ce35aSJung-uk Kim.Ox 98*926ce35aSJung-uk Kimwith modifications found in Linux and 99*926ce35aSJung-uk Kim.Nx . 100*926ce35aSJung-uk Kim.Sh AUTHORS 101*926ce35aSJung-uk Kim.An Henri Hennebert Aq Mt hlh@restart.be 102*926ce35aSJung-uk Kim.An Gary Jennejohn Aq Mt gj@freebsd.org 103*926ce35aSJung-uk Kim.An Jesper Schmitz Mouridsen Aq Mt jsm@FreeBSD.org 104*926ce35aSJung-uk Kim.Sh CONTRIBUTORS 105*926ce35aSJung-uk Kim.An Lutz Bichler Aq Mt Lutz.Bichler@gmail.com 106*926ce35aSJung-uk Kim.Sh BUGS 107*926ce35aSJung-uk Kim.Bl -bullet 108*926ce35aSJung-uk Kim.It 109*926ce35aSJung-uk KimThe timeouts experienced during card insert and during I/O are solved in version 1.0g. 110*926ce35aSJung-uk Kim.It 111*926ce35aSJung-uk KimRTS522A on Lenovo P50s and Lenovo T470p, card detection and read-only switch are reversed. 112*926ce35aSJung-uk KimThis is sovled by adding in 113*926ce35aSJung-uk Kim.Em loader.conf(5) : 114*926ce35aSJung-uk Kim.Bd -ragged 115*926ce35aSJung-uk Kim.Cd dev.rtsx.0.inversion=1 116*926ce35aSJung-uk Kim.Ed 117*926ce35aSJung-uk Kim.It 118*926ce35aSJung-uk KimMounting a filesystem with write access on a card write protected may involve a kernel crash. 119*926ce35aSJung-uk Kim.It 120*926ce35aSJung-uk KimSuspend/Resume do not work under MMCCAM. 121*926ce35aSJung-uk Kim.El 122