From ba0c2cf4ba3e77bf0823293d6d2f85a372d7ee21 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Sat, 27 May 2023 15:53:53 -0700 Subject: [PATCH] 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 Tested-by: Yiwei Zhang Reviewed-by: Amit Pundir Commit-Queue: Yiwei Zhang --- virtgpu_cross_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtgpu_cross_domain.c b/virtgpu_cross_domain.c index f1770d6..dc3fbc1 100644 --- a/virtgpu_cross_domain.c +++ b/virtgpu_cross_domain.c @@ -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