Message ID | 20240903153100.918077-12-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBQWX3S3AMGQECHQJ65I@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0B2263F1F3 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 3 Sep 2024 17:31:15 +0200 (CEST) Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-53350003ef9sf6739313e87.1 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 03 Sep 2024 08:31:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377474; cv=pass; d=google.com; s=arc-20240605; b=LpO9JZEH9kjtbmq7XtZpdMGlIrGxpGi+fWezDHsesxONnmZDvVW59cBqvLRNYJD21O A4BumwKD3r41JfkPeT07CDvZBOMh62WOqnJz9IoCoBhAqPiLsqKeSpWMwvdje2UI43T6 xLM/D1WdWcSvFf6Oa2vO00U3E2tF1sPa/6nvVEZ/AVp97n0PcqfFNCNBYCjzYDm5/HX3 D/vD7HQ70bV/PtCy/k5nQrMy+w+3C4MV9FuNKWEUzSsmlLr5QikaCJhbyUtP61A++DCY IpzkgtPerClMAZu/qw414FBxarCXhhdZD1Esp4dHrIHvPN44sGqNRTjv5FJBnxAxpPmL 81bQ== 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=/fGsJxObfhHfqQMqjjoxFPvgQTMqhHB7LtWqUMOlvpM=; b=iudfJKa9XhGz9+d58EGMM8b2om1p0ZEQcittxd1iK+76GmUK6T1KKJ3kEg0Qf9BCVB 0ekb+k70vXc+FZW/P0U1UiVetwT3DZq3FToQF+onLZFE/3e8nOWZ2RCvxXCoL8+O5ePt Tz+uU5NEFe3Gz4sTKbr6aSoOioostQNzlQ9KkbeFYQJpmScqO/1UgSyinSfUes0+2VUm Pqm6EMjm/RxTm2tk15f4VF4gfTkANfXiAzVvgk9lE5kikMDRsGCsQiM25vxvYrMX1HFs jgy7dW261llG7SYQ1t5cO+ir91fnkSwBuvh2cypeqXubYnOP5q6Wf91rQBwUiKqZlccq R60A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dUrOmImx; 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=1725377474; x=1725982274; 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=QwUtNXyu+DRzGLupSjU7PVtv5QZgzkRWAuQ3Jy+2xjOI28yCl3VLSx8RI9bcM7sqxi eeVcSIUXgMT5F0OuQvmN92VCQzXdYG17NPTYxEQrEC4+axYjesBsW11TYdGxOOA7ULru 0RVMRmojIE7drX4lowEhYStNDeaIOC7bB9m1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377474; x=1725982274; 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=QpA4vIN+dIjgStCKrVIcx/gMr98+eDdfdV9DvGgIa4hM+a6zJa4YJwZZ6K67DbGqVj frGQpO3l3iRL2A28+FJJFdSPELFgzwOkeDqHruY1OT3peHlK/IyyirL4vjuJq8x21cw7 dy/YnI+d76jKZyHOy/QRmUZqefaQG4X59z66xbH+fO+SUVilYEvyMydC8dQ0nr9MdpaA 6KTv1TEQVqgnxTUu++F661UIMk3AmMoLfQ4GZYZMiGMoYABLpb6aCUAnu9tQJ3z02cuY go7P6fVzT8dN/KqhDBysl9XGw48ycKvbCufFCPcenLqcEWVa/XABNpRSdbYcHT2h+anQ dr7Q== X-Forwarded-Encrypted: i=2; AJvYcCWAjonlhhCfrB5fLyjsfnu0LXAjbuJ9KQM2+myDXvqrXvspv6HKp3Th6NG3lq7IqFMwX+ogLOFptZYDFuP1@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyqsUBgHajCeGIFvcIl7fSBm2Lj9A7IVO21LB1E9ugU8Itu9iMt d1NdKUCYkFEDMEHUv8eGkissiV+ol34wgm1sIvwAhu4fsn2HIjF1enVJM3dpdx9/IA== X-Google-Smtp-Source: AGHT+IEGqDVSypTf0170Tuix4LSK3kT00ofPxu0s6hDhEDhZfqM1vqlvR1Jqzf+VqMJ4hcfR+v1Vow== X-Received: by 2002:a05:6512:3f26:b0:52c:d84b:eee6 with SMTP id 2adb3069b0e04-53546baac97mr10219364e87.38.1725377474298; Tue, 03 Sep 2024 08:31:14 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:2351:b0:52f:cbbe:1afc with SMTP id 2adb3069b0e04-5353d8185abls254988e87.2.-pod-prod-09-eu; Tue, 03 Sep 2024 08:31:13 -0700 (PDT) X-Received: by 2002:a05:6512:1091:b0:52c:c5c4:43d4 with SMTP id 2adb3069b0e04-53546bc75demr9485346e87.53.1725377472486; Tue, 03 Sep 2024 08:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377472; cv=none; d=google.com; s=arc-20160816; b=NV2b+gjjcvpIwuQMTokNOoU/SzjLwSX2VBE3oPZi7ALhkfrGoz+j942e6+EoV4cIUO MSKUTpLkFf71qxob5U330o54ODebEW9TqWEJbp7xSMggd6djzecwwtzIp9OZEXTff4G4 bjYA6rAVJ4AWzk7ai4V1XQUi9X7y6klpPoesKjhi27lxnH7ai8l41NXjWPsYf5Ywpkb4 oYNLlkaUF6pCgrlJn5p7fW9JePouj4/kX21A6DCsIac7dsn1tfzZ5FnokWaYr2WWtmx1 XEvT66fyaga03/v7heI0JAfusxhfZIuZ/08Z0TkcDNODLCkzf1YnaNbCzCJbWiBUpIrU U1IQ== 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=x42TQl0PYmqB0omYhp/FWrc0/M2ZrNWHo+II/pr3XiIuBIdehV24l0jcVNLA0+6FOa ruHhOviOGEDI5c3sRdaEljE+PcrNBMZfI4OvGTYrnzt3ZaACPFyas+s7SBLWVF/fvMrK pVAQej/1SXQqoEFXoxPXlEfniBBq8UpTjLkSBizx+SjvkEUj+xqSWLmFVRuYgIIy2VyK TD51Yyj7/pSIhvGFQ5cvS7pqQuCDU4Fjr38vkSiObXy3mlH7LT1/XCfeI/0irzAq5GTZ s4S8WwEXx8Vag8cLuxWcGe1TKfWxFX9J0D59qYSJTOkmWMgPhqb2bW/HAzTed3mQvbnx HlyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dUrOmImx; 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-42bb7097991sor4237775e9.9.2024.09.03.08.31.12 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 03 Sep 2024 08:31:12 -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:4689:b0:428:29d:4b59 with SMTP id 5b1f17b1804b1-42c8de87c08mr9399515e9.20.1725377471861; Tue, 03 Sep 2024 08:31:11 -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.11 for <linux-amarula@amarulasolutions.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:31:11 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-amarula@amarulasolutions.com Subject: [PATCH 12/29] video: dsi_host: add disable host interface Date: Tue, 3 Sep 2024 17:30:43 +0200 Message-ID: <20240903153100.918077-12-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=dUrOmImx; 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