Message ID | 20240714105328.35825-16-michael@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCXK73FY3AFRBQO4Z22AMGQEDB6EUUA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4DE3C4135D for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 12:53:54 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-57d5467c427sf3576900a12.0 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 03:53:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720954434; cv=pass; d=google.com; s=arc-20160816; b=UztI5yWxNpdgaO6+s+BUwu1AlLXDwWxOjFsHk9xLesBWCG50yw0vjJpmTAQQOrB5WR 2cDBpW35gbw1/IgBNICn7JahPz8Fwcc3gCYc4mzH/mWRM2yGEUFD2H4TKirc0KOe2Reo OF3Yyp6JRplfCFZjmRGNo3et1ltASwrsbihAxUv2GbCLTNfocCNQS343ih5zg7K/3bxG vye0lJo/4otyKwMaoAuxq2neH93PFLJuCmMTbvpUdZN8CWPr3qs9iT89CWt96EhipV13 U9GA6YrhwNdhSOW4zMaMZWaszkQ6vyXlY2zmxspHfPWgnF148q3NNqKj3pKAj0x95c41 8/xw== 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=e6bRsGJVcXfjBTgXrkzC7/YVbEkZUkaaE87p77eG2LQ=; b=1K1kz4EC9+5jwXpXFNi5yYZwWGBdbMHOBmH4HwJm4lX2y+jWAA4HU1HbudeGZ/g3Qh ldbxEVGzuaZPBwojbqGJ5MJiJvBspm9znQxpu573ix/0REIt7XY0F59c7jwcvXci0OyU TJyenN0scnpe2R8Gnu1npPvDwKP1DVa4HvC+UtlfaT0loejItlgmBAPLT4lY5qBB2t6U XJ6Be+4/1ss1j87a8cpJ84Uo9+42+26gANosA2t5z6e82+gYJaw5vZ68C5YPApsAyFRG MyXaet+rz8uhEEorgVymkrBGxbQXAAC4nzJAfw2ZFxnkY9IVcPujcP/2yMKML3LSqKq1 pSKA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QVbAZOGJ; 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=1720954434; x=1721559234; 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=g/zeyhXLuBJCddOHmsUrCHFNQWBBX71LuulW5Px6uHVQ39Fv4pcdKzcL/wHFyx6Qcg 7F4iK9SnKT06OGCa13AuDeba88i+NDvyi+IxpkX0X/mjR8ZaK/jMCfcYiZIVQelE7k3+ Ux83nWJ0PaeQ4YI5c0CWK6akVrjriqqLRjLks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720954434; x=1721559234; 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=j1U1rQ7UJHQlgC7ULYOi+EulWFnGygM3PsSMfhSBtGs3miOyFT2pUq9xL8Y/2+ViXE 48COFQ/QP+sEydK80/umSX9UubfFarHIiEYPznFpjg5JO0Ilkl7/LYOcDkGVP2tbCknN Al+aIyEG0OdMx4AS1Cg7Fve3enZpBR17pAeUuccyqVNMSty4TA/myEfjTbSNY16oNuhv EDtEt7D8277L5su2P7KTpyELI5jCuvA4FLwHeYqvF3Og5PB6ghNCXpxSjGDZngbguofV 4seqHy+aWDnNCyoaDESLfT+QLOGNc0zd8mrQ5Yd06WL5Iq7qNxW5FjkQSXzL9LFJ2KFb lnLA== X-Forwarded-Encrypted: i=2; AJvYcCVzsmyEtZCK7kLDzH8WksewR4d0zTmMPgjyg8Zc3CQWugliZcbe+ZCKY5t8Jx0ml4nVdhvevRhWA9IdORPEwlWNGTdwDdk+6O/KijX+tpndzAjQ3OtmhcmFFo+XMQ== X-Gm-Message-State: AOJu0Yzxq9ibF2lAsfMXPfBGfTyVL1UqYKn3pi8YRRuLW0lDpabDpzeT qJpHs5O4wuGfA7LBrh+pp7teYZaFm9H0GCjwvA/TI8Lo2Dqum1PHwZ4aBWipT9cS1i2GhpF2BA= = X-Google-Smtp-Source: AGHT+IHqOLw+dl3EnWsXzzkYoTdMQzhDmV00r8QTRbAD0slg40QMtHjIdXTtlh1REzVPYA/JN7avkw== X-Received: by 2002:a05:6402:40cf:b0:58f:4420:8167 with SMTP id 4fb4d7f45d1cf-594baf87996mr12449617a12.14.1720954433941; Sun, 14 Jul 2024 03:53:53 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:42d3:b0:599:a982:4a54 with SMTP id 4fb4d7f45d1cf-599a9824c5als1045782a12.2.-pod-prod-06-eu; Sun, 14 Jul 2024 03:53:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWxuOAElOdN/EvN8BTiPBzCFJswjdJwZoapUk79rBenGh5w+yy8ngQonbbrhw+uvdfCJepGcjqOho/rLgdJELA3X5pCW9T43+WX9Ikdn+AsDQv0 X-Received: by 2002:a17:907:7284:b0:a77:e48d:bb4 with SMTP id a640c23a62f3a-a780b6887a1mr1482094566b.13.1720954432212; Sun, 14 Jul 2024 03:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720954432; cv=none; d=google.com; s=arc-20160816; b=jsMySPVCrYx5w+T/K0qAkG3RmvUg1BImRPAwPdakimtUlGTBuL/OSkttzTgpWM4wSU cL2CV+z7FqNfgEAocDN6RzRA3UyW+/cSavcdquQ/EeUQSFfJeXzUxCpX2qbBgXK95Uls fvH2jAwU7lGRALbEgPQBTblfDXBluLr/s+cDdZGfo+rHhAluwPc3A4NTVQqL7EL6bgpA NrOa2qPjt3SCNvOQAOHWab4yargQJtfux4ZIKX8lyiNoqq/T39LWc/NqbUGa6p7IITRL U7ApUFVgmEZz65Ruk0fdBcynNV1oODNcgo5D4E6aM2Zd5yrksZ2ZVJdUNsqlP5Q2GDoE H07A== 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=cM7td8eUjzVmybdrVNWyJke0z4QWZw4IJwH1EDCVViU=; b=XyeR4mBL3Q1FSJ2QSGxSIyRXHG/2hllqAlJnSks4M2HYQyf2JYE/38Kq8lnA+L0+ja eHdGFyv+h2QiuJF+jjTRCLPxDBAVd24+ZsXyWvZsh6jUPlXQSNPA0v59LE5/rqOLCzNb cbk1jl8z/hBT8RqoWKRzZl/3fvdvti++MCaGUfUwwYv38PLihSsBN6dvtwzivdAmJlpX DmlmOG7JazTNfLxe2G7RYOe0WqZcQjvcuWFgAyCbSZYCgMfJDjFNQ6ouLGjN7dSFpH/c HisMfKzt0mx+9mH7k2L51PVovpY65IE/dAPKirwJbnKsPHd2C3rJLKDLIGA98a/FAwnu VHUA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QVbAZOGJ; 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-a79bc7a804dsor42734666b.13.2024.07.14.03.53.52 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 14 Jul 2024 03:53:52 -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; AJvYcCUJZRmqTtU+p1fTiJsvW6QOPetPVH69T7O0hcEBKytN/TZKuxTPbzHgJxwluTmr1Cg5e+notQLUombiYFsRtw0HO7ZBX2JqGfo4O+O7mH8F2Cp7 X-Received: by 2002:a17:906:4715:b0:a77:c525:5c70 with SMTP id a640c23a62f3a-a780b6b1901mr1164615866b.32.1720954431868; Sun, 14 Jul 2024 03:53:51 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 03:53:51 -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 12:53:19 +0200 Message-ID: <20240714105328.35825-16-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=QVbAZOGJ; 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