[PATCH 1/3] hwspinlock/core: use global ID to register hwspinlocks on multiple devices

Ohad Ben-Cohen ohad at wizery.com
Sat Jul 7 06:49:13 EDT 2012

On Fri, Jul 6, 2012 at 7:56 AM, Shinya Kuribayashi
<shinya.kuribayashi.px at renesas.com> wrote:
> Commit 300bab9770 (hwspinlock/core: register a bank of hwspinlocks in a
> single API call, 2011-09-06) introduced 'hwspin_lock_register_single()'
> to register numerous (a bank of) hwspinlock instances in a single API,
> 'hwspin_lock_register()'.
> At which time, 'hwspin_lock_register()' accidentally passes 'local IDs'
> to 'hwspin_lock_register_single()', despite that ..._single() requires
> 'global IDs' to register hwspinlocks.
> We have to convert into global IDs by supplying the missing 'base_id'.
> Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px at renesas.com>

Applied, thanks!

While at it, I also fixed the error path of hwspin_lock_register,
which had the same bug.

More information about the linux-arm-kernel mailing list