[PATCH 6.6 259/267] serial: port: Introduce a common helper to read properties