)]}'
{
  "commit": "9cabae6b0351dff7eb634ebcdcabf06a276c1222",
  "tree": "e84489359fd6ce3fbc7fde41a04e9356468d945f",
  "parents": [
    "605dc044c3fef39fe5404d40f2b5569d77916339"
  ],
  "author": {
    "name": "Jon Hunter",
    "email": "jonathanh@nvidia.com",
    "time": "Wed Jul 09 15:24:52 2025 +0100"
  },
  "committer": {
    "name": "David Gibson",
    "email": "david@gibson.dropbear.id.au",
    "time": "Thu Jul 10 19:09:39 2025 +1000"
  },
  "message": "checks: Fix detection of \u0027i2c-bus\u0027 node\n\nIf an I2C controller has a \u0027i2c-bus\u0027 child node, then the function\ncheck_i2c_bus_bridge() does not detect this as expected and warnings\nsuch as the following are observed:\n\n Warning (i2c_bus_bridge): /example-0/i2c@7000c000: \\\n     incorrect #address-cells for I2C bus\n Warning (i2c_bus_bridge): /example-0/i2c@7000c000: \\\n     incorrect #size-cells for I2C bus\n\nThese warnings occur because the \u0027#address-cells\u0027 and \u0027#size-cells\u0027 are\nnot directly present under the I2C controller node but the \u0027i2c-bus\u0027\nchild node. The function check_i2c_bus_bridge() does not detect this\nbecause it is using the parent node\u0027s \u0027basenamelen\u0027 and not the child\nnode\u0027s \u0027basenamelen\u0027 when comparing the child node name with \u0027i2c-bus\u0027.\nThe parent node\u0027s \u0027basenamelen\u0027 is shorter (\u0027i2c\u0027) than \u0027i2c-bus\u0027 and so\nthe strprefixeq() test fails. Fix this by using the child node\n\u0027basenamelen\u0027 when comparing the child node name.\n\nFixes: 53a1bd546905 (\"checks: add I2C bus checks\")\nSigned-off-by: Jon Hunter \u003cjonathanh@nvidia.com\u003e\nMessage-ID: \u003c20250709142452.249492-1-jonathanh@nvidia.com\u003e\nSigned-off-by: David Gibson \u003cdavid@gibson.dropbear.id.au\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "123f2eb425f4a2f8ac22bfe10a842bf08e296ba1",
      "old_mode": 33188,
      "old_path": "checks.c",
      "new_id": "7e3fed5005b310a69701e5a235f7afdd98aa6f86",
      "new_mode": 33188,
      "new_path": "checks.c"
    }
  ]
}
