From patchwork Sun Jul 14 10:53:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3275 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1DAF1412C7 for ; Sun, 14 Jul 2024 12:53:57 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-58c537ae6c9sf2854653a12.2 for ; Sun, 14 Jul 2024 03:53:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720954437; cv=pass; d=google.com; s=arc-20160816; b=hOyoE+WXz2acsIc7sOOs03eJz9lw2GBi3WFUkStfIA/7POMZVgMJDy690bJGtz0Xw2 YiS8S8+g54nbQi9JzJPJ0lxIXgKB5XLsaHHh0jQGezQ6y2G1UjQ4boCOJszhGgF7Osl0 mDSuqPqwEBfcOdsY2uoobmGsUz2g1mYu8a86whneW7nXitYrFghi6hwZ2TKx+6QyLlZz yTWuDG+kPwjZWQZQ3E2f/VUnmzM6DRy0hjXsfHRLBYbLSZbg0TTTExNpwBPzkU0rt7B7 uAM3rEaqTj2wTaXgdCHhRnMIIAHYmkKNb+sQqr1DSHDJkWfOxsPwthr22JyDK+cFuviu yMQw== 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=6Qe8CkIu13g2vKAX12LoG/owkJ11y7mecrm0RUso63o=; b=tlWQCtyQZCUXMmBaOQEdM7oJqDsNlnQ3Lwk2KwQ50Wwc1C17W2lN0NTaPXCrLoo5gk eXBa/gWxGa0iPny6cXN/nD/wW3IE2EIZLV9mGmwYNJexPhWvTT/ZWcLoJmTKorVtJN0v sZtPWBc0N8paakOrcLeQq4YazcfwFTRwBktNNNUwKXGcu+CyB6qMKPb6zutl4wgTbNxy WsXy6ZqlXPsp1HmgL+Mrlc9qecWM5/JIbG+DuOIXg6OFMVUT2+Bxk7lYKAXhG1MEydtd MrMJlE2GTo2uz/9Krww9uXkC6WcGtT0C6dBprmmf/aqgk7Dk45KLIy4vECY9s7v4vau4 xa3w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F58z6wjs; 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=1720954437; x=1721559237; 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=h0BkmedOL5K+8xwboKyExdh0WAsScxg24HoYi9p5Jjb0IXataNpfiNKBzQtmMzwVLU VHq/D3pRGizORnt1pgxt7ycalXTGywHCMrWfQVPkoOSbMs32E/56gIdARFmCl88/S3Lr tFxbzvsU1XA6KD4F0+aUEwGUaX/sVCDUturG0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720954437; x=1721559237; 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=VPzQswiDgMSq66ljeoSq5moMt05HxmwwN13Q7txo+FyoKfUU0EPs+r13sUVG6k1LoV OG8nHlX1x2W5H4FRpDnjwiJqrfiX0IqLlGxKYdf/uGISZv+eUEXD4zBmg7hyQq3QXeO5 H27vNKmQvaft1NE518XYo+l1ns2RRF85z3dvGVw4UEYnD5vYhTy9Evoo1PkqMqRYSsc2 SqUmYNP5NYib+h66shd+wKnYRxy+2zAAoXXjSXO7YGo86AVQ8T6J/CbnN/DPRQfWko9F CYkw2WmdZhyF+BQqx6QYh0Xita9wFuv+TsKjWMFCiOE0YrdEmW3X9AYO4W0bjwFX9BsG yxDg== X-Forwarded-Encrypted: i=2; AJvYcCU6wI9ET4keEYJB+6CkEa88mZnwLdNy4w6Sgo7Y/xgj/NZqviXsDPCS5l/SgaPO+AQ3XHeDV57mnUWjSwMkjhoJk1e8XDHYlNn0N26KRr+xbx8A+zP5f8yekjIRMw== X-Gm-Message-State: AOJu0Yz0cgnX6pNd6dMeKdCC+iT7P1b8idhRs+xlDg/RqTVzVw5TMoaH aW6jlVwYnIuvNizUhIzzc3p4WnSyiK/dPEIJ541CC90SLGf1/TBYbd0+SN7dTSoWtg== X-Google-Smtp-Source: AGHT+IHi98wnw5VQlb43v7nDsSPFfPVTm7WHPNCSgmEUV/BpdaOw+Yq5tBXT3fTPJ4arhVsQiHN+eA== X-Received: by 2002:a05:6402:2707:b0:58d:249c:5ded with SMTP id 4fb4d7f45d1cf-594ba98f25dmr12772808a12.4.1720954436895; Sun, 14 Jul 2024 03:53:56 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:c17:b0:58b:b493:fcc1 with SMTP id 4fb4d7f45d1cf-59821cb8394ls972400a12.0.-pod-prod-06-eu; Sun, 14 Jul 2024 03:53:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXtQeUjNsBOT9uLCnAkxWilCAg8bej0HLaFJ17Sbdl/yxBWxacfkAb/ipJCG4/tSh6wou7P9sUZ8vt1P6bYs6n2MNTWD1DglmB3PetkacwC+x/W X-Received: by 2002:a17:906:680b:b0:a72:631d:6de1 with SMTP id a640c23a62f3a-a780b6b0e0fmr1038148966b.20.1720954435022; Sun, 14 Jul 2024 03:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720954435; cv=none; d=google.com; s=arc-20160816; b=RLL/n1Eo6H0hZ5cAvcSlt+2z9jzAwgR2Cp2k4aHFxmJ88gKCD8c12jXfgWLDeVyCeI kpLTLGTa7ZyoYhbiTpMVpyc7qOpjciliAGTCrL7YO2vgIm1E+ev5O7uUI/Aqkw/xCfZL UPq7c7cah/rUtEJpajFPICBvvK1xqngtd00RAcpcUmadjSVHAcFIKjXgtoK3k74PXi4A WrSVo3uu2GTvHAnIpZwO5wg3oGGwMRBakPZitW47oPfYlk9vBrHbXWMZNN+dm4DJJv5u 3oCGZizcomZ7TJJuCTm41o0LdXEFmm63ShGTiVB8BRKAs8d2wuGTai1SObkNUfFBoOy9 Co+w== 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=TI0o9+J9a0m6rb1qIXvkJHMQnqMVJSxVUNgNpd7PyyE=; b=lGw61wbOOchimDZF2WTKCJk6JnRoEkNoGLoe+lBrq1Rn3Mh1kYoUdfWFGBbU3xge/s G9jyKoO8EvhApYRItk5esxT0jnSlZud9Da31tCMiXOkZO8V9RGHODhjqXFjkJzKuvhWn JjJvP123uitcEQvtksB5wyJ5UROH5XbzaBS2+/7ZM6+AXr37AP5EjjAqI9kLpcQ825Mv MceBhPAiSlNl1hxrVlCgxWEdgmgqrtVDe104nlSyvaYmYzzS3tcF2BYK8B7EYtVRsLHJ 1H00dx8b9fMKE9+qkSnNooz3LL0PcWnYWUXBDexnmVtvPh8vQ822zIazfxWNVMFikHLv lHUw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F58z6wjs; 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-a79bc59800asor40471266b.7.2024.07.14.03.53.54 for (Google Transport Security); Sun, 14 Jul 2024 03:53:55 -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; AJvYcCUOXsnqAdrjgeRYMhOyW7BEludrmETXFoMWx75gfbTouVplKoNZnsGIk76xayG7LXYIg5cbYIcCAItdJMQDHffnvQ/6mtLGXaTjh+GCnoIrNncN X-Received: by 2002:a17:907:60d4:b0:a6f:e75b:2b39 with SMTP id a640c23a62f3a-a780b6ffce2mr1379631866b.42.1720954434676; Sun, 14 Jul 2024 03:53:54 -0700 (PDT) Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc5a36c7sm119966166b.7.2024.07.14.03.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 03:53:53 -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 12:53:21 +0200 Message-ID: <20240714105328.35825-18-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714105328.35825-1-michael@amarulasolutions.com> References: <20240714105328.35825-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=F58z6wjs; 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), };