diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/rts_pstor/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/rts_pstor/files')
-rw-r--r-- | sys-block/rts_pstor/files/rts_pstor-linux-3.10.patch | 53 | ||||
-rw-r--r-- | sys-block/rts_pstor/files/rts_pstor-linux-3.8.patch | 29 | ||||
-rw-r--r-- | sys-block/rts_pstor/files/rts_pstor-vmalloc.patch | 44 |
3 files changed, 126 insertions, 0 deletions
diff --git a/sys-block/rts_pstor/files/rts_pstor-linux-3.10.patch b/sys-block/rts_pstor/files/rts_pstor-linux-3.10.patch new file mode 100644 index 000000000000..0070549b88d8 --- /dev/null +++ b/sys-block/rts_pstor/files/rts_pstor-linux-3.10.patch @@ -0,0 +1,53 @@ +--- rts_pstor.a/rtsx.c 2013-07-03 05:39:26.316723407 +0530 ++++ rts_pstor.b/rtsx.c 2013-07-03 05:28:28.584882761 +0530 +@@ -135,38 +135,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: PCIE Card Reader\n"); + SPRINTF(" Version: %s\n", DRIVER_VERSION); + SPRINTF(" Build: %s\n", DRIVER_MAKE_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; + } + + +@@ -272,7 +252,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/rts_pstor/files/rts_pstor-linux-3.8.patch b/sys-block/rts_pstor/files/rts_pstor-linux-3.8.patch new file mode 100644 index 000000000000..797b1088f31b --- /dev/null +++ b/sys-block/rts_pstor/files/rts_pstor-linux-3.8.patch @@ -0,0 +1,29 @@ +--- rts_pstor.a/rtsx.c 2011-01-11 14:41:07.000000000 +0530 ++++ rts_pstor.b/rtsx.c 2013-05-29 00:39:11.319267655 +0530 +@@ -913,7 +913,7 @@ + chip->s3_pwr_off_delay = 1000; + } + +-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; +@@ -1077,7 +1077,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); + +@@ -1104,7 +1104,7 @@ + .name = CR_DRIVER_NAME, + .id_table = rtsx_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/rts_pstor/files/rts_pstor-vmalloc.patch b/sys-block/rts_pstor/files/rts_pstor-vmalloc.patch new file mode 100644 index 000000000000..3b3f4beb885d --- /dev/null +++ b/sys-block/rts_pstor/files/rts_pstor-vmalloc.patch @@ -0,0 +1,44 @@ +diff -Naur rts_pstor.a/ms.c rts_pstor.b/ms.c +--- rts_pstor.a/ms.c 2011-01-11 04:11:07.000000000 -0500 ++++ rts_pstor.b/ms.c 2015-09-17 01:28:41.816067799 -0400 +@@ -23,6 +23,7 @@ + #include <linux/blkdev.h> + #include <linux/kthread.h> + #include <linux/sched.h> ++#include <linux/vmalloc.h> + + #include "rtsx.h" + #include "rtsx_transport.h" +diff -Naur rts_pstor.a/rtsx_chip.c rts_pstor.b/rtsx_chip.c +--- rts_pstor.a/rtsx_chip.c 2011-01-11 04:11:07.000000000 -0500 ++++ rts_pstor.b/rtsx_chip.c 2015-09-17 01:28:13.680536901 -0400 +@@ -24,6 +24,7 @@ + #include <linux/kthread.h> + #include <linux/sched.h> + #include <linux/workqueue.h> ++#include <linux/vmalloc.h> + + #include "rtsx.h" + #include "rtsx_transport.h" +diff -Naur rts_pstor.a/rtsx_scsi.c rts_pstor.b/rtsx_scsi.c +--- rts_pstor.a/rtsx_scsi.c 2011-01-11 04:11:07.000000000 -0500 ++++ rts_pstor.b/rtsx_scsi.c 2015-09-17 01:28:42.688053259 -0400 +@@ -23,6 +23,7 @@ + #include <linux/blkdev.h> + #include <linux/kthread.h> + #include <linux/sched.h> ++#include <linux/vmalloc.h> + + #include "rtsx.h" + #include "rtsx_transport.h" +diff -Naur rts_pstor.a/xd.c rts_pstor.b/xd.c +--- rts_pstor.a/xd.c 2011-01-11 04:11:07.000000000 -0500 ++++ rts_pstor.b/xd.c 2015-09-17 01:28:42.689053242 -0400 +@@ -23,6 +23,7 @@ + #include <linux/blkdev.h> + #include <linux/kthread.h> + #include <linux/sched.h> ++#include <linux/vmalloc.h> + + #include "rtsx.h" + #include "rtsx_transport.h" |