From patchwork Thu Jan 19 14:08:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 91912 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp293252qgi; Thu, 19 Jan 2017 06:08:58 -0800 (PST) X-Received: by 10.84.172.131 with SMTP id n3mr13295065plb.5.1484834938712; Thu, 19 Jan 2017 06:08:58 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h88si3674019pfk.4.2017.01.19.06.08.58; Thu, 19 Jan 2017 06:08:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752894AbdASOI5 (ORCPT + 4 others); Thu, 19 Jan 2017 09:08:57 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38452 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752694AbdASOIn (ORCPT ); Thu, 19 Jan 2017 09:08:43 -0500 Received: by mail-wm0-f54.google.com with SMTP id r144so78873664wme.1 for ; Thu, 19 Jan 2017 06:08:43 -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=LAZvhxngVQ1k27PqM0eZgULL5bcm+rh9bJgGksc0LmjaZ5KOZT15YvmR1Sp6+aTDn7 OyqBTSIVGNlgtCwdyLNw1dmeqtokkSKD/uXv5IGN5VgbD1MdufZUcBxgF93kU6/6AlY+ 41Ilj6AqrML39dPaN4E/NHUG7NizNknnWEME39a9xX+xyGmuMgM4JcuXpcZ9bDAzHvRU IbQb4Pz342VPX5+g/Q6bFIuXm8fHst3QGjM5vBey78GKBfqgjtUoDn1DECiwGLLxP4vw 2MyGsrdH4k304jc+nonny6SGL/rnFeEE6p8QY/dagHDnVsjGH148vXu7GiabC0k/+vW9 mqzg== 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=fwXvSB8Oss+I0wU2KcD3r5b58P1J46xXniBo/knuPId5Bhdln9R1TA//8h4By0M/+K KCOhOQ7Lgb6n/nBkV5VFX8mAwcCGZqu+npc2Sjb99CrN1nMPRgmK7FLhCEh2nj1sla3L jyrBZWKkX7N+T7OLQsI3xosmv5zGu4W3NL+xyajKcCN+O2dSDeq6OqdFu+g97ZZxpmj+ 78mSbm9aw7pftweRUlvt9PjxGB3qb16vGzLxXMXLf1uuV5FgaE+2L62QfhENnVhDPR1R oSgh3grpnXv9znalJkmH1A6b47rVDd4guaejQvk+MwR4+zXLpw17+PTD3xkfG/J8v1Cc yb+A== X-Gm-Message-State: AIkVDXKgfhPjzVonu22qECNDT8ArJRoWfnX7QWHMjKVCQHYpnn1cWLoD9x/4XUWM2RzB5eTq X-Received: by 10.223.169.140 with SMTP id b12mr7756061wrd.138.1484834922606; Thu, 19 Jan 2017 06:08:42 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id d64sm53546626wmh.3.2017.01.19.06.08.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 06:08:42 -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, grygorii.strashko@ti.com, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v3 2/5] usb: musb: Use shared irq Date: Thu, 19 Jan 2017 15:08:32 +0100 Message-Id: <20170119140835.18981-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170119140835.18981-1-abailon@baylibre.com> References: <20170119140835.18981-1-abailon@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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-usb" 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;