From patchwork Tue Feb 4 15:53:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3576381 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 6D2C79F2F5 for ; Tue, 4 Feb 2014 14:53:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95D3420176 for ; Tue, 4 Feb 2014 14:53:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95EBF20166 for ; Tue, 4 Feb 2014 14:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751214AbaBDOxc (ORCPT ); Tue, 4 Feb 2014 09:53:32 -0500 Received: from mail-la0-f44.google.com ([209.85.215.44]:41653 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753875AbaBDOxb (ORCPT ); Tue, 4 Feb 2014 09:53:31 -0500 Received: by mail-la0-f44.google.com with SMTP id hr13so2927012lab.31 for ; Tue, 04 Feb 2014 06:53:30 -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=WorflDrUjjDaLBOzKQAz1H71zqAbjFOyTv0XIP4MDUU=; b=JgDKkDnsfXB7waNL8eF9K+q0bWJ7PZAV9vk7e1eH+p6p1wfpsyIPbpVM/LQdK7tvm/ jWW/Gv+LZBLmj79vQkN/8gHj+Qb81ZJ+PbFFxJqBbtYlNZVf5QFoSueGRccdjZzxofmL HDD6IOcTwGPnQTQ5Mis+Mv8ADiepL94dz37R49MCiqYJQnwuchXcD3EcpLNMmKgE+IzS UhQIzjwKPwD0NjHAS7FwjUl47g0WERaCniIgtZhUKRFO/5jHFSjP++WBHrIxYGAovpRg 1uMw661q6jhy4sY3OoCYeIfdLjdtwoLZRRhMt2GiKgyG+Y7JHp1i2WToLG6n0bRNjQqu ZhjA== X-Gm-Message-State: ALoCoQnkuq6l7AYCEzS640vXmNdtct5e2emtbysAz+XpLjyJjoR4dZQVimwYhSPsEH04AWfCCw8V X-Received: by 10.112.160.200 with SMTP id xm8mr4007885lbb.24.1391525609965; Tue, 04 Feb 2014 06:53:29 -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 l4sm11861041lbd.15.2014.02.04.06.53.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 06:53:29 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org Subject: [PATCH v2 1/2] ARM: shmobile: Lager: pass Ether PHY IRQ Date: Tue, 4 Feb 2014 18:53:50 +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: <201402041853.51460.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-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 @@ -233,6 +234,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, @@ -618,6 +620,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);