From 308e7c0d061f0793a220b67160c042cfb5c17821 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 20 Dec 2015 17:41:03 +0000 Subject: patched ebuild for rts5249 patch from http://linuxterminal.org/issue-with-rts5229-pci-express-card-reader/ --- sys-block/rts5229/files/rts5229-linux-3.10.patch | 53 ++++++++++++++++++++++++ sys-block/rts5229/files/rts5229-linux-3.8.patch | 29 +++++++++++++ sys-block/rts5229/files/rts5229-vmalloc.patch | 33 +++++++++++++++ sys-block/rts5229/files/rts5249.patch | 12 ++++++ 4 files changed, 127 insertions(+) create mode 100644 sys-block/rts5229/files/rts5229-linux-3.10.patch create mode 100644 sys-block/rts5229/files/rts5229-linux-3.8.patch create mode 100644 sys-block/rts5229/files/rts5229-vmalloc.patch create mode 100644 sys-block/rts5229/files/rts5249.patch (limited to 'sys-block/rts5229/files') diff --git a/sys-block/rts5229/files/rts5229-linux-3.10.patch b/sys-block/rts5229/files/rts5229-linux-3.10.patch new file mode 100644 index 0000000..5044234 --- /dev/null +++ b/sys-block/rts5229/files/rts5229-linux-3.10.patch @@ -0,0 +1,53 @@ +--- rts5229.a/rtsx.c 2013-07-03 05:24:40.728296993 +0530 ++++ rts5229.b/rtsx.c 2013-07-03 05:20:56.452568592 +0530 +@@ -126,38 +126,18 @@ + + + #undef SPRINTF +-#define SPRINTF(args...) \ +- do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0) ++#define SPRINTF(args...) seq_printf(m, ##args) + +-static int proc_info (struct Scsi_Host *host, char *buffer, +- char **start, off_t offset, int length, int inout) ++static int show_info(struct seq_file *m, struct Scsi_Host *host) + { +- char *pos = buffer; + +- +- if (inout) +- return length; +- +- + SPRINTF(" Host scsi%d: %s\n", host->host_no, CR_DRIVER_NAME); +- + + SPRINTF(" Vendor: Realtek Corp.\n"); + SPRINTF(" Product: RTS5229\n"); + SPRINTF(" Version: %s\n", DRIVER_VERSION); + SPRINTF(" Build: %s, %s\n", __DATE__, __TIME__); +- +- /* +- * Calculate start of next buffer, and return value. +- */ +- *start = buffer + offset; +- +- if ((pos - buffer) < offset) +- return (0); +- else if ((pos - buffer - offset) < length) +- return (pos - buffer - offset); +- else +- return (length); ++ return 0; + } + + +@@ -263,7 +243,7 @@ + + .name = CR_DRIVER_NAME, + .proc_name = CR_DRIVER_NAME, +- .proc_info = proc_info, ++ .show_info = show_info, + .info = host_info, + + diff --git a/sys-block/rts5229/files/rts5229-linux-3.8.patch b/sys-block/rts5229/files/rts5229-linux-3.8.patch new file mode 100644 index 0000000..81779ae --- /dev/null +++ b/sys-block/rts5229/files/rts5229-linux-3.8.patch @@ -0,0 +1,29 @@ +--- rts5229.a/rtsx.c 2012-03-21 07:10:18.000000000 +0530 ++++ rts5229.b/rtsx.c 2013-05-29 01:06:32.333737569 +0530 +@@ -911,7 +911,7 @@ + chip->support_mmc = 1; + } + +-static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) ++static int rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) + { + struct Scsi_Host *host; + struct rtsx_dev *dev; +@@ -1066,7 +1066,7 @@ + } + + +-static void __devexit rtsx_remove(struct pci_dev *pci) ++static void rtsx_remove(struct pci_dev *pci) + { + struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci); + +@@ -1092,7 +1092,7 @@ + .name = CR_DRIVER_NAME, + .id_table = rts5229_ids, + .probe = rtsx_probe, +- .remove = __devexit_p(rtsx_remove), ++ .remove = rtsx_remove, + #ifdef CONFIG_PM + .suspend = rtsx_suspend, + .resume = rtsx_resume, diff --git a/sys-block/rts5229/files/rts5229-vmalloc.patch b/sys-block/rts5229/files/rts5229-vmalloc.patch new file mode 100644 index 0000000..51058cf --- /dev/null +++ b/sys-block/rts5229/files/rts5229-vmalloc.patch @@ -0,0 +1,33 @@ +diff -Naur rts5229.a/ms.c rts5229.b/ms.c +--- rts5229.a/ms.c 2012-03-20 21:40:18.000000000 -0400 ++++ rts5229.b/ms.c 2015-09-17 01:13:54.830723253 -0400 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "rtsx.h" + #include "rtsx_transport.h" +diff -Naur rts5229.a/rtsx_chip.c rts5229.b/rtsx_chip.c +--- rts5229.a/rtsx_chip.c 2012-03-20 21:40:18.000000000 -0400 ++++ rts5229.b/rtsx_chip.c 2015-09-17 01:13:29.574133449 -0400 +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + + #include "rtsx.h" + #include "rtsx_transport.h" +diff -Naur rts5229.a/rtsx_scsi.c rts5229.b/rtsx_scsi.c +--- rts5229.a/rtsx_scsi.c 2012-03-20 21:40:18.000000000 -0400 ++++ rts5229.b/rtsx_scsi.c 2015-09-17 01:13:44.035898653 -0400 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "rtsx.h" + #include "rtsx_transport.h" diff --git a/sys-block/rts5229/files/rts5249.patch b/sys-block/rts5229/files/rts5249.patch new file mode 100644 index 0000000..b86a80d --- /dev/null +++ b/sys-block/rts5229/files/rts5249.patch @@ -0,0 +1,12 @@ +diff --git i/rtsx.c w/rtsx.c +index 7fd7a92..ce67693 100644 +--- i/rtsx.c ++++ w/rtsx.c +@@ -1082,6 +1082,7 @@ static void __devexit rtsx_remove(struct pci_dev *pci) + static struct pci_device_id rts5229_ids[] = { + { 0x10EC, 0x5229, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_OTHERS << 16, 0xFF0000 }, + { 0x10EC, 0x5227, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_OTHERS << 16, 0xFF0000 }, ++ { 0x10EC, 0x5249, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_OTHERS << 16, 0xFF0000 }, + { 0, }, + }; + -- cgit v1.2.3