Message ID | 20240911151039.2914886-12-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB7PFQ23QMGQER5CX6DI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5C8EE3F251 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 11 Sep 2024 17:10:54 +0200 (CEST) Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-42cae209243sf32180955e9.1 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 11 Sep 2024 08:10:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067454; cv=pass; d=google.com; s=arc-20240605; b=dgKDtHuNnn/lT9iZSK+SwjNBT4G845sDmWKaSS0qgbkd3WwqILfTN8jXtGH0Lxl5jD oZSKqz9GIwnUeLCVfPNBwrQ0GVe6MRMCo0QWTYKbvQCkaOcweA6tWGqPzD13ZFmvcXvz KEeTppDdfnWzLt6+p249pvKn33YrKkfouG8U3PqVuROG1Xo36EqbMDylqtqcPI6XgB8U UVzFXWxojzWDmSAZhfCIu8h1NRwTv79oOxH6ydh9EFZE+O0q2x69DI1e/CUmES5c3pHE PKqCjelUwLONyymH/CbPNRhBUTp0JT714BsRg+H9rXKU0GkmVtdG2iO8N3tu/8NiORIw NBCQ== 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=ArFQy4MPcHAqWTOS5HHlPVC7kZmpCi1kR7q+SeLvCN4=; fh=Ni+jfmxckEJswsPt84hOs03WrcQoIrXvRnqjTjxxcJM=; b=e7LSBs9m787vhqe4rmVlHnew4Q3uRwyz0rVIsPhi+t0FvB1xIN2rwyeJG3VqDXOvXW hzmKb2peZLpaQk3OE3ZGGw2cmXNLt9cz53jjrbU/PsCZT3fwF6EZi6LgrEI5cVblAa1q VPvF7MwZ/8k8fRgzZeVBaMbdVtZP+QJT0Np43+F8hLRnddhHAGlP2QX0fAn5/xrPT1bm yZG9Vvz2wrTn1Sw5DurE+Kxw27CFvLbdWRrLLoxHaeK9A1lhhvbPdM9BE7HOSVOt0VRG 4Me2zcGM2Mt4GnnEc9LlTLf4LrTP/g12Vq8kXW/pW5qeRHNrtRfr3xBoUYogg4snN34N z0XQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="n1/pwP3G"; 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=1726067454; x=1726672254; 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=ArFQy4MPcHAqWTOS5HHlPVC7kZmpCi1kR7q+SeLvCN4=; b=ZjzvUGt1xrLdZY3AN64NllH5qjvsNbjFbC/rLI9Pu6SK3L6oRzyK+wbnUUbkf9sql4 Oyvo4l3RhoiulRpWCZBpc/D92H7Kpve/qEAkrjD/ABlLPJlYOnNxPFeX87xf8amwZN6F T0eTIqQQnuX7441+gSv5DZjn73DaRCkgIAnjs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067454; x=1726672254; 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=ArFQy4MPcHAqWTOS5HHlPVC7kZmpCi1kR7q+SeLvCN4=; b=bxKZfz9NrlUGtNQfkEr5xxBf93BqAQrQ7c2D7P0cReSDgGw9YVDhWwG6SpPINf9LS5 jkVPia+EDqa5+2tBIWysKZNsjcZdb4kkocWbgJYNG10saqjo8v04BcqP5rbYOURFQaor tFa0oRVLPMLCCZLEa0GOhOX6UEuBmSRrkxyeIFgFxmPHRdb2NGWQluXvkmL9sO60ScGf 8X2MGuRSUgtbpsbZOi6vMD69RlLUBb419Gjpp7PEgYZyhN9A142WTlHsEpFA5it/mtcW PxA1neSTZ9OArWOpyLQLsEAjWST8bjOqHNBfsgoy3h0nPV64+C8H2EVqvSN7pp/ZKGQC rU1g== X-Forwarded-Encrypted: i=2; AJvYcCVw7PwDlCLWwON7dXdey7SFw6+gV0ylIQfhoEVoY1Dfs83RrKnJQ4JJgDEpw3Bh7wqzIOjbJso4q4Zq/faF@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yx9jwdGgXvKZZ9pZhJYJSmKVjse7LZUuUH7Y2EZQUkhlNTaSkiB YspmcUpSHc1vW8OY5ylmJjO4HqEofuG6L6ElkHCsGT2S5VW0gz5DDN0aVwMaTtTgkA== X-Google-Smtp-Source: AGHT+IHqTeD7LKF783YMpO12gwjeBgnfo6fGZW9sD7OSf9/UFWZGDOWEh1p6LB1eZUK0dsPj5nGlrg== X-Received: by 2002:a05:600c:1d90:b0:426:593c:935d with SMTP id 5b1f17b1804b1-42cae7093c7mr106898945e9.5.1726067453994; Wed, 11 Sep 2024 08:10:53 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b23:b0:42c:ad31:384a with SMTP id 5b1f17b1804b1-42cdb0484cbls133555e9.0.-pod-prod-06-eu; Wed, 11 Sep 2024 08:10:52 -0700 (PDT) X-Received: by 2002:a05:600c:19ce:b0:426:5dc8:6a63 with SMTP id 5b1f17b1804b1-42cae76cf47mr107213905e9.30.1726067452544; Wed, 11 Sep 2024 08:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067452; cv=none; d=google.com; s=arc-20160816; b=ZbFndbfUQtEUy7lCoa5sLjqmhqSyop5+gRipWj+RPGs759FiL4346E20YTBWy1YUmI rljKVuWkeThHvj1foJt43OwkxIza5vUFeg63NGr4prHm0s0ffNP4eI96DRlFON3l/vJl wxHOL4VI7flGBgokT/zjbQhfjEkVJKcJrQzv86oLaWtHy34c0sERrj+60GG89ho1kB7G RQa4cmc1EcqAAsHgnf+Ng95A0nBIqQTxyKwUamwzZOghUqKfsPuZ5NUR7ASuLSnVN9iU aD2vEgOiyvcH+BxNCg5af2vW/ieU9Cya2LWoM+Y+g2KNVlTjCMUMji8ZS1WPvO5O2RTO V2RA== 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=+G3YJHmN2wVHjbQwepNjO/RbB0P6DWTMuf1v7Yxgzqs=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=ZxJ7Ud8vzTLmw24zLvRH1njOJGhMWQ8+ZM6d/O5XwqfR2z70ilTvj/FuqFJV+wMbfa CDw4ZVdRQtONXDhHpD77SMoMzGl5MObuDYrcOOGwgCBcKw8/x1V8GfdCl40/F8JK/8IH X3rclc82Iz+8u1YLuv2hLm9/r8fGQyvastV5kBsJLDCTkXhIY3ReX4QUurc8wSn5Q989 jf2YSxMwjWRSopJS9KWzi7H8oaylZ44ptRCMuNL+gxjvdBnTIdEz8jmEXJSb2lpjUWrN N8LgESWUK1txojwa27TjD9faHGjKETUKTllAP7FVw8/k+9ahgHLoLGWlGAHTcAlD3xiR l3fA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="n1/pwP3G"; 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-42caf307afbsor23626455e9.12.2024.09.11.08.10.52 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Wed, 11 Sep 2024 08:10:52 -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:adf:fb4e:0:b0:374:ce8b:bc65 with SMTP id ffacd0b85a97d-37894a6b6f8mr8219871f8f.56.1726067451792; Wed, 11 Sep 2024 08:10:51 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42cb116f44esm137688375e9.45.2024.09.11.08.10.51 for <linux-amarula@amarulasolutions.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:10:51 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 12/27] video: dsi_host: add disable host interface Date: Wed, 11 Sep 2024 17:10:24 +0200 Message-ID: <20240911151039.2914886-12-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240911151039.2914886-1-dario.binacchi@amarulasolutions.com> References: <20240911151039.2914886-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="n1/pwP3G"; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index fde275ad7e2e..745991f8dd94 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -34,6 +34,16 @@ int dsi_host_enable(struct udevice *dev) return ops->enable(dev); } +int dsi_host_disable(struct udevice *dev) +{ + struct dsi_host_ops *ops = dsi_host_get_ops(dev); + + if (!ops->disable) + return -ENOSYS; + + return ops->disable(dev); +} + UCLASS_DRIVER(dsi_host) = { .id = UCLASS_DSI_HOST, .name = "dsi_host", diff --git a/include/dsi_host.h b/include/dsi_host.h index 83f8839db68d..5873ab698d9e 100644 --- a/include/dsi_host.h +++ b/include/dsi_host.h @@ -70,4 +70,12 @@ int dsi_host_init(struct udevice *dev, */ int dsi_host_enable(struct udevice *dev); +/** + * dsi_host_disable + * + * @dev: dsi host device + * @return 0 if OK, -ve on error + */ +int dsi_host_disable(struct udevice *dev); + #endif