Message ID | 20240714113302.133399-16-michael@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCXK73FY3AFRBBPPZ22AMGQEJUJRHWQ@amarulasolutions.com> 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 18AD340F88 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 13:33:26 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-58d134ecd3dsf2590623a12.1 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 04:33:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720956806; cv=pass; d=google.com; s=arc-20160816; b=fTxYez7lzJ6drGx1crFkqt0njFXKbx6cpQ/e5cZ10b8atigfKg0SJukep8lPsdZ/tW FXMDnSFD9TLrVo8/ggr5qBeQpICr98FJ1oZ0IthN/Ls0Pb2pciCTvBZNA16SQyWRyduS pvTvPfsFSBzmaM9g4AhhC2dDc1FJwjp/mMT/QgIhhQAwa3tmAxLyhiKV6nion+RYp06K b0iDp9MMM4aQlr9/+lpF+DYSIicicU4uGZg+C2287h2iMQ8+ZCKEXAHOpUkffPJ6t7vg aJnY05XTT3bCXZFmwIDAof5by+3B1bif1Zao4J/9g+OXCEMsndkVSTwfvxJ6PMlKWM6F SX9Q== 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=4xfP90RdggRJLNG0N6//LJOQdFV/TURb60b9BTLPZ64=; fh=lGxsVpo6wK6Y3UbaphdGYz3aVvsVi0NpTLn49TWFGGQ=; b=lKZHE//dj8/J3ureBMPX7glmP5QfTpn3NXIBIKEAbgwvysNR1Un7D/6iWi5YtW3sRq AOnlMOflGm6V+i9293of/rLz9cJ8VRpUvSQWI3AQSWNwApo6Phg2UreasL0SnpD9HQ3q EJ+l3ne8MfwPnPC0O4XkEbkZ62nE5hJ6yUAhJkheyol+lczaBel4jIGvPJevMLPxh8I2 hI820/eWUCGm7bgqGsE1pj4+Ps1PpJSuYwG3H0auIxxMA8X85OYDc2Io5xcAm6LunVoY 2g87OED+TjFVcHy2OcGb4cXiYtdNb/R6+Ly23vM+cZutNkozkV1aDdt3VruzPLgSyCI6 rIeA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=noaebGx0; 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=1720956806; x=1721561606; 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=4xfP90RdggRJLNG0N6//LJOQdFV/TURb60b9BTLPZ64=; b=AXMpWdLB5ON/Pj4GeYEv+0JruXKq/s2razhmCPjqC09dsu7a0f0ALXdXgjMNT/mYIr SIa2P8K/q8hhPJm1sLD9UyL0ZcWiMsZDVE9rwXx3jQ24EmJTy2K//kwVGUAES+otOhAP WGDcY98JiCpcDx621JVosZql+StEuB6o3sAig= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720956806; x=1721561606; 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=4xfP90RdggRJLNG0N6//LJOQdFV/TURb60b9BTLPZ64=; b=SvmQGjEVHdHByAq0BtKtMR30axkeYZT6ihYImMGqNBmmeXfP8snGiMKTcabgaeqR0z 3HvK9jADA2o6JrGU59tMC+kIUAY8WBjTRaLyfkQUwxWZBlTmRGjvKQgrb9zfEhaQ12PQ zbYn7XWlQdzmYMsBOcbRsS0mNkzOIfNJzrz4GvotFFjXDX3C5SYlbOmfHTdrGke1iWuR xmrGmivm/jNzt6R/pt6U1E63xmRUWa2DtwOe6T6Gm07gPD8RzR7HxBpzIOIK1cK0969r wjFRzRFwCzXVad/ojcTQ1DfbiTG+k5IwfwADNaTrvGo9rD92/EmThHUqEKrfCqTnW/tl ULFg== X-Forwarded-Encrypted: i=2; AJvYcCXWnr6n9Ractluj/Mly4LkIQzS7/gHLim3dVgu1ORJyxpZpizaWsuc6FT45pQv9bponpJH/ITW340vDzbGfDyCj8psTn1DhirtIHa4kA3kAlX/B8tadFo45mXfQFg== X-Gm-Message-State: AOJu0YwuGjGcjkKcQG9EMsb2Nqeue8dRaOaNzLvN4J7GoPCA+IQl+zn/ OABgEHTgAJ0thWs77+WO+y6nGgiOqdMhHGRfhEadSKOgoIC26+ehw9ktOpY7rCJtcQ== X-Google-Smtp-Source: AGHT+IFDsp/GD4sCsSHxhlMNllRcUonmWaa00oBQdkNUI7FqHsi1OrGtyZbs9uBEH6fNbDJvOiNtlA== X-Received: by 2002:a05:6402:430b:b0:586:6365:b3cf with SMTP id 4fb4d7f45d1cf-594baf8728amr11875951a12.10.1720956805808; Sun, 14 Jul 2024 04:33:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:4309:b0:599:9a12:f5cc with SMTP id 4fb4d7f45d1cf-5999a12f8e2ls994631a12.1.-pod-prod-06-eu; Sun, 14 Jul 2024 04:33:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVlV6MJ3CRaZWrlkCMZMYJ3PNMudXet0HbO0hFkv+KsG/pNMbmIeRbBJsygJCcwFSqkjSRp+V7Erj81qw5V8psbowArsNy15GAYgtKhln4znJnu X-Received: by 2002:a17:906:b2d7:b0:a77:b81a:2471 with SMTP id a640c23a62f3a-a780b87ef91mr1025780666b.49.1720956804231; Sun, 14 Jul 2024 04:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720956804; cv=none; d=google.com; s=arc-20160816; b=KNwGdgLvRyZFdsriDL+BnrACESVkqgsuhDNvRJzTVxBpywfNZLgsCysjt4brPhmbjS p1rRC/Mp6TSIFIUkgONWhDps4PoVJnHqfeD6hRrPqoN9l0vxYAuFeqWbr1sz7C/hl8xN pYrrRxLpqb2noZDb7qgCcjkLsPhWEfYJ+gGJSBeSL0ytBm28bKi+LNlWM8MSpJqCCVFG b/cC1w0WR6WKzZ/3BD4jUkz7zHXEC4O9NW4NlWcYNPVdOwwqShBtwssksejxXuevjKUv UpH0PLALCro05fFlc5e48bv4bqf6Yht0f5r8dnDflBJe3nKyv0JTXLFSu1jI4BFMnJTm QMYQ== 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=YxMxmC45u6BRcdQ8JSeIqRT2MubiYL3G2YLSKPpcuPk=; fh=xePZ6CiZ9IX9RGJGA5ks0cKCPGhBzXJtt9dl4CJp2Gc=; b=UH85DNL5O7q4MIhrl/My2urCErsfTF6f17Ll7Pst+BatgOzGO/CgBTZy0ehfDQLXxt MbBEZLDRvOQXNq4MzOpxiy9eSC+8bCLixv4xswg6CEp59HuhNJjvG2fZn9kAnFufpPRN ie3Wt9MBpHCRw24nH+sFo4jd81xRpnipWepF+LcabSDv7+9bNHZfEAT2Lvn50WoK5w18 NJbmiVa6DZ7TZHrDuL8JkUZtz2caTp4gHh+er8cwngZdGDd/w/4BOYyYqf6hkU2nyQAw YzFncsCkKBTQKwcTTFW+OPGEvoqwNYH5FWSqeRnELzq89rlQJH/Lt3vPHdRXBdetxJXF xVRA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=noaebGx0; 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-a79bc7a835asor42475066b.14.2024.07.14.04.33.24 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 14 Jul 2024 04:33:24 -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; AJvYcCW7VPMKfw2HhVnyIAHh0SW35bsw1vFPPieVk76VCT/DEcC5erIqBs2TjLLdNd1q5bL+Cf5qmAQ8tUjzd0OVva7VYesj4xeL/zNFd+82JonfH3Cz X-Received: by 2002:a05:6402:503:b0:58e:450b:da08 with SMTP id 4fb4d7f45d1cf-594bc7c8037mr9326475a12.31.1720956803879; Sun, 14 Jul 2024 04:33:23 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 04:33:23 -0700 (PDT) From: Michael Trimarchi <michael@amarulasolutions.com> To: Michael Trimarchi <michael@amarulasolutions.com> Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>, Patrick Barsanti <patrick.barsanti@amarulasolutions.com>, linux-amarula@amarulasolutions.com Subject: [PATCH 16/25] video: dsi_host: add disable host interface Date: Sun, 14 Jul 2024 13:32:53 +0200 Message-ID: <20240714113302.133399-16-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=noaebGx0; 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: <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 fde275ad7e..745991f8dd 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 83f8839db6..5873ab698d 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