lkml.org 
[lkml]   [2014]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 2/2] serial: Add support for Fintek F81216A LPC to 4 UART
    Hello Alan

    > Less than ideal in some ways because the base may well be remapped by
    > other hardware or on non x86 devices. No obvious ideas how to fix it
    > though and PnP kind of implies x86.

    If I extend the driver to consider other hw than x86 and PnP I will
    definitely look into this.

    >
    > On the bright side you can then make the resource layer do your locking
    > work for you. We have an IORESOURCE_MUXED flag for these little horrors
    > so you can request the resource with IORESOURCE_MUXED. If the resource is
    > busy then you will get a failure back, if it is idle you will get the
    > resource, if it is busy but held by another driver using IORESOURCE_MUXED
    > then the request will block until they finish with it.

    I was not aware of request_mutex, thanks for your help!. I am
    preparing v2 with no mutex and requtest_mutex_region.

    Thanks!

    --
    Ricardo Ribalda


    \
     
     \ /
      Last update: 2014-07-31 18:41    [W:5.319 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site