From patchwork Thu Dec 19 23:19:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3384571 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 172AF9F314 for ; Thu, 19 Dec 2013 22:19:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D75342069D for ; Thu, 19 Dec 2013 22:19:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 070322069A for ; Thu, 19 Dec 2013 22:19:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754711Ab3LSWTX (ORCPT ); Thu, 19 Dec 2013 17:19:23 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:41729 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754699Ab3LSWTX (ORCPT ); Thu, 19 Dec 2013 17:19:23 -0500 Received: by mail-la0-f42.google.com with SMTP id ec20so756672lab.15 for ; Thu, 19 Dec 2013 14:19:21 -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=Lavq8Bx/QF9tU+WQayicPHdqccAAqgk/pB+mE7PpAdM=; b=UWWcMWVEPr4s4EkMoBbb006J+g/p2aafVoUcdoOfOISzU9WGsIvqywgylud3KCADKc RdFGlyjQdjYqlzE3ees50Vmq3bFn+Z6rJZEWHRkvzhm0/8o2ovWq1ovt6A5DG/H+s9Xe N5sCRe84inwT1rjptNvHZekEQwTWqHUInKKDymv28hK+HCMzjBq2kg/4obdckweTs5L6 nqRDs26g9V/wcRVhiqYJ7DFlsb7kq2HEuzBG3kcoSXpHalrKeIVQZheWFh/D+OZDDjYl TgIegIR9PjzuWA98xZ8sUNsSI46SOaV7fqMcKO1BJO5KMuPgM55Ny3wmwCBcBj1ZuuDa o+/g== X-Gm-Message-State: ALoCoQnPqsWxbdAcRBEu5uFO/fe+WZiO6LPruimd6HdtZtVMBx/ihel5Fm3OAA+F/t9V9O49r0+/ X-Received: by 10.152.115.202 with SMTP id jq10mr51881lab.69.1387491561742; Thu, 19 Dec 2013 14:19:21 -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 di11sm4210737lac.0.2013.12.19.14.19.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Dec 2013 14:19:21 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org, davem@davemloft.net Subject: [PATCH 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ Date: Fri, 20 Dec 2013 02:19:30 +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: <201312200218.08076.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201312200218.08076.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201312200219.31121.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-lager.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-lager.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/board-lager.c +++ renesas/arch/arm/mach-shmobile/board-lager.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -228,6 +229,7 @@ static const struct resource mmcif1_reso /* 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, @@ -391,6 +393,8 @@ static void __init lager_init(void) { lager_add_standard_devices(); + irq_set_irq_type(irq_pin(0), IRQ_TYPE_LEVEL_LOW); + if (IS_ENABLED(CONFIG_PHYLIB)) phy_register_fixup_for_id("r8a7790-ether-ff:01", lager_ksz8041_fixup);