From patchwork Fri Dec 2 16:17:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13062917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CDFCEC4321E for ; Fri, 2 Dec 2022 16:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Yi1vMlyXF2sljC6Gd0bIxyjA2TlMgKOdXDT0Q+3AdvI=; b=VBVcQPAe9q6r8W oaeOgXzEAqgQfJe9daEkQFzTTqmQGYdS6MjaWZVOV4Nj8zzhBtWADY4UAzNk9LofoG11+jANshKOa S7pnOmW3JKNUCsh1WsoEiVwLfptC98ZE16jUSRcc2hv4sXh1x1+kSVycsKsMx30j7l9bKKkZveG/5 Y0OkNC2uVd2gOsQHO5X48pgWC0K3F8S7xhVsLEv8nUKFY5zj5I8LvWWHkey0I2erAlOs7rcaGJGBx 3jlMLpHqVI19BbrSZweeoLNXnfaF9F8GCk6Iy1K600ne9ryrarnhf9s7JUZvrcLnFUBE/BngulL/G 8LN61lotycEoC1c/jr4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p18tE-00HWhE-3Y; Fri, 02 Dec 2022 16:27:52 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p18t1-00HWZW-Ct for linux-arm-kernel@lists.infradead.org; Fri, 02 Dec 2022 16:27:40 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C95FEB821E8; Fri, 2 Dec 2022 16:27:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49E34C433B5; Fri, 2 Dec 2022 16:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669998456; bh=kZpD9Zd8fK5FsBNX8yWTE04dqx5btwD+2Ef6ipOw9BU=; h=From:To:Cc:Subject:Date:From; b=Rm0yQzBdKVK1FBZNHoIlyZG39wuLaY4SGohEy613Qrb9ahp8keVOgCj/k2xJxhYkS MKcrfYV+i7fCxBF+ez0fPKXH/mE8UAtn4Uj6GgdleLLwf5onAwtGru5dZz0ZQNYM5U NUM7hC9Qf76HUOqtV3AeG0wE5IzOye3kMgR5CIaPf6sBQUCHkR2yduwkCzJUVLzMZN S73vEeRGZveehiko234vPUyNWKsUgZcSVu7W9WfgqwP/gGIQP4O4y26OabDBvvfvVK q6at7Gk5LYxvwT6JGOn1EHElynaez0C4U8T3dX0mZMkPAKOKXbnZou/icapxATcr2u CD3pGvrDTPbDA== From: Jisheng Zhang To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: stmmac: fix "snps,axi-config" node property parsing Date: Sat, 3 Dec 2022 00:17:39 +0800 Message-Id: <20221202161739.2203-1-jszhang@kernel.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_082739_612740_99CF25CC X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In dt-binding snps,dwmac.yaml, some properties under "snps,axi-config" node are named without "axi_" prefix, but the driver expects the prefix. Since the dt-binding has been there for a long time, we'd better make driver match the binding for compatibility. Fixes: afea03656add ("stmmac: rework DMA bus setting and introduce new platform AXI structure") Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 50f6b4a14be4..eb6d9cd8e93f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -108,10 +108,10 @@ static struct stmmac_axi *stmmac_axi_setup(struct platform_device *pdev) axi->axi_lpi_en = of_property_read_bool(np, "snps,lpi_en"); axi->axi_xit_frm = of_property_read_bool(np, "snps,xit_frm"); - axi->axi_kbbe = of_property_read_bool(np, "snps,axi_kbbe"); - axi->axi_fb = of_property_read_bool(np, "snps,axi_fb"); - axi->axi_mb = of_property_read_bool(np, "snps,axi_mb"); - axi->axi_rb = of_property_read_bool(np, "snps,axi_rb"); + axi->axi_kbbe = of_property_read_bool(np, "snps,kbbe"); + axi->axi_fb = of_property_read_bool(np, "snps,fb"); + axi->axi_mb = of_property_read_bool(np, "snps,mb"); + axi->axi_rb = of_property_read_bool(np, "snps,rb"); if (of_property_read_u32(np, "snps,wr_osr_lmt", &axi->axi_wr_osr_lmt)) axi->axi_wr_osr_lmt = 1;