Thread (15 messages) flat view 15 messages, 3 authors, 5d ago

Re: [PATCH net-next v6 1/6] net: dsa: motorcomm: initialize dsa_switch based on chipid

From: Kyle Switch <hidden>
Date: 2026-09-10 02:13:47
Also in: lkml

On 9/10/26 00:18, David Yang wrote:
On Tue, Sep 8, 2026 at 4:36 PM Kyle Switch [off-list ref] wrote:
quoted
+       if (major == YT9215_MAJOR || major == YT9218_MAJOR)
+               mode = YT92XX_MODE_YT921X;
+
+       for (i = 0; i < ARRAY_SIZE(yt92xx_series_table); ++i)
+               if (yt92xx_series_table[i].mode == mode)
+                       return &yt92xx_series_table[i];
Still redundant lookups here.
Ans: will be fixed in next patch.
quoted
-       ds->priv = priv;
ds->priv is gone in the new register.
Ans: will be fixed in next version.
quoted
  static const struct of_device_id yt921x_of_match[] = {
-       { .compatible = "motorcomm,yt9215" },
-       {}
+       {
+               .compatible = "motorcomm,yt9215",
+       },
+       { /* sentinel */ }
Leftovers.
Ans: will be fixed in next version
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help