From ee3130fb954e18a3f8c72e2b10b9c5222c24ea82 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 11 Apr 2011 21:54:51 +0200 Subject: [PATCH] linux: add initial patch to maybe support unsupported nuvoton-cir devices Signed-off-by: Stephan Raue --- ...nt_fail_with_unsupported_chip_versions-0.1.diff | 14 ++++++++++++++ ...nt_fail_with_unsupported_chip_versions-0.1.diff | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 packages/linux/patches/linux-2.6.38.2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff create mode 100644 packages/linux/patches/linux-2.6.39-rc2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff diff --git a/packages/linux/patches/linux-2.6.38.2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff b/packages/linux/patches/linux-2.6.38.2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff new file mode 100644 index 0000000000..58a642e52d --- /dev/null +++ b/packages/linux/patches/linux-2.6.38.2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff @@ -0,0 +1,14 @@ +diff -Naur linux-2.6.38.2/drivers/media/rc/nuvoton-cir.c linux-2.6.38.2.patch/drivers/media/rc/nuvoton-cir.c +--- linux-2.6.38.2/drivers/media/rc/nuvoton-cir.c 2011-03-27 20:37:20.000000000 +0200 ++++ linux-2.6.38.2.patch/drivers/media/rc/nuvoton-cir.c 2011-04-11 21:02:39.897028275 +0200 +@@ -250,9 +250,8 @@ + + if (chip_major != CHIP_ID_HIGH || + (chip_minor != CHIP_ID_LOW && chip_minor != CHIP_ID_LOW2)) { +- nvt_pr(KERN_ERR, "%s: unsupported chip, id: 0x%02x 0x%02x", ++ nvt_pr(KERN_WARNING, "warning %s: unsupported chip revision, id: 0x%02x 0x%02x, it may not work", + chip_id, chip_major, chip_minor); +- ret = -ENODEV; + } + + nvt_efm_disable(nvt); diff --git a/packages/linux/patches/linux-2.6.39-rc2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff b/packages/linux/patches/linux-2.6.39-rc2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff new file mode 100644 index 0000000000..58a642e52d --- /dev/null +++ b/packages/linux/patches/linux-2.6.39-rc2-054_nuvoton_dont_fail_with_unsupported_chip_versions-0.1.diff @@ -0,0 +1,14 @@ +diff -Naur linux-2.6.38.2/drivers/media/rc/nuvoton-cir.c linux-2.6.38.2.patch/drivers/media/rc/nuvoton-cir.c +--- linux-2.6.38.2/drivers/media/rc/nuvoton-cir.c 2011-03-27 20:37:20.000000000 +0200 ++++ linux-2.6.38.2.patch/drivers/media/rc/nuvoton-cir.c 2011-04-11 21:02:39.897028275 +0200 +@@ -250,9 +250,8 @@ + + if (chip_major != CHIP_ID_HIGH || + (chip_minor != CHIP_ID_LOW && chip_minor != CHIP_ID_LOW2)) { +- nvt_pr(KERN_ERR, "%s: unsupported chip, id: 0x%02x 0x%02x", ++ nvt_pr(KERN_WARNING, "warning %s: unsupported chip revision, id: 0x%02x 0x%02x, it may not work", + chip_id, chip_major, chip_minor); +- ret = -ENODEV; + } + + nvt_efm_disable(nvt);