lkml.org 
[lkml]   [2008]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/11] tifm: clear interrupt mask bits before setting them on adapter init
    Date
    From: Alex Dubov <oakad@yahoo.com>

    This should improve reliability of detection of cards already in socket
    on driver load.

    Signed-off-by: Alex Dubov <oakad@yahoo.com>
    ---
    drivers/misc/tifm_7xx1.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c
    index 63a089b..67503ea 100644
    --- a/drivers/misc/tifm_7xx1.c
    +++ b/drivers/misc/tifm_7xx1.c
    @@ -368,6 +368,8 @@ static int tifm_7xx1_probe(struct pci_dev *dev,
    goto err_out_irq;

    writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1),
    + fm->addr + FM_CLEAR_INTERRUPT_ENABLE);
    + writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1),
    fm->addr + FM_SET_INTERRUPT_ENABLE);
    return 0;

    --
    1.5.3.6


    \
     
     \ /
      Last update: 2008-03-04 17:37    [W:4.647 / U:0.620 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site