Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: jitendra.vegiraju@broadcom.com
To: netdev@vger.kernel.org
Cc: alexandre.torgue@foss.st.com, joabreu@synopsys.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, mcoquelin.stm32@gmail.com,
	jitendra.vegiraju@broadcom.com,
	bcm-kernel-feedback-list@broadcom.com, richardcochran@gmail.com,
	ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org,
	john.fastabend@gmail.com, fancer.lancer@gmail.com,
	rmk+kernel@armlinux.org.uk, ahalaney@redhat.com,
	xiaolei.wang@windriver.com, rohan.g.thomas@intel.com,
	Jianheng.Zhang@synopsys.com, linux-kernel@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org,
	andrew@lunn.ch, linux@armlinux.org.uk, horms@kernel.org,
	florian.fainelli@broadcom.com, quic_abchauha@quicinc.com
Subject: [PATCH net-next v6 1/5] net: stmmac: Add snps_id, dev_id to struct plat_stmmacenet_data
Date: Fri, 18 Oct 2024 13:53:28 -0700	[thread overview]
Message-ID: <20241018205332.525595-2-jitendra.vegiraju@broadcom.com> (raw)
In-Reply-To: <20241018205332.525595-1-jitendra.vegiraju@broadcom.com>

From: Jitendra Vegiraju <jitendra.vegiraju@broadcom.com>

Introduce new variables plat_stmmacenet_data::snps_id,dev_id to allow glue
drivers to specify synopsys ID and device id respectively.
These values take precedence over reading from HW register. This facility
provides a mechansim to use setup function from stmmac core module and yet
override MAC.VERSION CSR if the glue driver chooses to do so.

Signed-off-by: Jitendra Vegiraju <jitendra.vegiraju@broadcom.com>
---
 include/linux/stmmac.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index d79ff252cfdc..4c4965a5a0d0 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -183,6 +183,8 @@ struct dwmac4_addrs {
 #define STMMAC_FLAG_HWTSTAMP_CORRECT_LATENCY	BIT(12)
 
 struct plat_stmmacenet_data {
+	u32 snps_id;
+	u32 dev_id;
 	int bus_id;
 	int phy_addr;
 	/* MAC ----- optional PCS ----- SerDes ----- optional PHY ----- Media
-- 
2.34.1



  reply	other threads:[~2024-10-18 20:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18 20:53 [PATCH net-next v6 0/5] net: stmmac: Add PCI driver support for BCM8958x jitendra.vegiraju
2024-10-18 20:53 ` jitendra.vegiraju [this message]
2024-10-18 20:53 ` [PATCH net-next v6 2/5] net: stmmac: Add basic dw25gmac support in stmmac core jitendra.vegiraju
2024-10-24  1:35   ` Abhishek Chauhan (ABC)
2024-10-24  5:21     ` Abhishek Chauhan (ABC)
2024-10-18 20:53 ` [PATCH net-next v6 3/5] net: stmmac: Integrate dw25gmac into stmmac hwif handling jitendra.vegiraju
2024-10-18 20:53 ` [PATCH net-next v6 4/5] net: stmmac: Add PCI driver support for BCM8958x jitendra.vegiraju
2024-10-18 20:53 ` [PATCH net-next v6 5/5] net: stmmac: Add BCM8958x driver to build system jitendra.vegiraju
2024-10-21 11:05 ` [PATCH net-next v6 0/5] net: stmmac: Add PCI driver support for BCM8958x Serge Semin
2024-10-21 16:01   ` Jitendra Vegiraju
2024-11-05 16:12 ` Jitendra Vegiraju
2025-02-07 18:21   ` Abhishek Chauhan (ABC)
     [not found]     ` <CAMdnO-+HwXf7c=igt2j6VHcki3cYanXpFApZDcEe7DibDz810g@mail.gmail.com>
2025-05-28  0:04       ` Abhishek Chauhan (ABC)
2025-05-28  7:58         ` Russell King (Oracle)
2025-05-29  1:35         ` Yanteng Si
2025-05-29  2:56           ` Jitendra Vegiraju
2025-05-29  5:14             ` Yanteng Si
2025-05-29  5:24               ` Abhishek Chauhan (ABC)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241018205332.525595-2-jitendra.vegiraju@broadcom.com \
    --to=jitendra.vegiraju@broadcom.com \
    --cc=Jianheng.Zhang@synopsys.com \
    --cc=ahalaney@redhat.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@lunn.ch \
    --cc=ast@kernel.org \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fancer.lancer@gmail.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=hawk@kernel.org \
    --cc=horms@kernel.org \
    --cc=joabreu@synopsys.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux@armlinux.org.uk \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=quic_abchauha@quicinc.com \
    --cc=richardcochran@gmail.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=rohan.g.thomas@intel.com \
    --cc=xiaolei.wang@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox