openbmc / entity-manager

Run-time JSON driven system configuration manager
Other
26 stars 48 forks source link

frudevice tries to create duplicated object #27

Closed Yung-sheng closed 1 week ago

Yung-sheng commented 1 year ago

After apply this commit: https://github.com/openbmc/entity-manager/commit/7fc486f5072a492029ac09374f6238bdadce6690

My platform will create duplicated object.

               .----------.     .--------.
.--------.     |   mux-   |-----| dev D1 |
|  root  |--+--|  locked  |     '--------'
'--------'  |  |  mux M1  |--.  .----------.
            |  '----------'  '--| MY FRU |
            |  .--------.       '----------'
            '--| dev D3 |
               '--------'

The root bus is 5, and MY FRU bus number is 50. Can see that same object created under FruDevice

root@test:~# busctl --no-pager tree  xyz.openbmc_project.FruDevice
`-/xyz
  `-/xyz/openbmc_project
    `-/xyz/openbmc_project/FruDevice
      |-/xyz/openbmc_project/FruDevice/MY_FRU
      `-/xyz/openbmc_project/FruDevice/MY_FRU_0

Is this right to create duplicate object?