device_util: Handle domain device in dev_get_domain
commit101685de0c1a61f8940d007abcacfa5cc4291791
authorShuo Liu <shuo.liu@intel.com>
Wed, 17 Apr 2024 16:44:42 +0000 (18 00:44 +0800)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 22 Apr 2024 13:26:02 +0000 (22 13:26 +0000)
tree80e59d47d058c9d7bff5e7343070213c299cfdf8
parent48097a17f151bf3843bd921391125ba8de56ac65
device_util: Handle domain device in dev_get_domain

When the input device pointer pointing to a domain device,
dev_get_domain returns the input device itself.

TEST=Build and boot on intel/archercity CRB

Change-Id: I3a278a8f573de95406ee256fba17767def4ad75d
Signed-off-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81957
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
src/device/device_util.c
src/soc/intel/xeon_sp/chip_common.c