From patchwork Sun Jul 14 11:32:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3300 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 087DF4130C for ; Sun, 14 Jul 2024 13:33:29 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2ee87d500casf34695761fa.3 for ; Sun, 14 Jul 2024 04:33:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720956808; cv=pass; d=google.com; s=arc-20160816; b=oCYfcTGtRmDsOthzsu7OR7idb8Q0elG1Tx3mdWvZBWEz1E1KUIy1mOG/Q+0KsfiX0k mPELdVZ07pURdqBKQ5p86MUrkEnPetr3wXq/vHRRjEKzZs1jbxm+FHboLf1N2oLaxqJN OJZhXW40oqu+4chmDlmR/PGW3kIZOMUleoBz6GNe1wJXK1ItUFfLT8TPgVm0ikJ9j48i vYgfDWSHxTQdHJ6FSWWe3yM+wsbRrhQIN0+jHQIq/XYpj9b9Gmjj96l1HnlQ+XOD6oiC 0/vp5/Sv/CzHEu+tZuhInVPW4sSPpRF9trYy9chZ1S9FOJmRNls3hjbIcgVgNxHewlx6 OWLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ycPE2mlbSQubwQNcEx96JIiJkd7INBcE7JRwNsNWzt0=; fh=NeUn9DKVWzK63oggYHBkrVcUkFTNlwCQbyWRSCAqr+k=; b=L0Ek0OdJuh+TBJCwJamX6u4mvVzAfWYqJWAMRW0TDYxdAc/TAW+KyXsUaf7GAS5k99 rB7Lkg0UGcJ+iW2Cel0Kr6WfvQ7+hBiwFgMbuQmyNhiwozAlAI3Tm270MjZ9VAOkjZwa CNpUk7zldZN/FxHZ/Fe7Y0h3pgO2QatNTvTcVTms1oyRrt6qraRe30a0Afr3DkGzxlSX GM37/BubN69jzYSwe4RVTEkcQaJ5381cAOcpRlsJ66jz4v7xMNJEU1uweXrMKuW8JcQl AHKO+GicyY23dweLZGbhlqZNpsWwGtVQoWcnC74Wd/itCgtn821CZMdYzA6GmzSv049o RByA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TKQh2F7f; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1720956808; x=1721561608; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ycPE2mlbSQubwQNcEx96JIiJkd7INBcE7JRwNsNWzt0=; b=hDKEAGgnNLVAVouU5V8WBQ7FkPq+e2+ja/UpDWt1Og8rGbN3dZ+hN7Is7ddse8Cfy8 mD5Xb5M9gC0WO0jZbWnjfktLrDsho7L9+wJOP/UJKQIy7NCO6Hf/5TOPQ0tqLwgIIsRi OGWgYT2QoKpbTgFgLio/Zw53IhxxqxAP4jAhk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720956808; x=1721561608; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ycPE2mlbSQubwQNcEx96JIiJkd7INBcE7JRwNsNWzt0=; b=NSnQDbQzy4Lu04GhzTyhqHx/Han2Qx2oVlzQHNZlX6m4EvDV3+H5fCU+NQtKZnwtrR uGd/8Kgd0ni1vpcl/k/xz+p4h718FA73wPOwmbW9lKvJliGAE0yi7TIB7ShWAklZSc/5 VNvhd5yp05XpX99TOLM4A0lqaFlTJ402hohuzlnSSz0qcch6BPF6MvXExQX8u+YZo1wJ 3KnQwyJsrBO2Mzoz44i93dZiiKlez7DZWbkzufad4gdP91LGkxsvVAKBXObpBRrVtLJZ 25tuj0vUWGrC4WK2Ribu+Qa9IDgvk/BWH8kGs4QhAMDNK2NVU35p8/ucLV+ULP4h3Qg7 mXnQ== X-Forwarded-Encrypted: i=2; AJvYcCUWnfc+Tr8IbWzHVxgQS3bF7XcD/Ttrb7qPqCOFTITD3m3LSBoEwZnt28qsi8gdomB5x44S8VDK1DH3nOK+xfOa06rXGfQlmY51Id7aG71X/Y8CGxUoJCJOi7LZRA== X-Gm-Message-State: AOJu0YxhqoaHKRH6rILco0jFQ+/K4MoVOKK+7Eg1lbqmdidKNmECa+Dm ar2Lj+NAItOBvVLwe0ni16sylhS3/4antbqHLS32h1AS33Y5TRxuBk+Lvb8+O2wqDw== X-Google-Smtp-Source: AGHT+IE6bOmSUbbEA/20EmqXOaGsbQJ14z0zCUL4Szsxd/XBfNJi1Imw+BfEZU0/AFl4hyBrZaijqQ== X-Received: by 2002:a05:651c:210c:b0:2eb:f31e:9e7b with SMTP id 38308e7fff4ca-2eeb30e5129mr127011431fa.14.1720956808469; Sun, 14 Jul 2024 04:33:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:651c:2ca:b0:2ec:5d3e:a6d2 with SMTP id 38308e7fff4ca-2eec93c1c60ls17836611fa.2.-pod-prod-09-eu; Sun, 14 Jul 2024 04:33:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUlOneIRwbtZXUjPd1GRWI7gfIN9Yeq4+LbA43C5j4d7p8bfK/Qjk8532clMxebiQeLTep4gXcpRARpjAmRTEMo/DmvVSpp0IYyEmptkyIhQvAw X-Received: by 2002:a05:6512:4006:b0:52c:e112:4b0c with SMTP id 2adb3069b0e04-52eb998e476mr12105566e87.9.1720956806411; Sun, 14 Jul 2024 04:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720956806; cv=none; d=google.com; s=arc-20160816; b=RQaolQ3Wds0F6gVUcX87H530oW89Hwl8DP0HqJsjRhqaGp5p1/OLPRU4kspvidzVDu oFmTP57rAm8L8BKhoQDF09kq1aleeDV3+35h7KFO8SDWVRJ6otESkMdv3GHUyCnot9Ln altTM+6MjzoxVsJlbEpUNMMdUvupWQHW284Rra+cFSkrgvxtTN0Lcx5cmsspESJXtDMH Pa2vcsb/rNqZLGGbucaT3u2a+1UrvGwgzd4dRHl3DFEpIBGyGx10BiZa3pT3MCLXf1uH Pw6ioYaI+vWZ/PB/WMCuJ+8hLyZKD8T7IXiOBnjk/72bne5vFchxjmK7V31k5RSpgxTq qnpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=flYtP2nYRzA7N3pgINbKAREeIoA3rNIfIC69iQgAyww=; fh=f577Itfmu/9K05xBhKcTfwCgaSaiD1SZ0Aez2MLxpmU=; b=Ibm8OUg/pDMCF4Pthx3OCUXH5tTTZ1UtnCeSmWIBaPrFgrO6DaDRrabri0ItLS8g+k HPpa68IBnohythNrSEOyZaEJ62wzc/+Ngn4uN08Fs0vB92VvGzRC5XiguD2bq0GSxQ61 7TUXjzEoITEyAU3KwVZres1Rwhee/Am+1fknROwOOx7pTlU7PmktwO/nOEjJYfbfVwM0 EyG+pSWwxB88Emi7Gy45njpmCL8kp7gwxtwdnlqLXyTZc2uVNdetIw/HuMDRdLrmjKTB 3ZaTxKjZCCs7/4b6c5nzHnGQiCl+mnBJh9sJaNNwzyAjmbNtzuEHG1eHsVSewxBymHuD z2tg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TKQh2F7f; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a79bc7ff35bsor37624866b.10.2024.07.14.04.33.26 for (Google Transport Security); Sun, 14 Jul 2024 04:33:26 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXJ33AjcGwVCaQsxxaYVEGQN3aupWS6fnpPrWFok/yGDQVPoVK2l+D8Kv28ltSabtn6RvxfKwiWK7jUW+ExK9NVeRHtuS9JNAwf4jHH8n5bgYnv X-Received: by 2002:a05:6402:c8b:b0:57d:10c7:aa4b with SMTP id 4fb4d7f45d1cf-594bc7c835emr9031102a12.30.1720956805993; Sun, 14 Jul 2024 04:33:25 -0700 (PDT) Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-59b25528dc1sm1929469a12.52.2024.07.14.04.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 04:33:25 -0700 (PDT) From: Michael Trimarchi To: Michael Trimarchi Cc: Dario Binacchi , Patrick Barsanti , linux-amarula@amarulasolutions.com Subject: [PATCH 18/25] video: Enable DM_UC_FLAG_SEQ_ALIAS for display and bridge Date: Sun, 14 Jul 2024 13:32:55 +0200 Message-ID: <20240714113302.133399-18-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714113302.133399-1-michael@amarulasolutions.com> References: <20240714113302.133399-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TKQh2F7f; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , To support multiple display or bridge devices, enable the flag, so we can assign the req seq via DTB alias Signed-off-by: Ye Li Signed-off-by: Michael Trimarchi --- drivers/video/bridge/video-bridge-uclass.c | 1 + drivers/video/display-uclass.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index 7432107238..5e2b76851f 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -145,6 +145,7 @@ int video_bridge_set_active(struct udevice *dev, bool active) UCLASS_DRIVER(video_bridge) = { .id = UCLASS_VIDEO_BRIDGE, .name = "video_bridge", + .flags = DM_UC_FLAG_SEQ_ALIAS, .per_device_auto = sizeof(struct video_bridge_priv), .pre_probe = video_bridge_pre_probe, }; diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c index 61a73e1bc2..07f05be7dd 100644 --- a/drivers/video/display-uclass.c +++ b/drivers/video/display-uclass.c @@ -80,5 +80,6 @@ bool display_in_use(struct udevice *dev) UCLASS_DRIVER(display) = { .id = UCLASS_DISPLAY, .name = "display", + .flags = DM_UC_FLAG_SEQ_ALIAS, .per_device_plat_auto = sizeof(struct display_plat), };