From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754245Ab2HNBbP (ORCPT ); Mon, 13 Aug 2012 21:31:15 -0400 Received: from mga11.intel.com ([192.55.52.93]:58252 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753934Ab2HNBbO (ORCPT ); Mon, 13 Aug 2012 21:31:14 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.77,763,1336374000"; d="scan'208";a="207892186" Date: Tue, 14 Aug 2012 09:25:52 +0800 From: Feng Tang To: Linus Walleij Cc: Tomoya MORINAGA , , Grant Likely , Axel Lin Subject: Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection Message-ID: <20120814092552.6e06305d@feng-i7> In-Reply-To: References: <1343530482.5373.2.camel@phoenix> Organization: intel X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Aug 2012 14:01:31 +0200 Linus Walleij wrote: > On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin wrote: > > > gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, > > ioh_gpio_get and ioh_gpio_direction_input functions. > > Thus those functions are not callable from interrupt context. > > This patch converts mutex into spinlock. > > > > Signed-off-by: Axel Lin > > So IOH guys what are you saying about this? I'm not the IOH guy, but just happened to work on it for some time :) Anyway, the 2 patches both look good to me. Thanks, Feng