From: stsp Date: Sun, 18 May 2014 10:52:16 +0000 (+0000) Subject: Make rtsx(4) attach to RTL8402 devices. Reported as working by Eric Huiban. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1244917d0c56d28a3efed037974c1fc167b5ce4e;p=openbsd Make rtsx(4) attach to RTL8402 devices. Reported as working by Eric Huiban. --- diff --git a/share/man/man4/rtsx.4 b/share/man/man4/rtsx.4 index 3aaac11a4e6..8754654cd1a 100644 --- a/share/man/man4/rtsx.4 +++ b/share/man/man4/rtsx.4 @@ -1,9 +1,9 @@ -.\" $OpenBSD: rtsx.4,v 1.5 2014/04/23 12:45:18 stsp Exp $ +.\" $OpenBSD: rtsx.4,v 1.6 2014/05/18 10:52:17 stsp Exp $ .\" .\" Theo de Raadt, 2006. Public Domain. .\" Stefan Sperling, 2012. Public Domain. .\" -.Dd $Mdocdate: April 23 2014 $ +.Dd $Mdocdate: May 18 2014 $ .Dt RTSX 4 .Os .Sh NAME @@ -15,8 +15,8 @@ .Sh DESCRIPTION The .Nm -driver provides support for the Realtek RTS5209, RTS5227, and RTS5229 SD card -readers. +driver provides support for the Realtek RTS5209, RTS5227, RTS5229, +and RTL8402 SD card readers. .Pp The .Xr sdmmc 4 diff --git a/sys/dev/ic/rtsx.c b/sys/dev/ic/rtsx.c index f17385d1041..1e782aef817 100644 --- a/sys/dev/ic/rtsx.c +++ b/sys/dev/ic/rtsx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsx.c,v 1.8 2014/04/23 12:45:18 stsp Exp $ */ +/* $OpenBSD: rtsx.c,v 1.9 2014/05/18 10:52:16 stsp Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler @@ -18,7 +18,7 @@ */ /* - * Realtek RTS5209/RTS5227/RTS5229 Card Reader driver. + * Realtek RTS5209/RTS5227/RTS5229/RTL8402 Card Reader driver. */ #include diff --git a/sys/dev/pci/rtsx_pci.c b/sys/dev/pci/rtsx_pci.c index 7f50da26cfc..a6c8a227721 100644 --- a/sys/dev/pci/rtsx_pci.c +++ b/sys/dev/pci/rtsx_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsx_pci.c,v 1.5 2014/04/18 09:34:05 claudio Exp $ */ +/* $OpenBSD: rtsx_pci.c,v 1.6 2014/05/18 10:52:17 stsp Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler @@ -59,7 +59,8 @@ rtsx_pci_match(struct device *parent, void *match, void *aux) if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5209 || PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5227 || - PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5229) + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5229 || + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8402) return 1; return 0;