From patchwork Fri Sep 17 13:26:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12502111 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 197B4C433F5 for ; Fri, 17 Sep 2021 13:26:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 02D2960296 for ; Fri, 17 Sep 2021 13:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243822AbhIQN1w (ORCPT ); Fri, 17 Sep 2021 09:27:52 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:41049 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241419AbhIQN1s (ORCPT ); Fri, 17 Sep 2021 09:27:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1631885187; x=1663421187; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QssFTqsZ5UAlTmqKAKaZZcz9WX/De78bpUot5wsvlI0=; b=kdqCqkn8UdTe/9HIzpaw/fPcltHDHpLsmSGe2t/7t28qRP26v6qprOsY +Zmhx1Bk+P6veJz5Uk/WuyGgON9OwaqJLMFbf1hEyX7TfmSVO/vAdmSQx ZPtJvV/x8Cp0TgmOeRH8vs8Hb0s6DvQ5aPLNhtDtEYu44/Tmv4poVnOR3 RbQ+ZEDTNof2VaKqODI854tcl7zXa8F/uoASKUnW7/HL70eexgTO8AgOq ml84K2Sk3YljbXXo0mxeanFmQfnP9DJ77pHdAN4fznAK+34PnoN65guB8 brk+jaXwrHpA0CGlrjCxZ0+w89NamOGj2TkqDbeZYSwGK2zbvLH9VjWL7 w==; IronPort-SDR: 3R+lmdd7iZ3OoRIT6G0O3tGMmM8OwlrF1F5NxpJQeOTH+XWAVDhMfegpBsQ6insIk5MSnJJEfJ 9tkFEKc5i1h4bK8CY0WefzWua2a3eqjXUOtTTXIcme/ipP/JxWWgjaCi6/BGYhqIXheyLmbtch kz6EVNOj3/+cPwuQWpNn5Zm49ikFLgm7jc/Hzrf2AFNPTaTarSthMGygPi6h92Dk3/vQjpgvYE YzR2Q/USDQ9d+Q3iovpQ+x/oWmwyCJsx5WXfZbgO0Je583azCTLu16WrGTkP0MGFmkKY+vhVWT g7AoaA6BkBNlCktK6HFaUoAr X-IronPort-AV: E=Sophos;i="5.85,301,1624345200"; d="scan'208";a="136363995" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Sep 2021 06:26:27 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 17 Sep 2021 06:26:25 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 17 Sep 2021 06:26:24 -0700 From: Claudiu Beznea To: , , CC: , , Claudiu Beznea Subject: [PATCH v2 4/4] net: macb: enable mii on rgmii for sama7g5 Date: Fri, 17 Sep 2021 16:26:15 +0300 Message-ID: <20210917132615.16183-5-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210917132615.16183-1-claudiu.beznea@microchip.com> References: <20210917132615.16183-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Both MAC IPs available on SAMA7G5 support MII on RGMII feature. Enable these by adding proper capability to proper macb_config objects. Signed-off-by: Claudiu Beznea Acked-by: Nicolas Ferre Reviewed-by: Andrew Lunn --- drivers/net/ethernet/cadence/macb_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index cdf3e35b5b33..e2730b3e1a57 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4597,7 +4597,8 @@ static const struct macb_config zynq_config = { }; static const struct macb_config sama7g5_gem_config = { - .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG, + .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG | + MACB_CAPS_MIIONRGMII, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = macb_init, @@ -4605,7 +4606,8 @@ static const struct macb_config sama7g5_gem_config = { }; static const struct macb_config sama7g5_emac_config = { - .caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | MACB_CAPS_USRIO_HAS_CLKEN, + .caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | + MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = macb_init,