From patchwork Fri Mar 24 14:35:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9642975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF2996020B for ; Fri, 24 Mar 2017 14:36:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3459206AC for ; Fri, 24 Mar 2017 14:36:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B81E226E4C; Fri, 24 Mar 2017 14:36:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB861206AC for ; Fri, 24 Mar 2017 14:36:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965824AbdCXOge (ORCPT ); Fri, 24 Mar 2017 10:36:34 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37416 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757201AbdCXOgb (ORCPT ); Fri, 24 Mar 2017 10:36:31 -0400 Received: by mail-wm0-f47.google.com with SMTP id n11so3923241wma.0 for ; Fri, 24 Mar 2017 07:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1xGxVLPc0VyGoPQTkwnEc98S/dBhED4a0hK4RZnEdWY=; b=MadbFlhncgJh+Mcn3vQEY5/CoxdtchgM4tZqq4RInEwozRACNwcJyQG3I62JZruBJR cw3a2uw5aTBr4w9kXKqetE+g7x89YcdmBqKA43puU5benQag0hxCIFBycb80J1fe6Jn6 0s/c2wSBVXRBVuhJUtrJ0dUWZy4sgVh7Xvfbnac38Vwi9a/dguyCF2YI75CWcbYXdmua ZVVwD9CH11X8i7OUGZaJMTm8Fl4f8KpDuoNo4bhWy1laWonWFRbySBPPsEr/POnAjhpS thdoVobBKkXr5PeRcLn0BqhTWINPvCJuM9Vxb+98sn8xh9iJgpK+qiDYC9efmsojnO0g yuIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1xGxVLPc0VyGoPQTkwnEc98S/dBhED4a0hK4RZnEdWY=; b=lcvPJrYAQVCzvVErf5N/K82nQp5Z+5mEedx8jM9GcF+CQ53BUK+gJpR7uQx6/k+mzN DNjRBK6YC/ZAVLuEo4fYWSLFFgjwW4ut4FArnQq+kN/1P7GZX03G5sJOt8NUxxXF6BrH jf8OTSzW1lRm6J3YY9PKS0fZTdth9PW12gRZ89VC5EzkVmykV70iMBXnfqEyQYYY2cZO lkyXL1KmlgVR7A9ovB/g94PwBhlzn15A2Y7t8isiIWA0vIhQ7dSiGePkOnlJqk60yLPU 8VSY7GGEzhPEUc9Lt0mFzOkkf5zj+Nw20QkzuTHN1UUFRE6ZTlOsprZCF1k5bUpKigSN XSTA== X-Gm-Message-State: AFeK/H1dt3lAbvoFXz+qH4AaRGvP1oY205QpoMAlDLIXcClyIiC7CufQaHhxledPTyHdDcp8 X-Received: by 10.28.45.214 with SMTP id t205mr3609206wmt.15.1490366189500; Fri, 24 Mar 2017 07:36:29 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id o2sm2665565wmb.28.2017.03.24.07.36.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 07:36:28 -0700 (PDT) From: Alexandre Bailon To: b-liu@ti.com Cc: linux-usb@vger.kernel.org, ptitiano@baylibre.com, khilman@baylibre.com, nsekhar@ti.com, tony@atomide.com, sergei.shtylyov@cogentembedded.com, linux-omap@vger.kernel.org, Alexandre Bailon Subject: [RESEND PATCH v6 1/4] usb: musb: Use shared irq Date: Fri, 24 Mar 2017 15:35:57 +0100 Message-Id: <20170324143600.4704-2-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170324143600.4704-1-abailon@baylibre.com> References: <20170324143600.4704-1-abailon@baylibre.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line. Update the driver to request a shared irq. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 0c3664a..870da18 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2332,7 +2332,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) setup_timer(&musb->otg_timer, musb_otg_timer_func, (unsigned long) musb); /* attach to the IRQ */ - if (request_irq(nIrq, musb->isr, 0, dev_name(dev), musb)) { + if (request_irq(nIrq, musb->isr, IRQF_SHARED, dev_name(dev), musb)) { dev_err(dev, "request_irq %d failed!\n", nIrq); status = -ENODEV; goto fail3;