From patchwork Wed Sep 27 12:29:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 145585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2886334vqu; Wed, 27 Sep 2023 13:34:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwXlc091TAcp+x/a7RnbhPdJwXX8ply7I1d50G47NW6prkxBOTEHawODFDsuhlGh2YBoUa X-Received: by 2002:a17:90a:ff18:b0:276:4d97:7cbb with SMTP id ce24-20020a17090aff1800b002764d977cbbmr2799497pjb.17.1695846840604; Wed, 27 Sep 2023 13:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695846840; cv=none; d=google.com; s=arc-20160816; b=R5CLl583XfsFqZttGlmDeOerG8O5yfdLKfxflF3tipPr4AVE4vxTFPMowNRgC/Ml16 EE4tV9AZMcO+TCRrXwr8jLwqmdl3KqMwBdDbDsXquVWh7Gzi94kCTbRUMAanLS1+ABRe MKUvuj5Xg2ZM33kQL2Tjbtr6SYr420A7d0wOsM+ls0q2CJgrJur/2dK6UoVXUadfxJWy 9jm2Jr7w88gPsbEVZckjEHNglv30LXctzZgr27MPBS20GbwYCNJ0p0bgXdq/3DuWdjFC jzpRbNrbRVWkRWhxUYf8SjMNJkq2BhcIWkfVvKu5lIlDsxkwPzRl6u90M/9l+PxhjxwY XM8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MqrlAO5sztrD1NimOBbmkaeWGCBRbknzZR3MhxUtqJk=; fh=OVM4Ga36EHxO4hBIyg7kjySANMRfwq7MXZdHmKfuSU4=; b=ovPGCYcnmq7EnfQxNyHViOrtDeokgQqeyefug9uUqvmtmgxAyHKtXupFyzOMTFOlI7 uv6K/qrhRGg2hZWp6wM8aHxq1o9S1fJ+UGLHHIj9WVYT7M1fHXCJndvVSeqM+LXFiIVG zSJN1KbjCzvi9lxd3BbXtCQfXLo3Z1d+GhYk/9va88sIBL0vvOy5vOOAnU2V6RGcCVmR 7GcamRWEhlXtQzWf6XQ2e5oTgPXIAOMJJg3OCwIxcekMMXwqS7uGhwKsX3u6v2DE8OAX DwXq7cUX3/mWz6kWKTqw7E8X/gWBnveOTxRfj0iILuTnMKJ8NbO1z5MwJYRCsyJR3kXo CDCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=naup93iu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o15-20020a17090a4e8f00b002774aec6805si9971446pjh.68.2023.09.27.13.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=naup93iu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E1147821ADB4; Wed, 27 Sep 2023 05:29:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjI0M3j (ORCPT + 21 others); Wed, 27 Sep 2023 08:29:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjI0M3h (ORCPT ); Wed, 27 Sep 2023 08:29:37 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9609E193; Wed, 27 Sep 2023 05:29:35 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-406402933edso24203735e9.2; Wed, 27 Sep 2023 05:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695817774; x=1696422574; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MqrlAO5sztrD1NimOBbmkaeWGCBRbknzZR3MhxUtqJk=; b=naup93iuZZIHBNrg7x06YTu29vDlozLnf14gcX4NkFnP6km2GgY81WxeMEtmhst4r4 pXuXP5UsTUccFlTLz/3epMlW9SKXP711dtH7vsqqO4DE2HMfn40P5M8tSfLVfoTYjDtd Ra9cAQ3K3SITOUIk0S0ssbYv9Klv1NvLXP8tQq9RRUEX0QzPr0ZCVRIKigu3OJJqDcUR IrTbxI0Q6wEzatIL5UdCIo6GQiWUKeoGYIsjb7VmLQOmivsF2oR5aTspp5Uq2W+Aq3IO DfWMVnDTGHoNOc8uqjbhNlm5aRmz/FTM4J3z5Y3Z2YvCWbDCcuMWudGChxsLsD2i/zN9 An5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695817774; x=1696422574; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MqrlAO5sztrD1NimOBbmkaeWGCBRbknzZR3MhxUtqJk=; b=hKJJDlEhKrkL1CRTAcLW2N/P8UBEoB9JHpo2DQeJS/gQxofnwyHjaGF9Pe071uyHw1 NRX9WUVFy3D46ZZfp7z1Efw+G5Q6SXFVU9GXTux9bFyTao41jHGplag/ceVvfr2Me1g7 oa20BYvfJuJeVoSYaC470OQaxkz0qbJyMquosi/C2gb5nA66yQDhuyujahyZjUbQNT/q Ew2JRSmXhk36jqS5sKobKKTqfWCRtAvi2zGFN94d6HPw4v9/Ju9iwe6GUrO9IZxEaYUj lg355CAvqDnndUXZCFJeMgxbKTXFur3LRN0Xsx9CyYWmPwkkHTO2qPAgUzUoMRD5mk+f ESig== X-Gm-Message-State: AOJu0Yw2cpzrqIBF94V8mn2QEhAikQsmPQHx87MlUcTcGMyiq7I3L4fb nbRpYzUDbk+5UEOkTTkLMfI= X-Received: by 2002:a5d:5348:0:b0:315:8a13:ef17 with SMTP id t8-20020a5d5348000000b003158a13ef17mr1430106wrv.65.1695817773679; Wed, 27 Sep 2023 05:29:33 -0700 (PDT) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id 8-20020a05600c230800b004042dbb8925sm4521218wmo.38.2023.09.27.05.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 05:29:33 -0700 (PDT) From: Christian Marangi To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Simon Horman , Andrew Halaney , Bartosz Golaszewski , "Russell King (Oracle)" , Shenwei Wang , Jochen Henneberg , Giuseppe Cavallaro , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Christian Marangi Subject: [net-next PATCH 1/2] dt-bindings: net: snps,dwmac: DMA Arbitration scheme Date: Wed, 27 Sep 2023 14:29:27 +0200 Message-Id: <20230927122928.22033-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 05:29:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778204022495229053 X-GMAIL-MSGID: 1778224296597640333 Document new binding snps,arbit to program the DMA to use Arbitration scheme. (Rx has priority over Tx) Signed-off-by: Christian Marangi --- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 5c2769dc689a..4499f221c29b 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -442,6 +442,12 @@ properties: description: Use Address-Aligned Beats + snps,arbit: + $ref: /schemas/types.yaml#/definitions/flag + description: + Program the DMA to use Arbitration scheme. + (Rx has priority over Tx) + snps,fixed-burst: $ref: /schemas/types.yaml#/definitions/flag description: From patchwork Wed Sep 27 12:29:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 145577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2880346vqu; Wed, 27 Sep 2023 13:21:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFjc49TY2UuS9x2uSXcEau3Fbdp3/yZby8Mlo6cqyYXxOW6ELV1N4/b0IiRPgfBpXf9j3s X-Received: by 2002:a25:d492:0:b0:d85:4c83:5d81 with SMTP id m140-20020a25d492000000b00d854c835d81mr3236527ybf.48.1695846064699; Wed, 27 Sep 2023 13:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695846064; cv=none; d=google.com; s=arc-20160816; b=ZptpCDvf2J9UXsXWOwyLVzEcUWVadBUKks5gR/X+djBjRDcr+K8zApyFeK9BYFve0v TgenRK1EdcomkDKICwAEuxkDAiRrdzztrndgKqWF0Ik8zYVHUmpLOQ58hWlam0nDg6aM nzrob7BB7fLGo/GigDTdMdxckDPaQp4KK0YV6KmpanU7phGm0EL8IOB0x+hp+sFWf/4t QMkB/VVU61eg/dNAiHf1BGXqgoJ/z1lZvlEF3Zc0I85R5wRu4MJLXnpRDY5pQz0rfHeO bNZAPm0JRcwQ9B0i4dfRcdux8/pAVM1oz04U6bQFo/zZk3PLM3aFTfMsTneba4F6K2Vo Rt9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=djhGgzEttuBwypRoTD2e7qd8nkSbwt4HcuoP4naClbc=; fh=OVM4Ga36EHxO4hBIyg7kjySANMRfwq7MXZdHmKfuSU4=; b=CgkWjGUIe/hKvdYlgnZVdoKV5bH6hdEr82l5ffwXvFIO+ABiFb5omrZdPI5P/K1KLt FmlbTklWQEprnmK2Yk1a3IIelW74RGBUYB+5IZ5A3A7aHsbVK9GQk6ZrW4XbdENZ6AYN N+DeRnjE82KrzgN0iLumjPfWlgrFj6fjV6VeXcrwufeOfkJfUI7w0XVW9VggC2Ks4yPw eXB5WzDxj9G4tGSaalrPY2KcIFQxmx8DfhIsqGTWcU2wHCm14tmcpM73KoZjkQmfpv9B CHDglNk9TOqWcu8/IEpyIc6v1EKlinmCU2xgBv5ibNsoEFF8sA+J8K9ySdiEo6d20LbG dD7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T1vxRkgo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 184-20020a6302c1000000b00565322ef4f1si17023263pgc.348.2023.09.27.13.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:21:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T1vxRkgo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9059F830D363; Wed, 27 Sep 2023 05:29:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbjI0M3l (ORCPT + 21 others); Wed, 27 Sep 2023 08:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjI0M3j (ORCPT ); Wed, 27 Sep 2023 08:29:39 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 022E3192; Wed, 27 Sep 2023 05:29:37 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40566f8a093so78685595e9.3; Wed, 27 Sep 2023 05:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695817775; x=1696422575; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=djhGgzEttuBwypRoTD2e7qd8nkSbwt4HcuoP4naClbc=; b=T1vxRkgobVuEmy6Gz7IHeQuRs49WWLYWxWBFjZ7+8feXTId1NtFjvEJjUltQdfwpGk dHcmsIyG1aGPmIEOk+QbmX++XFLXitPspNtBjTqC/l/PfoPqB7vMv+2Etn8XU6JoC9qN Uv/cFARJHXGIGF+288ja9sZuisnEeeWtOAX1ZXj9Li/USj9QiBtkMzVVwgDWgu5dUqAs NMQlxRR+p29pVCCFdpzCFF3eBuhWzE05XdFgZyyR/ki7h8Q0ct8qTj5ehCVTXRt3N1dZ SAIOQ3mB+HoWNRt+hs1eydJ7FaxD11dQzm+nScHqSMs50LKgBpioVmJ3P97Pp516kf8S rQrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695817775; x=1696422575; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=djhGgzEttuBwypRoTD2e7qd8nkSbwt4HcuoP4naClbc=; b=BlkW/8/leXqul+xuyC2TwclDDvr8RWUjudEWSKqyn74ewP/Ajld6rtxu9WSpO6NTiH QOyk9qjtFjddSmo8AkqGidqEqcmrYt7clVc/7Dgy+6odVvlrIc9+KNWLkvs+ycvg7zOo yjXWLpNH8ozm93D9gxE+SV53glYXoFY29EI/wN0GZ8OreZCnPmVR40b+J7dnz2dojy7m cBrxgK7QtfJjpdpZX7YYXMA+j93e4fqm/O1DwI1VYdHj1oAQ89zfWe3//mRJLbieo2K5 JEhH69sazCAN8UMcOF7ctbIK2/cxxKoFoVyz/UPip9PzFXcgwjHr3XK9L7ocY6IPa6so n/xw== X-Gm-Message-State: AOJu0Yx3i09AehFZCvDRAPH2GKXZjKvuvgj7GKQS/ERAnB1zLRFza9df XelXHfkDxxnO484qq6dTXHk= X-Received: by 2002:a05:6000:1188:b0:31a:d4e4:4f63 with SMTP id g8-20020a056000118800b0031ad4e44f63mr1488621wrx.18.1695817775087; Wed, 27 Sep 2023 05:29:35 -0700 (PDT) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id 8-20020a05600c230800b004042dbb8925sm4521218wmo.38.2023.09.27.05.29.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 05:29:34 -0700 (PDT) From: Christian Marangi To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Simon Horman , Andrew Halaney , Bartosz Golaszewski , "Russell King (Oracle)" , Shenwei Wang , Jochen Henneberg , Giuseppe Cavallaro , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Christian Marangi Subject: [net-next PATCH 2/2] net: stmmac: add support for DMA Arbitration Scheme Date: Wed, 27 Sep 2023 14:29:28 +0200 Message-Id: <20230927122928.22033-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230927122928.22033-1-ansuelsmth@gmail.com> References: <20230927122928.22033-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 05:29:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778223483551605514 X-GMAIL-MSGID: 1778223483551605514 Add support for DMA Arbitration Scheme tune up to program the DMA to put priority on Rx instead of applying Round-Robin logic. This special DMA bus mode was defined in the header from a long time but was never actually implemented. This option is used on the original setup on the ipq806x-gmac driver based on DWMAC1000. Signed-off-by: Christian Marangi --- drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 3 +++ drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 1 + include/linux/stmmac.h | 1 + 3 files changed, 5 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c index daf79cdbd3ec..14eb7e8d61ea 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c @@ -104,6 +104,9 @@ static void dwmac1000_dma_init(void __iomem *ioaddr, if (dma_cfg->aal) value |= DMA_BUS_MODE_AAL; + if (dma_cfg->arbit) + value |= DMA_BUS_MODE_DA; + writel(value, ioaddr + DMA_BUS_MODE); /* Mask interrupts by writing to CSR7 */ diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 843bd8804bfa..f5791b03b320 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -576,6 +576,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac) dma_cfg->pblx8 = !of_property_read_bool(np, "snps,no-pbl-x8"); dma_cfg->aal = of_property_read_bool(np, "snps,aal"); + dma_cfg->arbit = of_property_read_bool(np, "snps,arbit"); dma_cfg->fixed_burst = of_property_read_bool(np, "snps,fixed-burst"); dma_cfg->mixed_burst = of_property_read_bool(np, "snps,mixed-burst"); diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index c0079a7574ae..04a61f1eba90 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -97,6 +97,7 @@ struct stmmac_dma_cfg { int fixed_burst; int mixed_burst; bool aal; + bool arbit; bool eame; bool multi_msi_en; bool dche;