From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964846AbaCTP2S (ORCPT ); Thu, 20 Mar 2014 11:28:18 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:42807 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932796AbaCTP2R (ORCPT ); Thu, 20 Mar 2014 11:28:17 -0400 Date: Thu, 20 Mar 2014 15:28:12 +0000 From: Lee Jones To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Samuel Ortiz , Michael Brunner Subject: Re: [PATCH] mfd: kempld-core: Fix potential hang-up during boot Message-ID: <20140320152812.GB8207@lee--X1> References: <1395328348-20661-1-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1395328348-20661-1-git-send-email-linux@roeck-us.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On PXT and COMe-cPC2 boards it is observed that the hardware > mutex is acquired but not being released during initialization. > This can result in a hang-up during boot if the driver is built > into the kernel. > > Releasing the mutex twice if it was acquired fixes the problem. > Subsequent request/release cycles work as expected, so the fix is > only needed during initialization. > > Reviewed-by: Michael Brunner > Tested-by: Michael Brunner > Signed-off-by: Guenter Roeck > --- > drivers/mfd/kempld-core.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) I was going to stop taking patches for this cycle, but as this looks like a bugfix I'll apply it, thanks. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog