From patchwork Tue Feb 4 15:55:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3576411 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 E76329F2F5 for ; Tue, 4 Feb 2014 14:55:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1AD6B20176 for ; Tue, 4 Feb 2014 14:55:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46B9D2015B for ; Tue, 4 Feb 2014 14:55:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753409AbaBDOzN (ORCPT ); Tue, 4 Feb 2014 09:55:13 -0500 Received: from mail-lb0-f171.google.com ([209.85.217.171]:60257 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbaBDOzN (ORCPT ); Tue, 4 Feb 2014 09:55:13 -0500 Received: by mail-lb0-f171.google.com with SMTP id c11so6512604lbj.16 for ; Tue, 04 Feb 2014 06:55:11 -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=AcvYQqpxDISaN4O1E54qdHvTuVhdGr4KNM0I7j508zc=; b=HX+3TYKy/TwtBMufPI0mkr3+RLo8jldYS55Bi0fc9zOjsp9SoDRXKezSp2DaaEgGYU 0Z5quDBELfjiC2pS06la0okhvWkgSdQpGc+3O0XK0leaUybRnbUOSNoGJBVqntmJ+Oap 7Jx9WgeEpE7xWzxK4MwU41sWhR8qPYfqrirq4JsfHIlWsmbJDMgT5lEDbnkjwgH7Sjin NcF//DiGtrQ3xcPjL9SYTtiMXoz/GD3NtTZBa906x8Jew5qnNTLV6+Vdf8t9Ri4o5XEg fDw/n7Vae8MaGgFi36NStwvl7fLxOYgMyJ0EuEaBIeDyZqNIkEqOKKaxTyrNyqlJgTv0 wi6g== X-Gm-Message-State: ALoCoQnfIqUnnSyt1c97v67ON/FNXOITcAVnK/3zbW8R4IwqpWBxY1svJdmrnTU/3RlLy+54BxfB X-Received: by 10.153.0.33 with SMTP id av1mr18378352lad.14.1391525711056; Tue, 04 Feb 2014 06:55:11 -0800 (PST) Received: from wasted.cogentembedded.com (ppp85-140-137-134.pppoe.mtu-net.ru. [85.140.137.134]) by mx.google.com with ESMTPSA id yq2sm25118337lab.3.2014.02.04.06.55.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 06:55:10 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH v2 2/2] ARM: shmobile: Koelsch: pass Ether PHY IRQ Date: Tue, 4 Feb 2014 18:55:32 +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: <201402041851.47198.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201402041851.47198.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201402041855.32618.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.5 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 --- Changes in version 2: - refreshed the patch. 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, @@ -232,6 +234,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);