From patchwork Fri Feb 1 15:42:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10793121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8D94D159A for ; Fri, 1 Feb 2019 15:48:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DAEE322D2 for ; Fri, 1 Feb 2019 15:48:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7161632444; Fri, 1 Feb 2019 15:48:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 20FFE3243B for ; Fri, 1 Feb 2019 15:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Od9rSg5or1j4qkXqJPVrLYOuM9JcNFxXbsmHJ9uwRPs=; b=CrWKZzA4zrIpGz nIJvDdIPYcEKjEv7/XG+qeOZpUvAs5NWT9eAxZkeobOdOZZNn6B3ZRld6BTklm0XySFf00xLY11Vm nodK1t8tjmlDJ5roCjV0beBGYZtt56npXP2Il8ZON8i3o5xECzrgFtzjL3uZl4/Bku25NWWS85b/k Bs5m/FLxXdZGxmEvOYZJM6s+BzbZ/kRdsSp5GE6yN5NZHylZA0b/ZVVedjtOzlkxvJeFd9R4Ly3e5 H0/o2sfcDy5gY9q0fCaG1As0tHtH/ZcIkCXF+GEdpUPsBM8nOWc/JLypLJkwEAUhCQobJox6+IiJg 7H3PamsJLlJ6hOCODeww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpb3L-0000Gz-FR; Fri, 01 Feb 2019 15:48:27 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpayN-0002YD-9d for linux-arm-kernel@lists.infradead.org; Fri, 01 Feb 2019 15:43:51 +0000 Received: by mail-lj1-x241.google.com with SMTP id n18-v6so6168803lji.7 for ; Fri, 01 Feb 2019 07:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SlZdSxfBuDHFfxIddevdjQVhgEUV7gSx1dHVPI1InaA=; b=JobGz/n5O2PIfNMLcOY4LXUWKgthtj/6/kt6rgaBt7ceZJuH1doHiSi8Sxlx1qkAxE eYatjXNsn6RYSGBG3tqbyHdDNGAqu0rz8nJbY7elVAG5xYFBmu2LXYF1KQFX/XRjaocd CjgCFQmwmUxiDlbMNg2S8He1oShBKfyaKYKNo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SlZdSxfBuDHFfxIddevdjQVhgEUV7gSx1dHVPI1InaA=; b=SGn8cQ2Omu+s/+rMebREZtcyH5MFVzgl8zanxrV2AH5QNSqgSEYrNXVsBRdTSDeKRo Ssw5PgRKFSERBSZebcypL55PkpRflNkQYHRZZ9X7Ap5rlTSDvWaGMHgQy0IBEz9FZKW3 0Cv6Gc19QHw/GkjExK8gEexpHvMQhbXxXpNFVQ9TvuAw/LBfVbupuF2/6TLUEpe8Ss9i ySP8k9KHFtCAOGrLj0o0wVs7IUqiu2B+xwQyXm62mOIknJpAVTwQy+D+uEWRjhW7v6/G UChwel8Fhj7FdwY9YZX32zccqM3B8+qczkLcCRII5NcBWZithEZ08VAJ0wqr5Wb/WLoN PNzQ== X-Gm-Message-State: AJcUukdmyeTqYZ2+fRTiT7g1GO9zcGcR7cmaX8Eqi7XAaIPEwfOoC9Xf PP/P9q0qbFERVDe19gPJEqaL9Q== X-Google-Smtp-Source: ALg8bN7mYsorlikrfb8l+3cpdMLiswSisF1oFLlmJ0ydWjBcb4QtmAd6YG6o2C4/DXjHq4rlRbe7cw== X-Received: by 2002:a2e:4299:: with SMTP id h25-v6mr32297109ljf.5.1549035797544; Fri, 01 Feb 2019 07:43:17 -0800 (PST) Received: from localhost.localdomain ([217.76.202.68]) by smtp.gmail.com with ESMTPSA id i13-v6sm1305712ljg.82.2019.02.01.07.43.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 07:43:16 -0800 (PST) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Subject: [PATCH v7 19/23] drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer Date: Fri, 1 Feb 2019 21:12:28 +0530 Message-Id: <20190201154232.10505-20-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190201154232.10505-1-jagan@amarulasolutions.com> References: <20190201154232.10505-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190201_074320_189270_11146C81 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Short transfer write support for DCS and Generic transfer types share similar way to process command sequence in DSI block so add generic write 2 param transfer type macro so-that the panels which are requesting similar transfer type may process properly. Signed-off-by: Jagan Teki Tested-by: Merlijn Wajer --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index a0697d78b915..09569938c20d 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -984,6 +984,7 @@ static ssize_t sun6i_dsi_transfer(struct mipi_dsi_host *host, switch (msg->type) { case MIPI_DSI_DCS_SHORT_WRITE: case MIPI_DSI_DCS_SHORT_WRITE_PARAM: + case MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM: ret = sun6i_dsi_dcs_write_short(dsi, msg); break;