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: 92316 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1621965obz; Tue, 24 Jan 2017 02:12:12 -0800 (PST) X-Received: by 10.98.10.69 with SMTP id s66mr37146150pfi.146.1485252732671; Tue, 24 Jan 2017 02:12:12 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q186si18562325pga.81.2017.01.24.02.12.12; Tue, 24 Jan 2017 02:12:12 -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 S1750871AbdAXKMG (ORCPT + 4 others); Tue, 24 Jan 2017 05:12:06 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:37617 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbdAXKMB (ORCPT ); Tue, 24 Jan 2017 05:12:01 -0500 Received: by mail-wm0-f52.google.com with SMTP id c206so200730191wme.0 for ; Tue, 24 Jan 2017 02:12:01 -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=OPYOZvL4puOjU0XMbO8n3bbuzy3kSWEchecFmRymCcpGjr58cIxMm6Q/Z10TdlisV9 8CSZrfh2qxlCSjOgyPJ7FbzsH+r0R9xoGSbAmS3AiIrB47zbZrEklq6O0AgMsDTNwuPd NHJ0PwlNWe0Y1TJlVXOrTV0x4l6xR/pObfDpDYrKz1jHzb4tp0Q+j9st1Q74Y7SgjwYs 2BVSH35+Wy9UlS0M9UV/GFshwxzp/IIA9K+ego1kevLjCgq23fg0S/c/yqNwi921smG6 2r7ow4Q+DNt+3Gy+Ivup3HIvNgpy1U98p0r9eBU0ZlddP/KI+2Ngn92qDHJS99ce6YDw eApg== X-Gm-Message-State: AIkVDXKOWL603XBmhmOdDnSzikMPUmLyU2razGDxvgQ5VsVzvf6isiGaPqhkir/4jqiU/mtL 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-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;