From patchwork Tue Jul 23 16:12:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2832083 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 AC7639F4E2 for ; Tue, 23 Jul 2013 16:12:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93A22200F0 for ; Tue, 23 Jul 2013 16:12:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F973200ED for ; Tue, 23 Jul 2013 16:12:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933566Ab3GWQML (ORCPT ); Tue, 23 Jul 2013 12:12:11 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:65255 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933500Ab3GWQMI (ORCPT ); Tue, 23 Jul 2013 12:12:08 -0400 Received: from axis700.grange (dslb-094-220-153-077.pools.arcor-ip.net [94.220.153.77]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LkSR1-1UPqGs3DpL-00btus; Tue, 23 Jul 2013 18:12:06 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 5283840BB6; Tue, 23 Jul 2013 18:12:05 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1V1fC1-0003DZ-1m; Tue, 23 Jul 2013 18:12:05 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , Steve Glendinning , netdev@vger.kernel.org, Guennadi Liakhovetski Subject: [PATCH 3/4] ARM: shmobile: ape6evm: use smsc911x platform parameters to handle eth reset Date: Tue, 23 Jul 2013 18:12:03 +0200 Message-Id: <1374595924-12338-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1374595924-12338-1-git-send-email-g.liakhovetski@gmx.de> References: <1374595924-12338-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:rQdtcFhi/1hyYyeXm5Ou2b39neV/BHm3kEizHfTPtWw 1ye694hL3Q8lSinL19916fDGibf0X7+zsm7eKr4iUwkL20MR53 cUctVHmS0efAyE/MqaGlneuqmRHcAKw+u4tZtfa7fQ71sWh/0b SK7XrnYbOIElsfMxio7Dd6pI6b3TyDP7i9WuJMN+04/7i5c6TC yZsSwN4PKR8j6iBA6jmpEVmbSevy9MLOy69DBRHDwPLg2PZO8U 3hKNr5oyT/Bjn4R8Y4VgIeMUQ2SMK83BL1gEf8rlN88NMTEBJ2 1oOPOI6pXYZZ5AV/HhL6iFM9W0ObZ/754lMgxve/yP84SyesFa 9zdHzig2OkYoUizAtR/jRu7r40CceyAc7BxNFYaVXRm6aX2KkT Y6Ig48Hkwzz/A== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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 Instead of fixing ethernet reset GPIO in platform initialisation code, pass the GPIO to the driver. Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-shmobile/board-ape6evm.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 96a6994..bd46c75 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c @@ -56,6 +56,8 @@ static const struct smsc911x_platform_config lan9220_data = { .flags = SMSC911X_USE_32BIT, .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH, + .reset_gpio = 270, + .reset_gpio_config = SMSC911X_RESET_GPIO_VALID | GPIOF_INIT_LOW, }; /* @@ -156,9 +158,6 @@ static void __init ape6evm_add_standard_devices(void) r8a73a4_pinmux_init(); r8a73a4_add_standard_devices(); - /* LAN9220 ethernet */ - gpio_request_one(270, GPIOF_OUT_INIT_HIGH, NULL); /* smsc9220 RESET */ - regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); platform_device_register_resndata(&platform_bus, "smsc911x", -1,