Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753089AbaLSOI1 (ORCPT ); Fri, 19 Dec 2014 09:08:27 -0500 Received: from eusmtp01.atmel.com ([212.144.249.243]:43843 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752601AbaLSOIY (ORCPT ); Fri, 19 Dec 2014 09:08:24 -0500 Message-ID: <5494314F.1030002@atmel.com> Date: Fri, 19 Dec 2014 15:08:15 +0100 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Ronald Wahl , Luis Henriques , Felipe Balbi CC: , , Boris BREZILLON , Alexandre Belloni , , , Kamal Mostafa , Jiri Slaby Subject: Re: [RESEND PATCH] usb: gadget: at91_udc: move prepare clk into process context References: <1416411447-31112-1-git-send-email-nicolas.ferre@atmel.com> <20141120195049.GF23217@saruman> <20141219135123.GA2620@charon> <54942FDC.8030404@raritan.com> In-Reply-To: <54942FDC.8030404@raritan.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 19/12/2014 15:02, Ronald Wahl a écrit : > On 19.12.2014 14:51, Luis Henriques wrote: >> Hi Felipe, >> >> On Thu, Nov 20, 2014 at 01:50:49PM -0600, Felipe Balbi wrote: >>> On Wed, Nov 19, 2014 at 04:37:27PM +0100, Nicolas Ferre wrote: >>>> From: Ronald Wahl >>>> >>>> Commit 7628083227b6bc4a7e33d7c381d7a4e558424b6b (usb: gadget: at91_udc: >>>> prepare clk before calling enable) added clock preparation in interrupt >>>> context. This is not allowed as it might sleep. Also setting the clock >>>> rate is unsafe to call from there for the same reason. Move clock >>>> preparation and setting clock rate into process context (at91udc_probe). >>>> >>>> Signed-off-by: Ronald Wahl >>>> Acked-by: Alexandre Belloni >>>> Acked-by: Boris Brezillon >>>> Acked-by: Nicolas Ferre >>>> Cc: Felipe Balbi >>>> Cc: # v3.17+ >>>> --- >>>> Hi Felipe, >>>> >>>> I forgot to answer you on this patch. So I resend it now with the proper >>>> "stable" tag. You can also queue it during this -rc phase if you feel it is >>>> still possible. >>> >>> I think it's late for v3.18, so it'll go on v3.19 and get backported to >>> 3.17 and 3.18. Sorry :-s >>> >> >> Although this commit (b2ba27a5c56f "usb: gadget: at91_udc: move >> prepare clk into process context") is tagged for stable v3.17+, it >> seems like it could be applied to earlier kernels. >> >> 3.16, 3.13 and 3.12 seem to be affected by the same issue (and they >> all include commit 7628083227b6 "usb: gadget: at91_udc: prepare clk >> before calling enable"). Is there any reason for not applying it in >> these trees? > > Not to forget 3.14 (LTS) which was the branch where I primarily found > the issue... Well it's maybe an issue with the re-naming of the directory to drivers/usb/gadget/udc/ introduced by patch: 90fccb529d24 (usb: gadget: Gadget directory cleanup - group UDC drivers) The patch doesn't apply out of the box but it surely can be applied in those earlier kernels. Thanks, bye. -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/