From patchwork Wed Jan 25 10:33:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 92421 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2143357qgi; Wed, 25 Jan 2017 02:33:31 -0800 (PST) X-Received: by 10.99.37.199 with SMTP id l190mr46442305pgl.86.1485340411810; Wed, 25 Jan 2017 02:33:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si22998087pfa.140.2017.01.25.02.33.31; Wed, 25 Jan 2017 02:33:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbdAYKd3 (ORCPT + 4 others); Wed, 25 Jan 2017 05:33:29 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38115 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751841AbdAYKd2 (ORCPT ); Wed, 25 Jan 2017 05:33:28 -0500 Received: by mail-wm0-f45.google.com with SMTP id r144so22797747wme.1 for ; Wed, 25 Jan 2017 02:33:27 -0800 (PST) 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=v7jMPRN+ekKdwRSf8to4qcDPnXhz1D2f4+8UL6k9Hs8=; b=fK74e+ovP1s48n3uzakpqolq21kfAP4cWArQQuwLER30u0JX5qxOajT2d+R+kpGNrd 1fjtdRcnU3HoQsrpahCxZIEKUI63yK2+np+prinJW/OOViR4HsKtwWTdDwluoOq2ini+ qCcWllR8tqzjXnrE3vGYjktNEz5sR7WnqJB0kYvn1PxOCumeyGjw5rSdGzHUD+Z5rTIy DG65fqwjcl97znxDAqGwQ7Vqo66+SWZY/ZgvL/h51hM9udjB4csv+1fws5NmhSaOY8FJ sc81W8r6cwKlpfzebAv2U738f2azILeyTUEito0s5WnXsRVRPB5dSf5cncd/qrBaktY/ /KoQ== 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=v7jMPRN+ekKdwRSf8to4qcDPnXhz1D2f4+8UL6k9Hs8=; b=mS/d21C5g84JaSPqxN+dl3uSczc1AfPr1aooaU0zVyJwhFiOjnLewbotZeRGjH5//x mzJxwdfRqmdaNmAa7hcpPYt1STBiIvL0ONl2Sv2i7C4N6JeimE2CiSlF5iofzR33zslg oTPf5WYeVTPSetXBxXvNn10xvGDlIwCXs3ILYipFmaoj/+maSs1bJmwVe193TzBVJ23Q dlXx6pore2TQx9e9VRqytOKGLrsY3gVbWvjr5Bz97f0vj3lgVg3ThdGk6YmeP/LnkSTe ItpVw9UsMmWnYqZOqf6l5Sy5EdMQ5JNUlNpx4xGlTokjkeafImkAtPhx7ZvJ5E9o7Ghb PPFQ== X-Gm-Message-State: AIkVDXLO629ovaubOOjx9gTBZFG2Q+NLIBvl2xDma9rcxtO09rp5H2Et/lRkzYlSU4LBoiNe X-Received: by 10.223.169.85 with SMTP id u79mr32879411wrc.169.1485340406527; Wed, 25 Jan 2017 02:33:26 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id z134sm30599521wmc.20.2017.01.25.02.33.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 02:33:26 -0800 (PST) From: Alexandre Bailon To: b-liu@ti.com Cc: nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, sergei.shtylyov@cogentembedded.com, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v5 2/5] usb: musb: Use shared irq Date: Wed, 25 Jan 2017 11:33:16 +0100 Message-Id: <20170125103319.26021-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170125103319.26021-1-abailon@baylibre.com> References: <20170125103319.26021-1-abailon@baylibre.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index fca288bb..cf40adf 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2329,7 +2329,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;