-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 59dfd8ce5ae0680da665746194ca7f76bcc83f71 Mon Sep 17 00:00:00 2001 | ||
From 8f14220e1eedf12788ca6055a04bab936eb70421 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= | ||
<[email protected]> | ||
Date: Mon, 15 Jul 2024 16:55:56 +0200 | ||
|
@@ -19,14 +19,14 @@ Signed-off-by: Marek Marczykowski-Górecki <[email protected]> | |
--- | ||
drivers/pci/pci.c | 2 +- | ||
drivers/pci/pci.h | 1 + | ||
drivers/pci/quirks.c | 66 ++++++++++++++++++++++++++++++++++++++++++++ | ||
3 files changed, 68 insertions(+), 1 deletion(-) | ||
drivers/pci/quirks.c | 70 ++++++++++++++++++++++++++++++++++++++++++++ | ||
3 files changed, 72 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c | ||
index 35fb1f17a589..ba3e4732f125 100644 | ||
index 0b29ec6e8e5e..63aa06fd99d0 100644 | ||
--- a/drivers/pci/pci.c | ||
+++ b/drivers/pci/pci.c | ||
@@ -4491,7 +4491,7 @@ int pcie_reset_flr(struct pci_dev *dev, bool probe) | ||
@@ -4583,7 +4583,7 @@ int pcie_reset_flr(struct pci_dev *dev, bool probe) | ||
} | ||
EXPORT_SYMBOL_GPL(pcie_reset_flr); | ||
|
||
|
@@ -36,22 +36,22 @@ index 35fb1f17a589..ba3e4732f125 100644 | |
int pos; | ||
u8 cap; | ||
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h | ||
index fd44565c4756..9dfc05e3d0b3 100644 | ||
index 2e40fc63ba31..2b438c262bf8 100644 | ||
--- a/drivers/pci/pci.h | ||
+++ b/drivers/pci/pci.h | ||
@@ -600,6 +600,7 @@ void pcie_ecrc_get_policy(char *str); | ||
static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { } | ||
static inline void pcie_ecrc_get_policy(char *str) { } | ||
@@ -755,6 +755,7 @@ static inline int pcie_lbms_count(struct pci_dev *port, unsigned long *val) | ||
return -EOPNOTSUPP; | ||
} | ||
#endif | ||
+int pci_af_flr(struct pci_dev *dev, bool probe); | ||
|
||
struct pci_dev_reset_methods { | ||
u16 vendor; | ||
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c | ||
index 568410e64ce6..9b77e6182500 100644 | ||
index 76f4df75b08a..cde5a6351626 100644 | ||
--- a/drivers/pci/quirks.c | ||
+++ b/drivers/pci/quirks.c | ||
@@ -4194,6 +4194,74 @@ static int reset_hinic_vf_dev(struct pci_dev *pdev, bool probe) | ||
@@ -4208,6 +4208,74 @@ static int reset_hinic_vf_dev(struct pci_dev *pdev, bool probe) | ||
return 0; | ||
} | ||
|
||
|
@@ -126,7 +126,7 @@ index 568410e64ce6..9b77e6182500 100644 | |
static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { | ||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82599_SFP_VF, | ||
reset_intel_82599_sfp_virtfn }, | ||
@@ -4209,6 +4273,8 @@ static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { | ||
@@ -4223,6 +4291,8 @@ static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { | ||
reset_chelsio_generic_dev }, | ||
{ PCI_VENDOR_ID_HUAWEI, PCI_DEVICE_ID_HINIC_VF, | ||
reset_hinic_vf_dev }, | ||
|
@@ -136,5 +136,5 @@ index 568410e64ce6..9b77e6182500 100644 | |
}; | ||
|
||
-- | ||
2.45.2 | ||
2.46.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From afe073973e6e402938790ca3b1b37d24422d36ba Mon Sep 17 00:00:00 2001 | ||
From 9dd3b03210805ce0f76327cc18f7d07a40b275a2 Mon Sep 17 00:00:00 2001 | ||
From: Rusty Bird <[email protected]> | ||
Date: Mon, 11 Jul 2016 13:05:38 +0000 | ||
Subject: [PATCH] block: add no_part_scan module parameter | ||
|
@@ -11,18 +11,17 @@ kernel's various partition table parsers for them. | |
The parameter's current value can be changed at any time by writing to | ||
the /sys/module/block/parameters/no_part_scan file. | ||
--- | ||
block/genhd.c | 12 ++++++++++++ | ||
1 file changed, 12 insertions(+) | ||
block/genhd.c | 11 +++++++++++ | ||
1 file changed, 11 insertions(+) | ||
|
||
diff --git a/block/genhd.c b/block/genhd.c | ||
index 06b642b23a07..15769cadd687 100644 | ||
index 79230c109fca..292a7c8c2188 100644 | ||
--- a/block/genhd.c | ||
+++ b/block/genhd.c | ||
@@ -784,6 +784,15 @@ static void register_disk(struct device *parent, struct gendisk *disk, | ||
@@ -382,6 +382,14 @@ int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode) | ||
return ret; | ||
} | ||
|
||
+/* copied (not moved) from far down below, to have fewer patch hunks */ | ||
+#undef MODULE_PARAM_PREFIX | ||
+#define MODULE_PARAM_PREFIX "block." | ||
+ | ||
|
@@ -32,9 +31,9 @@ index 06b642b23a07..15769cadd687 100644 | |
+MODULE_PARM_DESC(no_part_scan, "When adding block devices, always mark them as not to be scanned for partitions"); | ||
+ | ||
/** | ||
* device_add_disk - add disk information to kernel list | ||
* add_disk_fwnode - add disk information to kernel list with fwnode | ||
* @parent: parent device for the disk | ||
@@ -812,6 +821,9 @@ static void __device_add_disk(struct device *parent, struct gendisk *disk, | ||
@@ -412,6 +420,9 @@ int __must_check add_disk_fwnode(struct device *parent, struct gendisk *disk, | ||
*/ | ||
elevator_init_mq(disk->queue); | ||
|
||
|
@@ -45,5 +44,5 @@ index 06b642b23a07..15769cadd687 100644 | |
if (disk->fops->submit_bio) | ||
bdev_set_flag(disk->part0, BD_HAS_SUBMIT_BIO); | ||
-- | ||
2.25.4 | ||
2.46.0 | ||
|