Re: [PATCH v2] platform/x86: Add WMI driver for Redmibook keyboard.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > +	/* For linearizability */
> > +	guard(mutex)(&data->key_lock);
>
> What is the exact purpose of this mutex? What does it protect? 

It protects key sequence, so there wouldn't be race between two press & release combinations resuulting into press - press - release - release order.

--
Gladyshev Ilya




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux