From patchwork Tue Sep 3 15:30:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3386 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C2E573FA4F for ; Tue, 3 Sep 2024 17:31:16 +0200 (CEST) Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-53436749138sf5978461e87.2 for ; Tue, 03 Sep 2024 08:31:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377476; cv=pass; d=google.com; s=arc-20240605; b=XydgpuJT/Cps6Q10QFqnH4d9jSvVnwN/0ww393ljfCdoexg1DNg9FtFNhClg4V5dx1 2FkWMS1yLypFiq0WmRxRjcYB8LTIaRZf/iuJ7GE0q7HfIW2L86YIKogxSOEPceYZu0kO aUMkuEj1ogLoh0Z174Pw7QOqE68qgd3rXpROLBoocpxVLkunU2cccnRSW3CwtW1mv27G yZ5BEtj65npN2Yo9R+pJkzNt8A9KPQ3NK2RLLA9ZzHI+mlcLeYrXAi16o4niZ8J5O9Rx WNC5T/3mKS7Qn/cZxrb6pyeVvhmI0S5OTDWbxJiY0qXaBchtB4P2zJzH7Fa3/cIRHzIn w2Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=GYI325t50TqvqVzBXl0dylB83R1c44SEFpBCc1vV53g=; fh=qpZfOkvjiDGEqYiyqZfFqL0mTsBe63Ki8zsm9mcyzvE=; b=Im+f6v5YRfDuwAZmw4bKOrPplUnU+pAVJMsub5Chc2Rcr935dWcc47Wdq/k4lnJfRU 4DBcesJqiM+TQAAScT+pjNX/B32WrFx581w9GmcdruIkzbtJ9/xE5c2fdtub9ALud2PV FpgWMOYc804I2Aau9U3raoi+xccMTtFSE8N//VwC1uX4f5YM5YTsn7D8WLuxIRm3YB9v nCJlIzCoqRrzC/ukxsX9FqnPiuTcK1yshX2jSmr29p5f8bNYBzPNAjdasL6eDnwQJY3x 2GCU07Pc7G/7w0ZtGHl3NFXdGAKTq03apQGxCUpERl7Y9byGWpitGLnJJ9GgrA0aD/5m nobw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FUAVdpkr; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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=1725377476; x=1725982276; 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:to:from:from:to:cc:subject:date:message-id:reply-to; bh=GYI325t50TqvqVzBXl0dylB83R1c44SEFpBCc1vV53g=; b=UD4VomWUMHvEUU2Dyl5YQZ1HMcJCET2T+0bigdck85TbU3nXbSJIBbvg9n57yRbFEG tjQVZDzGqA8QnEDqo/PshyJ77QgmSR9UqCzJX9dhmqA7IkS6nqqN6zZUToM5MtuZ31zz v2t6k6kB6iF93WbvpqueaP2vm9V9UKARqO/uo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377476; x=1725982276; 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:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GYI325t50TqvqVzBXl0dylB83R1c44SEFpBCc1vV53g=; b=Oj3awMoL8wKGJ55l9FjSidfDmiF9M1+Ca5mVwGfuYLf5u1anKIRvaPWz8FRDEJUMbP 2FOIcaFpApbe6Zu2zusxdQZlHdty5TRxny/ur/F3Cx22XVzNwKb9Y19GMLlqtwEBlJPj hxFm3FcS2UaBPj0JEL9xuxhty9at7QNRzJsMwlFCp1PHowydRJvyFV9GAOBPDS7K3Iq8 b+cNBHoIQaun03KD9rGBA3aJ8sY04AVOfpwSII2HP1hmoEyNvfou7E10uV7z0OluwGML 625lbvJAoWSqhXpICyFxvPedpvJL96xvkxzgvsex40kYVNjM8CMwXvkr6g8Uyxy/B+fm PLRQ== X-Forwarded-Encrypted: i=2; AJvYcCUUuaYxkvMViwtyKe7Al+KYQVwyuYyZcOYroTXADSRRJTELi036jyibXQzO6IZD7HHoxN6VdZG++Wp9JPd2@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxUzvpwQDH6NL6PL7JjyqFq/osoTidoCCRY3MyEMVXGNv3eFrVc KbFGQDX+5P2z5BVhBbYHBx3dBQq10dQIaq3f9PetY8unOTR0EtAJN6NDWhYIqckZJg== X-Google-Smtp-Source: AGHT+IFkX4C/fKUJ0nRrpA1iMRKDvuQUSYUFgDBlTEk8ctKXsw/U9ehXQrJbycVKK9PG8sp2ubxsZg== X-Received: by 2002:a05:6512:318f:b0:52c:d626:77aa with SMTP id 2adb3069b0e04-53546babeb7mr9596027e87.58.1725377476111; Tue, 03 Sep 2024 08:31:16 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:3b8f:b0:533:45dc:5477 with SMTP id 2adb3069b0e04-5353d8125adls330879e87.1.-pod-prod-07-eu; Tue, 03 Sep 2024 08:31:14 -0700 (PDT) X-Received: by 2002:a05:6512:3d0c:b0:52c:dc57:868b with SMTP id 2adb3069b0e04-53546b05c10mr10172104e87.13.1725377474095; Tue, 03 Sep 2024 08:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377474; cv=none; d=google.com; s=arc-20160816; b=VY2ninpjo/W7FgqDafz080RinLtcQdEzyF+hQ/bX9CY3nAdrCoPD6h1htVG8IROSHB OPdG/KTyiPh83WcG46Y29/ZFByWXw+DY3Laq1/aXz3WS0vQ1kpQObPH6u62cLU/exS31 E3kfKYdxJNlCUCiW3zRW+YwpEFzbdw7duj1sL6ZwJes1+IYl/2iyIFrH7XzKicSb7yHi tojhs4+8zK3q81BwhpkMMKXGHvRtzIYv5BpeVsODkEoab853bKYeUmAOuDhc2bM74xYt jtt/Hp/LVWKBcL2iMGVHclPA1usYbSonmkI4KKXACE9uzz8Xf3GZJcHfmnNt3fhy+xBa u5sQ== 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:to:from:dkim-signature; bh=a86JFaoQ8c+qIPUXnYmUJIpO5dOSF621iR1yQirrag8=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=rExctrJxkPZzo5ryU+gu0toihergxZSck0fnldapRjfYqU6gmxgdK1+SU7rc7xAMJ9 xs49C2OCyjJAZsDUZPEXzW6VUeKsDf2ajHRm4RD3fTNIvM/9z2JfOgy6/p00wjy6+Chi RES+z6/TAjp43Vp+qV8vA39oF7WNLpkBRj6DurDzHXEnjfQDXW3HN9WihtkQPJaIC+op 52R9e0DfnYvMHaLefqoJLjGKRQd89aFSSJJDNnVczrBvEPcAv9O71PZ7efihAOJIhWuh pn2AlVl7A550MFsKyncnNGTn7OiKQX++HoIx4444se6agr36CeSxsXKir3qK+0ST50dN DjKw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FUAVdpkr; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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 5b1f17b1804b1-42bb709720bsor44880445e9.10.2024.09.03.08.31.14 for (Google Transport Security); Tue, 03 Sep 2024 08:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:600c:3b0c:b0:426:65bf:5cc2 with SMTP id 5b1f17b1804b1-42bbb10cd56mr87348825e9.1.1725377473447; Tue, 03 Sep 2024 08:31:13 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e273e3sm174168685e9.30.2024.09.03.08.31.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:31:13 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH 14/29] video: Enable DM_UC_FLAG_SEQ_ALIAS for display and bridge Date: Tue, 3 Sep 2024 17:30:45 +0200 Message-ID: <20240903153100.918077-14-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> References: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FUAVdpkr; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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: , From: Michael Trimarchi 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 7432107238cc..5e2b76851fed 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 61a73e1bc2a6..07f05be7dd17 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), };