From patchwork Thu Dec 19 23:28:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3384611 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4E6F09F314 for ; Thu, 19 Dec 2013 22:27:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A20F2069D for ; Thu, 19 Dec 2013 22:27:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 845D12069A for ; Thu, 19 Dec 2013 22:27:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754228Ab3LSW1x (ORCPT ); Thu, 19 Dec 2013 17:27:53 -0500 Received: from mail-la0-f41.google.com ([209.85.215.41]:49975 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754078Ab3LSW1w (ORCPT ); Thu, 19 Dec 2013 17:27:52 -0500 Received: by mail-la0-f41.google.com with SMTP id eo20so754151lab.14 for ; Thu, 19 Dec 2013 14:27:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=W6GuIS7xwVfuUP8iZ0l++hgwmXvNJqYLl+d63rrGDcM=; b=aDObigvpNtpnrvD99UAnOAc7OCIsNf97GdxYjbUaDPMSWB0oLSUHxWUr13YYgVSXEA 8An5mp7QuzcSDVX3OXANnTze/Ll/cXYX35M/lGRYzLBA27u+N1SzKoP1nvJGc6hJkd3k n9O81eNviBmuf+lYodBiFj0aulbUAyTBdflqPrGlLJIxhOKo1GlQYCAHuUYhzX9BEzTH mzOGah562mV5k64wRoP09Dsw3NzZw8loDgOyBH4Xg58UupCTc3PtbextrmwA27NRFqv5 QDiXwE5y967gsOVF1YOxedmf/wPzrVRWn/rWES4HD6sVPzek0eovB1S6xE/VBbcbxx8O Q6DQ== X-Gm-Message-State: ALoCoQkDNn4vJ8XlXgcwuB53SZLn4lC+hEGsnSayCJvhx3FRffRcxt6LkdRwjmPedXZqcxJlpKd0 X-Received: by 10.112.17.39 with SMTP id l7mr144395lbd.51.1387492071195; Thu, 19 Dec 2013 14:27:51 -0800 (PST) Received: from wasted.dev.rtsoft.ru (ppp91-76-87-169.pppoe.mtu-net.ru. [91.76.87.169]) by mx.google.com with ESMTPSA id di11sm4224504lac.0.2013.12.19.14.27.50 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Dec 2013 14:27:50 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH 1/1] ARM: shmobile: Koelsch: pass Ether PHY IRQ Date: Fri, 20 Dec 2013 02:28:00 +0300 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org References: <201312200226.38815.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201312200226.38815.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201312200228.00555.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pass Ether's PHY IRQ (which is IRQC's IRQ0) to the 'sh_eth' driver. Set the IRQ trigger type to be low-level as per the Micrel PHY driver's setup. Signed-off-by: Sergei Shtylyov Acked-by: Magnus Damm --- arch/arm/mach-shmobile/board-koelsch.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/mach-shmobile/board-koelsch.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/board-koelsch.c +++ renesas/arch/arm/mach-shmobile/board-koelsch.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -92,6 +93,7 @@ static void __init koelsch_add_du_device /* Ether */ static const struct sh_eth_plat_data ether_pdata __initconst = { .phy = 0x1, + .phy_irq = irq_pin(0), .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_RMII, .ether_link_active_low = 1, @@ -215,6 +217,8 @@ static void __init koelsch_init(void) { koelsch_add_standard_devices(); + irq_set_irq_type(irq_pin(0), IRQ_TYPE_LEVEL_LOW); + if (IS_ENABLED(CONFIG_PHYLIB)) phy_register_fixup_for_id("r8a7791-ether-ff:01", koelsch_ksz8041_fixup);