Skip to contentSkip to conversation

fixup v3.13_ddbridge_pcimsi.patch

PATCH New Daniel Scheller 1 participant 1 message Dec 12, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup v3.13_ddbridge_pcimsi.patch

From: Jasmin Jessich <[email protected]>

Required after the ddbridge 0.9.32 bump in media_tree.

---
Fixes at least the patch issue with kernel <=3.13. Jasmin originally prepared the updated patch when the ddbridge-0.9.32 bump was done, so sending it in behalf of her (with CONFIG_VIDEO_PVRUSB2 disabled this makes the patch phase work again with older kernels).

Hans, this is probably for you. I don't have a fix for the PVRUSB2 usb_urb_ep_type_check() issue at hands though.

 backports/v3.13_ddbridge_pcimsi.patch | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
backports/v3.13_ddbridge_pcimsi.patch +6 -5
index 5f602a7..f410251 100644
@@ -2,7 +2,7 @@ diff --git a/drivers/media/pci/ddbridge/ddbridge-main.c b/drivers/media/pci/ddbr
 index 9ab4736..50c3b4f 100644
 --- a/drivers/media/pci/ddbridge/ddbridge-main.c
 +++ b/drivers/media/pci/ddbridge/ddbridge-main.c
-@@ -129,13 +129,18 @@ static void ddb_irq_msi(struct ddb *dev, int nr)
+@@ -129,14 +129,18 @@ static void ddb_irq_msi(struct ddb *dev, int nr)
  	int stat;
  
  	if (msi && pci_msi_enabled()) {
@@ -10,17 +10,18 @@ index 9ab4736..50c3b4f 100644
 -		if (stat >= 1) {
 -			dev->msi = stat;
 -			dev_info(dev->dev, "using %d MSI interrupt(s)\n",
--				dev->msi);
--		} else
+-				 dev->msi);
+-		} else {
+-			dev_info(dev->dev, "MSI not available.\n");
 +		stat = pci_enable_msi_block(dev->pdev, nr);
 +		if (stat == 0) {
 +			dev->msi = nr;
 +		} else if (stat == 1) {
 +			stat = pci_enable_msi(dev->pdev);
 +			dev->msi = 1;
-+		}
+ 		}
 +		if (stat < 0)
- 			dev_info(dev->dev, "MSI not available.\n");
++			dev_info(dev->dev, "MSI not available.\n");
 +		else
 +			dev_info(dev->dev, "using %d MSI interrupts\n",
 +				 dev->msi);
Signature · 1 line
2.13.6