From patchwork Tue Jan 24 10:11:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9534747 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 87669601D3 for ; Tue, 24 Jan 2017 10:12:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7985224DA2 for ; Tue, 24 Jan 2017 10:12:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E42426AE3; Tue, 24 Jan 2017 10:12:14 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 0E20624DA2 for ; Tue, 24 Jan 2017 10:12:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbdAXKML (ORCPT ); Tue, 24 Jan 2017 05:12:11 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37949 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbdAXKL4 (ORCPT ); Tue, 24 Jan 2017 05:11:56 -0500 Received: by mail-wm0-f46.google.com with SMTP id r144so200361345wme.1 for ; Tue, 24 Jan 2017 02:11:56 -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=1X0VokqypoR6r2YJkoczl4siGWVR0xuA7t5dkQpf6N0/M76FEuDZ0RBxH2BY7dmcK7 GNWaYs3Vras+OaW9xJRvoNZD0wlUnb2ox/mR7TfOKnKgpL3/nAc0+GiKqS8Z9+EK1Rd5 CaEzogIPK71RmSpOWzJcWHtVykP0Zp1A4W2B5ScoSb1FSOqLXpI5GacKa2kWVpqfQiGF WPW3JnKfgs/B6FEpChopHlevwAevYgJIwrzC0Ua2pnkZgj+bXy8omWDhoosuacuUBkk6 su2W3bWNrsgdDzxKGxhxZASye9SD2RMNAkZJtayKGREP1KXbbGHrASa/a08aoFej76R6 nH9g== 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=KsSZ7eIe+2YZOlA0yosplessc96ZQtwHNmJ2lYCXZR7hyn6tpjwHc1479dt1Pebjw8 R+Qq39iQsRKXcNcmvcImzpijFRUOc1YmluY8nqaTI24pOParorCV4ZfrjetKU+SNyETg ufTmJBEdgc4GXshwqXKg+VUGlzPbEm2bgez0TmvCFJNjCwsmAVqpz1E+9ryIIUbL4MG4 Sq6ogUbdWfuXT1/0RbN2d6tD1ew/cAbKn+50tebyx0ZmFtALP4p4UjBmz8/mYosInIEO vzmgqavDeGhlpECbd7OfrMlp1CpFeDK87CjJ/udrqiE/+j2lOoUvdqFkyaTiK6k8xCdS yM3A== X-Gm-Message-State: AIkVDXKbjIKpmuaE6xHP+sGSv9BFKnQH/zjR0oBVAZEGuAXVCDYc5IgPsJR6d9FTZnwOiRS6 X-Received: by 10.223.178.146 with SMTP id g18mr28294003wrd.124.1485252715189; Tue, 24 Jan 2017 02:11:55 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c81sm25427318wmf.22.2017.01.24.02.11.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jan 2017 02:11:54 -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, linux-usb@vger.kernel.org, sergei.shtylyov@cogentembedded.com, Alexandre Bailon Subject: [PATCH v4 2/5] usb: musb: Use shared irq Date: Tue, 24 Jan 2017 11:11:46 +0100 Message-Id: <20170124101149.14920-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170124101149.14920-1-abailon@baylibre.com> References: <20170124101149.14920-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 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;