Package Details: rts5227-dkms 1.08-1

Git Clone URL: https://aur.archlinux.org/rts5227-dkms.git (read-only, click to copy)
Package Base: rts5227-dkms
Description: Driver to support Realtek RTS5227/5229 SD Card Reader
Upstream URL: http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false
Licenses: GPL2
Submitter: mober
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 11
Popularity: 0.000000
First Submitted: 2017-06-22 13:19 (UTC)
Last Updated: 2023-04-04 22:25 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

pqatsi commented on 2025-01-08 03:42 (UTC) (edited on 2025-01-08 03:43 (UTC) by pqatsi)

Hello!

At commit https://github.com/torvalds/linux/commit/113d1dd9c8ea2186d56a641a787e2588673c9c32#diff-545daf8a36330dbe9e9bca384f13ff7dc878284c411be77102044393eab7e310 (Seek for blk_queue_dma_alignment in code) this function was removed from all drivers, including mainline rts5208/rtsx.c file.

That said, I applied this patch:

--- /var/lib/dkms/rts5227/1.08/source/rtsx.c.orig       2025-01-08 00:24:41.244169160 -0300
+++ /var/lib/dkms/rts5227/1.08/source/rtsx.c    2025-01-08 00:24:48.717199865 -0300
@@ -89,16 +89,6 @@

 static int slave_configure(struct scsi_device *sdev)
 {
-       /* Scatter-gather buffers (all but the last) must have a length
-        * divisible by the bulk maxpacket size.  Otherwise a data packet
-        * would end up being short, causing a premature end to the data
-        * transfer.  Since high-speed bulk pipes have a maxpacket size
-        * of 512, we'll use that as the scsi device queue's DMA alignment
-        * mask.  Guaranteeing proper alignment of the first buffer will
-        * have the desired effect because, except at the beginning and
-        * the end, scatter-gather buffers follow page boundaries. */
-       blk_queue_dma_alignment(sdev->request_queue, (512 - 1));
-
        /* Set the SCSI level to at least 2.  We'll leave it at 3 if that's
         * what is originally reported.  We need this to avoid confusing
         * the SCSI layer with devices that report 0 or 1, but need 10-byte

And module compiled. Since my hardware is the rtsx usb, this module still not serving me, but may help other people

Anakon commented on 2024-08-22 15:58 (UTC)

Hi, I've got a compilation error with a 6.10.6 kernel :

/var/lib/dkms/rts5227/1.08/build/rtsx.c: In function 'slave_configure':
/var/lib/dkms/rts5227/1.08/build/rtsx.c:100:9: error: implicit declaration of function 'blk_queue_dma_alignment'; did you mean 'queue_dma_alignment'? [-Wimplicit-function-declaration]
  100 |         blk_queue_dma_alignment(sdev->request_queue, (512 - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         queue_dma_alignment
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/rts5227/1.08/build/rtsx.o] Error 1

Downgrading to a 6.9.10 kernel is OK.

alex.pyattaev commented on 2023-02-22 13:34 (UTC)

Dear Robert, could you update the package to point at this repo: https://github.com/strahl/rts5227-dkms It appears to work fine on recent kernels. If you have no time for this I can maintain this package, ping me on github alexpyattaev.

ewisuri commented on 2022-08-17 21:55 (UTC)

I patched the driver in https://github.com/strahl/rts5227-dkms for 5.16 here: https://github.com/ewisuri/rts5227-dkms

mekb commented on 2022-07-04 04:25 (UTC) (edited on 2022-07-04 05:04 (UTC) by mekb)

i've tried replacing https://github.com/Zibri/Realtek-rts5229-linux-driver with https://github.com/strahl/rts5227-dkms in source, and 5229 with 5227 in $sourceDir/blacklist-rts5229.conf, but it still does not compile

ndnd2121 commented on 2022-01-17 11:39 (UTC)

hello! since the first kernel 5.16 I'm getting this error and sd card stops being mounted after cold/hard boot.

==> dkms install --no-depmod rts5227/1.07 -k 5.16.1-arch1-1 Deprecated feature: REMAKE_INITRD Error! Bad return status for module build on kernel: 5.16.1-arch1-1 (x86_64) Consult /var/lib/dkms/rts5227/1.07/build/make.log for more information. ==> WARNING: `dkms install --no-depmod rts5227/1.07 -k 5.16.1-arch1-1' exited 10

robertfoster commented on 2020-09-27 15:15 (UTC) (edited on 2020-09-27 15:16 (UTC) by robertfoster)

@Shara lspci output is not a valid way to debug these kind of issues."Unassigned class" string also appears on working devices.

@LittleHuba this issue was fixed and can't reproduce. Please reinstall the package and everything should work flawlessly

LittleHuba commented on 2020-09-21 08:00 (UTC)

Build issue with newer kernels:

/var/lib/dkms/rts5227/1.07/build/rtsx.c: In Funktion »rtsx_probe«:
/var/lib/dkms/rts5227/1.07/build/rtsx.c:940:20: Fehler: Implizite Deklaration der Funktion »ioremap_nocache«; meinten Sie »ioremap_cache«? [-Werror=implicit-function-declaration]
  940 |  dev->remap_addr = ioremap_nocache(dev->addr, pci_resource_len(pci,0));
      |                    ^~~~~~~~~~~~~~~
      |                    ioremap_cache

Shara commented on 2019-11-13 01:50 (UTC)

5229 no more works

09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)