lkml.org 
[lkml]   [2011]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 2/2] ARM: Enable TS-78XX features in unknown revisions
    Date
    When the manufacturer increases the revision number the platform
    devices for the RTC, NAND, and RNG disappear. We should assume
    new revisions have these devices instead of assuming they do not.

    Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
    ---
    arch/arm/mach-orion5x/ts78xx-setup.c | 8 +++++---
    1 files changed, 5 insertions(+), 3 deletions(-)

    Misspelled KERN_WARNING. Oops. This one is tested.

    diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
    index 7bed418..3f8013a 100644
    --- a/arch/arm/mach-orion5x/ts78xx-setup.c
    +++ b/arch/arm/mach-orion5x/ts78xx-setup.c
    @@ -343,9 +343,11 @@ static void ts78xx_fpga_supports(void)
    ts78xx_fpga.supports.ts_rng.present = 1;
    break;
    default:
    - ts78xx_fpga.supports.ts_rtc.present = 0;
    - ts78xx_fpga.supports.ts_nand.present = 0;
    - ts78xx_fpga.supports.ts_rng.present = 0;
    + printk(KERN_WARNING "Unrecognized TS-78XX FPGA ID 0x%02x",
    + ts78xx_fpga.id);
    + ts78xx_fpga.supports.ts_rtc.present = 1;
    + ts78xx_fpga.supports.ts_nand.present = 1;
    + ts78xx_fpga.supports.ts_rng.present = 1;
    }
    }

    --
    1.7.2.3


    \
     
     \ /
      Last update: 2011-03-06 12:29    [W:4.025 / U:11.400 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site