From patchwork Wed Aug 30 08:07:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 111268 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp555263qge; Wed, 30 Aug 2017 01:08:10 -0700 (PDT) X-Received: by 10.99.112.20 with SMTP id l20mr753513pgc.56.1504080490158; Wed, 30 Aug 2017 01:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504080490; cv=none; d=google.com; s=arc-20160816; b=QdHMdLkqKSCZ2yRBJodc3zBEu4wqjHFykw4Nnx8zNddTWPAJzEYwKFmwX3rf4M/LDS 1acOL/R97ageJurRuA5izoT4GbihwljUrZkSDa9gpNEvd1aPVOh0zeMNO/SJ31cARNO3 c/X7Y2FMje9dPfX/BNjX1sHaVLLf6IBop8d2mi1KtwhcwmKtU9Lo6dP867beiz4g4v+R YQRj+U/VfqxQsYxXYAY3mAuI2b/nQi9FLAGgF0Pe7H4hLGUrFD+Q1a6LBqeCaxDG19WU 5xP7FnMW/T26GPfSMEkwRlb92y9jbC+TqcjTWT2i6cdUYaCjA7o9p5oK2ra2tY1wQ3zm OFzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=2W8JfoaxMXnbkn7IV4o994u1IWekKU4Fmemfq5K9Faw=; b=UrvH59qfDm1uhcKvkiKOkNsDq414gfZWf/bypmKPbGlQhASZukff3hGPzsHDEXIjdq 851IGKajNNPuMMZIrFGtulZxph3ZwQRpiwWvKktZKIXg4mIS5l+huR6p5N0fA0J24oLU UAmTGP9birI+A70f6WgZQ3xYBhwuWY3KGTSEMdZICkW+lEMlzNjABUskwRU6nzjP8Zbb EhAHW2rPboFlj4WsSxZc//B3nBguqzPkSWR2SP1BqpVSnoCDkPysElWtNT+UlERuWbSB s/dU1PcAl2OFJpuPEyjsQufpV+HT0pMaX45g53JG+puNPzdbVpDZSoFxAs87u82xwdT6 gQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=uSXnUfKT; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si4000164plm.594.2017.08.30.01.08.09; Wed, 30 Aug 2017 01:08:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=uSXnUfKT; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750983AbdH3III (ORCPT + 3 others); Wed, 30 Aug 2017 04:08:08 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:30095 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbdH3IIH (ORCPT ); Wed, 30 Aug 2017 04:08:07 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7U87Mwq021711; Wed, 30 Aug 2017 03:07:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1504080442; bh=UihTZ7LIIzM2CVZL6uERdtwbSUvLWnForbtBEZggoR8=; h=From:To:CC:Subject:Date; b=uSXnUfKTFoi/0dbzQs8MyFU9OqnTwouSkSjiokGz5eAZ5qdesRszKP2JmwupWvXlt sFX+kQ2ccCaBbx2yz8pU2HhdYFYrJt/FVpKuNcr0J3GfvQVh0dTBfO9wB5B4IGt0zO rNDLdfMyXkZYDGwzVO/9Ny0JUYlyuwV67XhjQY6c= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7U87HYg028064; Wed, 30 Aug 2017 03:07:17 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 30 Aug 2017 03:07:16 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Wed, 30 Aug 2017 03:07:16 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7U87DsY002635; Wed, 30 Aug 2017 03:07:14 -0500 From: Sekhar Nori To: Grygorii Strashko , David Miller CC: Linux OMAP Mailing List , Linux netdev Mailing List , Tony Lindgren , Sekhar Nori , Adam Ford Subject: [PATCH] net: ti: cpsw-common: dont print error if ti_cm_get_macid() fails Date: Wed, 30 Aug 2017 13:37:13 +0530 Message-ID: <423afc6874d8911615c4df941957067aebfc09dd.1504080198.git.nsekhar@ti.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org It is quite common for ti_cm_get_macid() to fail on some of the platforms it is invoked on. They include any platform where mac address is not part of SoC register space. On these platforms, mac address is read and populated in device-tree by bootloader. An example is TI DA850. Downgrade the severity of message to "information", so it does not spam logs when 'quiet' boot is desired. Signed-off-by: Sekhar Nori --- drivers/net/ethernet/ti/cpsw-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/ethernet/ti/cpsw-common.c b/drivers/net/ethernet/ti/cpsw-common.c index 56ba411421f0..38d1cc557c11 100644 --- a/drivers/net/ethernet/ti/cpsw-common.c +++ b/drivers/net/ethernet/ti/cpsw-common.c @@ -96,7 +96,7 @@ int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr) if (of_machine_is_compatible("ti,dra7")) return davinci_emac_3517_get_macid(dev, 0x514, slave, mac_addr); - dev_err(dev, "incompatible machine/device type for reading mac address\n"); + dev_info(dev, "incompatible machine/device type for reading mac address\n"); return -ENOENT; } EXPORT_SYMBOL_GPL(ti_cm_get_macid);