virtgpu_cross_domain: fix prop query for mt8183 camera quirk

The latest drv_get_os_option consumes the prop name directly without
lowering or etc. Meanwhile, to use strcmp instead of strncmp, we must
query ro.product.name instead since the .device one has suffix.

BUG=b:269982880

Change-Id: I27543975ec0c2a0bd7700ebd59c4dc5dd5dd2793
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4571850
Reviewed-by: Dawn Han <dawnhan@google.com>
Tested-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Amit Pundir <amit.pundir@linaro.org>
Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org>
This commit is contained in:
Yiwei Zhang 2023-05-27 15:53:53 -07:00 committed by Chromeos LUCI
parent b20510aefc
commit ba0c2cf4ba

View file

@ -346,7 +346,7 @@ static int cross_domain_init(struct driver *drv)
goto free_private;
const char *name;
name = drv_get_os_option("RO_PRODUCT_DEVICE");
name = drv_get_os_option("ro.product.name");
priv->mt8183_camera_quirk_ = name && !strcmp(name, "kukui");
// minigbm bookkeeping