From patchwork Tue Oct 23 15:50:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10653345 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 DCC1A14DE for ; Tue, 23 Oct 2018 16:02:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD18429F51 for ; Tue, 23 Oct 2018 16:02:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0AE829F20; Tue, 23 Oct 2018 16:02:08 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 592C029F20 for ; Tue, 23 Oct 2018 16:02:05 +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=nFylRo7wdAVkdgq9oqwW11LjXHOPxm4IlHnmxSYEfvs=; b=E5dF5XX7JRnYst NOpBAd9VHdp2sTSsMuYGb/CyfyXhciI4zKWNbNWkAyUgZKWz91oGyQafsHze7INLPX9mE/eJnkEPk dxHcyr2zse4kCT34eM5W8Vf29nzTNqQm+9Zep0hBbRDGx6hMsVXGfj5i6u8Gj0ClRi50EytXPviVl 1hoDJjpRdMdXPqvAx1n/01XkiMANFdOpxgbIXa/A4xRISw3/KhJKJBzcLx6II1ZrKQ8gLCS9I9nEu rJ/nPcX2P2JTzol4ni4y11Yr9WH6bxcE2I1dlaj+SctdCSX6HMJevM5gcn0oY4JMlw86GKzz3C1jX RlGulu23SktpIMrlBXwQ==; 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 1gEz81-00026g-TM; Tue, 23 Oct 2018 16:01:57 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEyy7-0004Q5-VR for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 15:53:04 +0000 Received: by mail-pl1-x642.google.com with SMTP id p7-v6so835181plk.5 for ; Tue, 23 Oct 2018 08:51:33 -0700 (PDT) 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=3eeg4cPMpf6ZO8A2CN8XTlIX+ceIdjQJrEvIG6Ts4Fw=; b=oRPQpqnBjUdrfV6xGscSNy217s+6s+q1t3/C6B54OBKvGWmOVMTvue/7ZRTw14c7lA 64yV15lGLRrnHk1qEsa8MBe/bX2aQRgjOMAhRQ6YAUQlsTG8d0Rh3upAk60TUz0zsFUy JmMHDzKKepsvrMuq4ggQOPcxHKNPgSuhdrbF0= 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=3eeg4cPMpf6ZO8A2CN8XTlIX+ceIdjQJrEvIG6Ts4Fw=; b=Bb9L1KwTSDNTxBVtiVMY2Hdx97hCM8Q0OyvXQaMm/TZVR/94ExPP/FZT11zMCfOryq 1tX7kL/+KuxeSRNvy94gi6gcbDb2U4yA15jrh97PNCRs9BltrJ9yS40NJ1EwAe+HvbN1 pEZpzE722dGmzwziN7T335VBroS6JlXDCP/8ZwzGBcYp5DJKPX8tftQVXAi13aEfZ7eL FPd1mqzh4ry/Hu79p9rGR8VrkWdIbiqCyG/hf1GbDcull+4nCOUZ7+mKvjfCOKAghRxk S/mdg6ZmwpLkgM3JKYSEJZ4QeQrq2/gEpQ0b1nyi5ENOKN8Trr/3d6xUlKys3VeRa3uK Oo4g== X-Gm-Message-State: AGRZ1gIj3uMhNlQSFAAJa47VkMAJZotn3eG/I2mfBHnmRnOArTLOve+g VXjsAOw0erPAzI980WYEX2g5KQ== X-Google-Smtp-Source: AJdET5ftv9r5/C4cgca0UT1ygc5rqgGsXmjPT9QBWKUbhGijsZbwSf027FciwTHWChSaUtVbZfzyOQ== X-Received: by 2002:a17:902:66e5:: with SMTP id e92-v6mr3353277plk.92.1540309892881; Tue, 23 Oct 2018 08:51:32 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id o75-v6sm7442829pfg.0.2018.10.23.08.51.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 08:51:32 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 06/15] drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer Date: Tue, 23 Oct 2018 21:20:26 +0530 Message-Id: <20181023155035.9101-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181023155035.9101-1-jagan@amarulasolutions.com> References: <20181023155035.9101-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_085144_039464_180D2631 X-CRM114-Status: GOOD ( 13.38 ) 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: Jagan Teki 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 --- Changes for v2: - drop dev_err - add macro in alphabetical 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 8e9c76febca2..fc8560607147 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -871,6 +871,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;