From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rodolfo Giometti Subject: Re: [patch] i2c: fix virtual i2c adapter lockdep warning Date: Thu, 14 Aug 2008 13:42:25 +0200 Message-ID: <20080814114225.GI10930@tekkaman> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: David Rientjes Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Mon, Aug 04, 2008 at 10:50:42AM -0700, David Rientjes wrote: > bus_lock for both the virtual adapter and its parent have the same lock > class. Since both are taken in i2c_virt_master_xfer() and > i2c_virt_smbus_xfer(), lockdep needs an annotation that the nesting is > safe. Thanks! This nested lock can be used also to remove to nolock functions into i2c-core.c? Ciao, Rodolfo -- GNU/Linux Solutions e-mail: giometti-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org Linux Device Driver giometti-k2GhghHVRtY@public.gmane.org Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c