lkml.org 
[lkml]   [2010]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] drivers: misc: add omap_hwspinlock driver
    * Ohad Ben-Cohen <ohad@wizery.com> [101018 00:41]:
    > From: Simon Que <sque@ti.com>
    >
    > Add driver for OMAP's Hardware Spinlock module.
    >
    > The OMAP Hardware Spinlock module, initially introduced in OMAP4,
    > provides hardware assistance for synchronization between the
    > multiple processors in the device (Cortex-A9, Cortex-M3 and
    > C64x+ DSP).

    ...

    > +EXPORT_SYMBOL_GPL(omap_hwspin_trylock);
    > +EXPORT_SYMBOL_GPL(omap_hwspin_lock_timeout);
    > +EXPORT_SYMBOL_GPL(omap_hwspin_unlock);
    > +EXPORT_SYMBOL_GPL(omap_hwspinlock_request);
    > +EXPORT_SYMBOL_GPL(omap_hwspinlock_request_specific);
    > +EXPORT_SYMBOL_GPL(omap_hwspinlock_free);
    > +EXPORT_SYMBOL_GPL(omap_hwspinlock_get_id);

    Please let's not add yet another omap specific layer that will
    make it incrementally harder to have generic drivers.

    Instead, we can do the omap specific locking in the
    platform code and then the drivers can use the functions
    passed in the platform_data if they're implemented.

    Regards,

    Tony


    \
     
     \ /
      Last update: 2010-10-22 19:03    [W:3.072 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site