[RFC PATCH 3/6] pci: Remove priv_flags and use dev->error_state for "disconnected" status

2018-08-16 Thread Benjamin Herrenschmidt
This already represents whether a device is accessible or not, creating a new flag isn't particularly helpful. dev->error_state being an int, assigning it doesn't require an atomic operation per-se. The existing atomic bitop only protects the field, not anything else anyway. Signed-off-by:

[RFC PATCH 3/6] pci: Remove priv_flags and use dev->error_state for "disconnected" status

2018-08-16 Thread Benjamin Herrenschmidt
This already represents whether a device is accessible or not, creating a new flag isn't particularly helpful. dev->error_state being an int, assigning it doesn't require an atomic operation per-se. The existing atomic bitop only protects the field, not anything else anyway. Signed-off-by: