Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3595586ybi; Tue, 2 Jul 2019 10:13:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnZ8Tul6sJIR9/M/0A3dv484gB8Meblo6A9OxFqeYU0ICQDvFnmEbBNMOBKX+2LRe+hdy9 X-Received: by 2002:a63:125c:: with SMTP id 28mr22302371pgs.255.1562087609217; Tue, 02 Jul 2019 10:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562087609; cv=none; d=google.com; s=arc-20160816; b=S4//XVhcFMEBsXaQ/g08CsoVtyQB0+e9ksdjqnIUP1Fio0SYCFMFO9KgWe1a7JlNEG iwOsOb9g/p9iZgppbYH407ryG+DwmMN11StY5YmIZ5/dBV+QJqcco5etgVh2c/W1k+ww hOK4oFND25fkHbHb22hMjHtPIHW3DoBs8FvDV/gUgwhA2feTRtsUndXKjAov6l72gQUF xBLPPvWF4vzM4GXdlS9ns7PSSchsvzsum/8IxwdNfaZqjd8Nzt/QJKhbOPqjTzJsruJG mpiI8fircoCBdjzy8UiVw6kcaeZ+06j9AQJh/aIntbceliKQRfvOZFpH3/F1rhwi1lx2 7BhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XoF0sNAlHbB2PqfJBA1jXMj4w92+gZnPePjTu0uUobU=; b=ZdjrsMPxsyf9zExIVhhMK9bmV7Wlrf304de6UlFqXFF1+jyYFuWTAeQcUhF+FdRmZt 2HZzLnjWyz4BxvAS6QJtL8vqF4uG8X6Dbgn+0ECB2CiLYMOKLxPRgcqAPIaRfQO4bWjV kIWfu7ZUx2Xdwup33G2g2bfjBFdIFNzcBIBCFE5HyM9ZCFHPCmxF/yT6GavS6Q0xwpfg MRBBhxyTBgmFgBNoqDBCP15phGcktsCF86MoKX7eu5nUmpr2SIWy8Q9xR7jMEueDfMS3 ub8MfUol5AsHIkKoqRXcnDjhH3kKRRIdgttbh5glJ6StUb3166RlAtAWmwodKbwdfLQz kavA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bHw55XaQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si12880057pgn.149.2019.07.02.10.13.13; Tue, 02 Jul 2019 10:13:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bHw55XaQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726621AbfGBRMt (ORCPT + 99 others); Tue, 2 Jul 2019 13:12:49 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44887 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbfGBRMt (ORCPT ); Tue, 2 Jul 2019 13:12:49 -0400 Received: by mail-ed1-f68.google.com with SMTP id k8so27955850edr.11; Tue, 02 Jul 2019 10:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XoF0sNAlHbB2PqfJBA1jXMj4w92+gZnPePjTu0uUobU=; b=bHw55XaQGroF0ylnI35AGP91jmUT5NGLszLbt34h7hJdpUsA1e6tQQINu1L4phDSOr YQKxzV3xlxNsLK2qMjdBeknXnaEuUGAut8p4ynSaVCPcHPbzknLqhsv34RUxlHcfWx6o E10RM4Yp/m1E4sQ5sidfuvWHhiOf8+J4QoDpqwxjv9bSZBGk1b1yy82+IAjxvnCirYYy HhkxpNHrM9UMQggtDzhbmV+fesNi+DGCHw0S9u45uzgtc/A7BJoZte8xmxv8VTm/7o2I qlfUSD+o38eQxz3FG17pdj+1qlK4mx+NngoI0rMsBtqAS3jkDcauyL3TkK+IUt4EcYGN UWUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XoF0sNAlHbB2PqfJBA1jXMj4w92+gZnPePjTu0uUobU=; b=kKrdyJ9C1hzKj2jtsdW+ApYdiAYEPotCN9jfK4bBDErphnd68dSlzWOdm2eqcx9tSa Owf+qULBd2jBrhBC3h6sRT6OZLWbTCM9iSTcYRooWxV06A79E6pI1Y0ppojIpUV2jiEl RHqRnrxgpXj+gkuVJsbaW6ArSZ7Zqxi5BRR4X5BfTXPGJN3FIhfCx88VXhtcjVZWgJjW QsF2oBK0Y9luTuXTlY7QTyL1Iz6bI1DUQ0ylEguUs/+4Knlgs2sPKcyVlnE5eT7tFNmP 3FqPBw2+TTHZc0q0YfCCh2K1tesHb0+SD0XOQ22Vz7X9VIMrhpXnmiG0+hRbhOLfBhud 6RaQ== X-Gm-Message-State: APjAAAWKaIMKaQuSTFEJZJUncNdLDyD4MycrvyhLE8ERNgkeIVA3atk4 Lcrdgc/7TIg/irbzdrT/h5Rnf32m509g/XQwvPg= X-Received: by 2002:a17:906:85d4:: with SMTP id i20mr30449571ejy.256.1562087567246; Tue, 02 Jul 2019 10:12:47 -0700 (PDT) MIME-Version: 1.0 References: <20190702154419.20812-1-robdclark@gmail.com> <20190702154419.20812-4-robdclark@gmail.com> In-Reply-To: From: Rob Clark Date: Tue, 2 Jul 2019 10:12:31 -0700 Message-ID: Subject: Re: [PATCH 3/3] drm/bridge: ti-sn65dsi86: correct dsi mode_flags To: Jeffrey Hugo Cc: "open list:DRM PANEL DRIVERS" , MSM , Sean Paul , Rob Clark , Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 2, 2019 at 10:09 AM Jeffrey Hugo wrote: > > On Tue, Jul 2, 2019 at 9:46 AM Rob Clark wrote: > > > > From: Rob Clark > > > > Noticed while comparing register dump of how bootloader configures DSI > > vs how kernel configures. It seems the bridge still works either way, > > but fixing this clears the 'CHA_DATATYPE_ERR' error status bit. > > > > Signed-off-by: Rob Clark > > --- > > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > > index a6f27648c015..c8fb45e7b06d 100644 > > --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c > > +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > > @@ -342,8 +342,7 @@ static int ti_sn_bridge_attach(struct drm_bridge *bridge) > > /* TODO: setting to 4 lanes always for now */ > > dsi->lanes = 4; > > dsi->format = MIPI_DSI_FMT_RGB888; > > - dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | > > - MIPI_DSI_MODE_EOT_PACKET | MIPI_DSI_MODE_VIDEO_HSE; > > + dsi->mode_flags = MIPI_DSI_MODE_VIDEO; > > Did you check this against the datasheet? Per my reading, EOT_PACKET > and VIDEO_HSE appear valid. I don't know about VIDEO_SYNC_PULSE. The EOT flat is badly named: /* disable EoT packets in HS mode */ #define MIPI_DSI_MODE_EOT_PACKET BIT(9) I can double check out HSE, but this was one of the setting differences between bootloader and kernel BR, -R