From 22cb1f85f1a5274716080ebba1730018b8b01267 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 13 Apr 2015 01:16:01 +0200 Subject: [PATCH] linux: add patch to workaround intel cir5 Signed-off-by: Stephan Raue --- .../4.0-rc7/linux-059-novoton-fix.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 packages/linux/patches/4.0-rc7/linux-059-novoton-fix.patch diff --git a/packages/linux/patches/4.0-rc7/linux-059-novoton-fix.patch b/packages/linux/patches/4.0-rc7/linux-059-novoton-fix.patch new file mode 100644 index 0000000000..9d9f88139d --- /dev/null +++ b/packages/linux/patches/4.0-rc7/linux-059-novoton-fix.patch @@ -0,0 +1,34 @@ +From 10c0b2f9b4388318d185f97d530344750f528e64 Mon Sep 17 00:00:00 2001 +From: fritsch +Date: Sun, 12 Apr 2015 19:40:37 +0200 +Subject: [PATCH] CIR: Dump workaround for intel cir5 + +--- + drivers/media/rc/nuvoton-cir.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c +index 9c2c863..8a6832a 100644 +--- a/drivers/media/rc/nuvoton-cir.c ++++ b/drivers/media/rc/nuvoton-cir.c +@@ -992,7 +992,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) + + /* validate pnp resources */ + if (!pnp_port_valid(pdev, 0) || +- pnp_port_len(pdev, 0) < CIR_IOREG_LENGTH) { ++ pnp_port_len(pdev, 0) < 8) { + dev_err(&pdev->dev, "IR PNP Port not valid!\n"); + goto exit_free_dev_rdev; + } +@@ -1003,7 +1003,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) + } + + if (!pnp_port_valid(pdev, 1) || +- pnp_port_len(pdev, 1) < CIR_IOREG_LENGTH) { ++ pnp_port_len(pdev, 1) < 8) { + dev_err(&pdev->dev, "Wake PNP Port not valid!\n"); + goto exit_free_dev_rdev; + } +-- +1.9.1 +