From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755691AbbFLQZJ (ORCPT ); Fri, 12 Jun 2015 12:25:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56529 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbbFLQZF (ORCPT ); Fri, 12 Jun 2015 12:25:05 -0400 Date: Fri, 12 Jun 2015 09:25:04 -0700 From: Greg KH To: Sudip Mukherjee Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] parport: check exclusive access before register Message-ID: <20150612162504.GA16363@kroah.com> References: <1434102620-2564-1-git-send-email-sudipm.mukherjee@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434102620-2564-1-git-send-email-sudipm.mukherjee@gmail.com> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 12, 2015 at 03:20:20PM +0530, Sudip Mukherjee wrote: > As of now we were starting the registration process and after the device > is registered we were checking if the device can be used by the > parport. Now lets check it first so that we do not need to go through > the registration process only to fail at the end. > The original exclusive access check at the end is still there so that we > do not get any surprises if two different process registers its device > with same parport and with exclusive access at the same time. > > Signed-off-by: Sudip Mukherjee > --- > > Hi Greg, > One doubt - if anyone sends any patch regarding parport, it will be > addressed to me. so do i need to forward it to you? Yes, please do so, I'll be glad to queue them up in my trees to go to Linus. thanks, greg k-h