)]}'
{
  "commit": "94793a56b3df0ff2b8c5680f926c19effd8b9ccc",
  "tree": "0346cda8f1689f47463754ac115864868a69a058",
  "parents": [
    "2610937d7e95d010e7301277408457cd385a9288"
  ],
  "author": {
    "name": "Vladimir Oltean",
    "email": "vladimir.oltean@nxp.com",
    "time": "Tue Nov 15 03:18:44 2022 +0200"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Thu Nov 17 21:16:41 2022 -0800"
  },
  "message": "net: dsa: provide a second modalias to tag proto drivers based on their name\n\nCurrently, tagging protocol drivers have a modalias of\n\"dsa_tag:id-\u003cnumber\u003e\", where the number is one of DSA_TAG_PROTO_*_VALUE.\n\nThis modalias makes it possible for the request_module() call in\ndsa_tag_driver_get() to work, given the input it has - an integer\nreturned by ds-\u003eops-\u003eget_tag_protocol().\n\nIt is also possible to change tagging protocols at (pseudo-)runtime, via\nsysfs or via device tree, and this works via the name string of the\ntagging protocol rather than via its id (DSA_TAG_PROTO_*_VALUE).\n\nIn the latter case, there is no request_module() call, because there is\nno association that the DSA core has between the string name and the ID,\nto construct the modalias. The module is simply assumed to have been\ninserted. This is actually slightly problematic when the tagging\nprotocol change should take place at probe time, since it\u0027s expected\nthat the dependency module should get autoloaded.\n\nFor this purpose, let\u0027s introduce a second modalias, so that the DSA\ncore can call request_module() by name. There is no reason to make the\nmodalias by name optional, so just modify the MODULE_ALIAS_DSA_TAG_DRIVER()\nmacro to take both the ID and the name as arguments, and generate two\nmodaliases behind the scenes.\n\nSuggested-by: Michael Walle \u003cmichael@walle.cc\u003e\nSigned-off-by: Vladimir Oltean \u003cvladimir.oltean@nxp.com\u003e\nTested-by: Michael Walle \u003cmichael@walle.cc\u003e # on kontron-sl28 w/ ocelot_8021q\nTested-by: Michael Walle \u003cmichael@walle.cc\u003e\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "383d224c8143afb03d9b3080ba49b148210bbf7e",
      "old_mode": 33188,
      "old_path": "net/dsa/dsa_priv.h",
      "new_id": "020386ff0db980d77b68081932d8d5fafc70886d",
      "new_mode": 33188,
      "new_path": "net/dsa/dsa_priv.h"
    },
    {
      "type": "modify",
      "old_id": "8a02ac44282fe20d7af8c4428a3203137e98db89",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_ar9331.c",
      "new_id": "bfa161a4f5025905dfc15408e56de2d2a50aeaff",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_ar9331.c"
    },
    {
      "type": "modify",
      "old_id": "16889ea3e0a79248d66cb760d018472a4dd1eaad",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_brcm.c",
      "new_id": "9e7477ed70f17e075e001c547b22786f37ad3166",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_brcm.c"
    },
    {
      "type": "modify",
      "old_id": "e4b6e3f2a3db1b1d6955efecc91357bb2b16c55a",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_dsa.c",
      "new_id": "9fe77f5cc759aeeb98245c352593ba110df1aeec",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_dsa.c"
    },
    {
      "type": "modify",
      "old_id": "df7140984da3ac40017734f587976306e9e7cf49",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_gswip.c",
      "new_id": "020050dff3e4933fa2ff7befff41796499c1a8fe",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_gswip.c"
    },
    {
      "type": "modify",
      "old_id": "846588c0070a5e2a43afee4a1bb553203643d51f",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_hellcreek.c",
      "new_id": "03fd5f2877c81cbe41d9544bda8bd1c2b7615be4",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_hellcreek.c"
    },
    {
      "type": "modify",
      "old_id": "38fa19c1e2d5e6c4c9bf6811716e1b27768efc1d",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_ksz.c",
      "new_id": "37db5156f9a36b1244eb49afb1c02bfa24d7f8c4",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_ksz.c"
    },
    {
      "type": "modify",
      "old_id": "98d7d7120bab2f944d60640ae118e07e8cc8ce99",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_lan9303.c",
      "new_id": "4118292ed218b275186b87827dd50bd8598b41fc",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_lan9303.c"
    },
    {
      "type": "modify",
      "old_id": "415d8ece242aff5303a43f08ba02269de2aa8b8e",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_mtk.c",
      "new_id": "ba37495ab5f4e7cb557d9abf95b14455c73b3e73",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_mtk.c"
    },
    {
      "type": "modify",
      "old_id": "0d81f172b7a6e6449ac4a4559826d0694e617fe0",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_ocelot.c",
      "new_id": "8cc31ab47e282060da00d9329c6107c8e6849cc8",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_ocelot.c"
    },
    {
      "type": "modify",
      "old_id": "37ccf00404ea00996e9428f4f4a720499a17a00c",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_ocelot_8021q.c",
      "new_id": "d1ec68001487e596a5c5baa01468356a76647d7a",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_ocelot_8021q.c"
    },
    {
      "type": "modify",
      "old_id": "57d2e00f1e5dc856f4072147a5529392f53d89bb",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_qca.c",
      "new_id": "73d6e111228d8efb337e02a969027c1732ec71d6",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_qca.c"
    },
    {
      "type": "modify",
      "old_id": "6d928ee3ef7a2fc412a4b0dc16032c10798d3dea",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_rtl4_a.c",
      "new_id": "18b52d77d200c969de57894b5df58f256bb35472",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_rtl4_a.c"
    },
    {
      "type": "modify",
      "old_id": "a593ead7ff26a07bbcfab0fe42e5a37943f44d08",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_rtl8_4.c",
      "new_id": "030a8cf0ad4818a9471bb51f5415db5a37aaaa59",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_rtl8_4.c"
    },
    {
      "type": "modify",
      "old_id": "e2a5ee6ae6884fa66ccaf12f1a22ae2aea9634c0",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_rzn1_a5psw.c",
      "new_id": "b9135069f9fce2ae52079762310d7a9e99e42e4d",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_rzn1_a5psw.c"
    },
    {
      "type": "modify",
      "old_id": "83e4136516b0203b92f8ee6f1f5b044487e3a48b",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_sja1105.c",
      "new_id": "3b6e642a90e9b2277c34ebf05e72d1acb270c6dc",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_sja1105.c"
    },
    {
      "type": "modify",
      "old_id": "5749ba85c2b89ddc225969e454225317cc4a2bda",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_trailer.c",
      "new_id": "8754dfe680f6c51a12fda4a2e7664dc21fe46a66",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_trailer.c"
    },
    {
      "type": "modify",
      "old_id": "ff442b8af636cd3c39ebe6e7547708744cd0416e",
      "old_mode": 33188,
      "old_path": "net/dsa/tag_xrs700x.c",
      "new_id": "dc935dd90f98d3ca7f007b0a0f27c060cc47bae7",
      "new_mode": 33188,
      "new_path": "net/dsa/tag_xrs700x.c"
    }
  ]
}
