From patchwork Wed Jun 21 08:42:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 9801207 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC91960329 for ; Wed, 21 Jun 2017 08:45:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC0722842B for ; Wed, 21 Jun 2017 08:45:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A075F2854A; Wed, 21 Jun 2017 08:45:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8986A2842B for ; Wed, 21 Jun 2017 08:45:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752698AbdFUIpb (ORCPT ); Wed, 21 Jun 2017 04:45:31 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:60398 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752218AbdFUIp1 (ORCPT ); Wed, 21 Jun 2017 04:45:27 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v5L8jMUr004761; Wed, 21 Jun 2017 03:45:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1498034722; bh=HX43QLwb7GXSQNnyUjOfb+qlS5XeVgRUKWqmvD+oC4A=; h=From:To:CC:Subject:Date; b=GAO6uA33AlfrCNDDnM1PRqv4siVGFLtTXPr7ERx1lO/rDwAk574WInJBGlDZvBuyO yw1KqYqyaf2FFSSiIRoEKrV0IugLZZ2wh+v5R2S+RcSrqA73+qv3Y6aZKKjZbJOEdp m46Rogsdzw7yfcIVbn9pXUd7hbTH7z88w6VfEQkY= Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5L8jMtS019478; Wed, 21 Jun 2017 03:45:22 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Wed, 21 Jun 2017 03:45:22 -0500 Received: from a0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5L8jIel011695; Wed, 21 Jun 2017 03:45:19 -0500 From: Lokesh Vutla To: Grygorii Strashko , David Miller CC: Linux netdev Mailing List , Tero Kristo , Sekhar Nori , Linux OMAP Mailing List , Lokesh Vutla , Dave Gerlach Subject: [PATCH] drivers: net: cpsw-common: Fix reading of mac address for am43 SoCs Date: Wed, 21 Jun 2017 14:12:04 +0530 Message-ID: <20170621084204.1512-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP cpsw driver tries to get macid for am43xx SoCs using the compatible ti,am4372. But not all variants of am43x uses this complatible like epos evm uses ti,am438x. So use a generic compatible ti,am43 to get macid for all am43 based platforms. Reviewed-by: Dave Gerlach Signed-off-by: Lokesh Vutla --- drivers/net/ethernet/ti/cpsw-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/cpsw-common.c b/drivers/net/ethernet/ti/cpsw-common.c index 1562ab4151e1..56ba411421f0 100644 --- a/drivers/net/ethernet/ti/cpsw-common.c +++ b/drivers/net/ethernet/ti/cpsw-common.c @@ -90,7 +90,7 @@ int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr) if (of_device_is_compatible(dev->of_node, "ti,dm816-emac")) return cpsw_am33xx_cm_get_macid(dev, 0x30, slave, mac_addr); - if (of_machine_is_compatible("ti,am4372")) + if (of_machine_is_compatible("ti,am43")) return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); if (of_machine_is_compatible("ti,dra7"))