Re: [PATCH v2 05/18] pnv_phb4.c: check if root port exists in rc_config functions

2022-01-05 Thread Cédric Le Goater
On 1/5/22 22:23, Daniel Henrique Barboza wrote: pnv_phb4_rc_config_read() and pnv_phb4_rc_config_write() are asserting the existence of the root port. The root port is now optional, and there will be cases where a pnv-phb4 device won't have a root port attached. Instead of asserting, check if th

[PATCH v2 05/18] pnv_phb4.c: check if root port exists in rc_config functions

2022-01-05 Thread Daniel Henrique Barboza
pnv_phb4_rc_config_read() and pnv_phb4_rc_config_write() are asserting the existence of the root port. The root port is now optional, and there will be cases where a pnv-phb4 device won't have a root port attached. Instead of asserting, check if the root port exists before read/writing into it. S