Re: [PATCH 1/4 v4] drivers: create a pin control subsystem

From: Linus Walleij
Date: Fri Sep 02 2011 - 03:57:34 EST


On Fri, Sep 2, 2011 at 9:02 AM, Stijn Devriendt <highguy@xxxxxxxxx> wrote:
> On Fri, Aug 19, 2011 at 11:53 AM, Linus Walleij
> <linus.walleij@xxxxxxxxxxxxxx> wrote:

>> +       if (desc->mux_requested) {
>> +               pr_err("pin already requested\n");
>> +               goto out;
>> +       }
>
> Isn't locking missing here?

You're right, I have now introduced a spinlock to the pin descriptor
and take that before reading or writing descriptor fields like this.

Thanks!
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/