[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c17ce6db-4823-44cb-8fda-6ef62f4768fd@lunn.ch>
Date: Mon, 14 Aug 2023 22:47:09 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Sriranjani P <sriranjani.p@...sung.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
richardcochran@...il.com, alexandre.torgue@...s.st.com,
joabreu@...opsys.com, mcoquelin.stm32@...il.com,
alim.akhtar@...sung.com, linux-fsd@...la.com,
pankaj.dubey@...sung.com, swathi.ks@...sung.com,
ravi.patel@...sung.com, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Chandrasekar R <rcsekar@...sung.com>,
Suresh Siddha <ssiddha@...la.com>
Subject: Re: [PATCH v3 2/4] net: stmmac: dwc-qos: Add FSD EQoS support
> +static const int rx_clock_skew_val[] = {0x2, 0x0};
> +static int dwc_eqos_setup_rxclock(struct platform_device *pdev, int ins_num)
> +{
> + struct device_node *np = pdev->dev.of_node;
> + struct regmap *syscon;
> + unsigned int reg;
> +
> + if (np && of_property_read_bool(np, "fsd-rx-clock-skew")) {
> + syscon = syscon_regmap_lookup_by_phandle_args(np,
> + "fsd-rx-clock-skew",
> + 1, ®);
> + if (IS_ERR(syscon)) {
> + dev_err(&pdev->dev,
> + "couldn't get the rx-clock-skew syscon!\n");
> + return PTR_ERR(syscon);
> + }
> +
> + regmap_write(syscon, reg, rx_clock_skew_val[ins_num]);
Please could you explain what this is doing.
Andrew
Powered by blists - more mailing lists