From patchwork Wed Sep 21 11:10:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 4214 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E8B6123F6F for ; Wed, 21 Sep 2011 11:01:55 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id DDD9AA182F6 for ; Wed, 21 Sep 2011 11:01:55 +0000 (UTC) Received: by fxe23 with SMTP id 23so2119337fxe.11 for ; Wed, 21 Sep 2011 04:01:55 -0700 (PDT) Received: by 10.223.55.136 with SMTP id u8mr899229fag.46.1316602915710; Wed, 21 Sep 2011 04:01:55 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.18.198 with SMTP id y6cs121586lad; Wed, 21 Sep 2011 04:01:55 -0700 (PDT) Received: by 10.229.218.204 with SMTP id hr12mr379971qcb.295.1316602914681; Wed, 21 Sep 2011 04:01:54 -0700 (PDT) Received: from TX2EHSOBE002.bigfish.com (tx2ehsobe001.messaging.microsoft.com. [65.55.88.11]) by mx.google.com with ESMTPS id z8si1116880qct.87.2011.09.21.04.01.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 04:01:54 -0700 (PDT) Received-SPF: neutral (google.com: 65.55.88.11 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=65.55.88.11; Authentication-Results: mx.google.com; spf=neutral (google.com: 65.55.88.11 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: from mail14-tx2-R.bigfish.com (10.9.14.237) by TX2EHSOBE002.bigfish.com (10.9.40.22) with Microsoft SMTP Server id 14.1.225.22; Wed, 21 Sep 2011 11:01:53 +0000 Received: from mail14-tx2 (localhost.localdomain [127.0.0.1]) by mail14-tx2-R.bigfish.com (Postfix) with ESMTP id 90E9F62824A; Wed, 21 Sep 2011 11:01:53 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-SS: 0, X-FB-DOMAIN-IP-MATCH: fail Received: from mail14-tx2 (localhost.localdomain [127.0.0.1]) by mail14-tx2 (MessageSwitch) id 1316602859309158_23540; Wed, 21 Sep 2011 11:00:59 +0000 (UTC) Received: from TX2EHSMHS007.bigfish.com (unknown [10.9.14.252]) by mail14-tx2.bigfish.com (Postfix) with ESMTP id 442AFDB804B; Wed, 21 Sep 2011 11:00:59 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS007.bigfish.com (10.9.99.107) with Microsoft SMTP Server (TLS) id 14.1.225.22; Wed, 21 Sep 2011 11:00:57 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.323.7; Wed, 21 Sep 2011 06:00:57 -0500 Received: from S2100-06.ap.freescale.net (S2100-06.ap.freescale.net [10.192.242.125]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p8LB0oW4020827; Wed, 21 Sep 2011 06:00:54 -0500 (CDT) From: Shawn Guo To: "David S. Miller" CC: Francois Romieu , =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= , Troy Kisky , , , , Shawn Guo Subject: [PATCH v2 1/3] net/fec: change phy-reset-gpio request warning to debug message Date: Wed, 21 Sep 2011 19:10:30 +0800 Message-ID: <1316603432-20032-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1316603432-20032-1-git-send-email-shawn.guo@linaro.org> References: <1316603432-20032-1-git-send-email-shawn.guo@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com FEC can work without a phy reset on some platforms, which means not very platform necessarily have a phy-reset gpio encoded in device tree. So it makes more sense to have the phy-reset-gpio request failure as a debug message rather than a warning. Signed-off-by: Shawn Guo --- drivers/net/ethernet/freescale/fec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index 158b82e..a057abf 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c @@ -1422,7 +1422,7 @@ static int __devinit fec_reset_phy(struct platform_device *pdev) phy_reset = of_get_named_gpio(np, "phy-reset-gpios", 0); err = gpio_request_one(phy_reset, GPIOF_OUT_INIT_LOW, "phy-reset"); if (err) { - pr_warn("FEC: failed to get gpio phy-reset: %d\n", err); + pr_debug("FEC: failed to get gpio phy-reset: %d\n", err); return err; } msleep(1);