Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3592367ybi; Tue, 2 Jul 2019 10:10:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrj4OFOAnPVvBFA/dX1vH4SWJI7aShQrQ3ZGt31bBlBo29VSvZaGsGc+CVIwW/oRbus5P2 X-Received: by 2002:a17:902:4e25:: with SMTP id f34mr36201138ple.305.1562087437942; Tue, 02 Jul 2019 10:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562087437; cv=none; d=google.com; s=arc-20160816; b=irtlcDqf5+1rOS5wFt4iq36KIhMMIz98bx13AR764aBXHUiVOUJKmm+/DUoqucU8Hp M8v0FOkRQnHFS+nlqMYyUDIJn0rfScP53Rq7G8jwqgtaTL+cKuSh2psVUiH9I0PnzkeJ 9wcuqrQwbr3Go9fOLjOAKs3fUL4CY57HGofgYAohZtHEd2AqM3oAWCXigcaxbfwAms0f P6stG5NxHmfnz/szok2UYJNTG6MiuLPEOptG1o2kZp60yOL9AttnaLQ1nZE7FOBhQ+RD 0hZV+IHZQ+zqNSajFjq6M5wOOsC5OlbuUPKO1r2/Z70qP1cJa358wBBswJ3bKfjEBaUi S4Lg== 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=fqaJi0HrAK4+dk3eMEGg3q9k+ySNsfHxhG2IP9d4UEs=; b=CoofZV/KB1P0wG/d6fcysGjozzf6Lh8m/cmPc56p3cm/uH/g6+f4FfHjPxv3BMIpXt MN0nwIFc0VkmEvpqAL6zENd7Ou7PYaNJHtu1zcKWbNzNJfH3+/W82ij3EdYcDeu9s7xp 9wA5qZt54mZIx0VazWWP5zQE9ubqbEta8C0GqFXaL/kPHj/tTD4LaFRsMnZ/P7oUkyIQ 6ZkgcHfpZFLoANCA/rO8P0we4kT8PDomAifXEYy3qA5guH/eSDniuOnI6X+Js50pF0jx m37HYzVSHjvbw/qR2fDYhilbfNGSW6doIu6Oj4KT7OyhVoRVPtKE+/B4hnaU/e9GSbSm Tprw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AVTZR9N4; 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 t14si15129543pfq.88.2019.07.02.10.10.22; Tue, 02 Jul 2019 10:10:37 -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=AVTZR9N4; 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 S1726369AbfGBRJz (ORCPT + 99 others); Tue, 2 Jul 2019 13:09:55 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40017 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfGBRJy (ORCPT ); Tue, 2 Jul 2019 13:09:54 -0400 Received: by mail-io1-f66.google.com with SMTP id n5so38729306ioc.7; Tue, 02 Jul 2019 10:09:54 -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=fqaJi0HrAK4+dk3eMEGg3q9k+ySNsfHxhG2IP9d4UEs=; b=AVTZR9N4fUw9Rrth0jwcYm+mer+PVCcsHJlQbUWbkebZAGe6S0bsqdJ2WC2VpYZ7OC e6A3Az1SaumtPiznF/a16IrnPY1Y+9kKOSh4QtrGrp5fXq3rVJ+AIDYVnGBLMcACNBYL BIyrfH5EgMdhFAo3jb+hRIwPFnBChAtmB+i1wo41CtcqC+V8EFdc4lHisj+VkuZqC3AP MXBH0+UlYDeHOeEP67NpZTU1b0FcWVOJ5QI7P6D/jin8usF0OYNKgLTFOKKfv908OyhT 9MIb/3xfjEAk7tPgOqr3CBPNmu3h3Y7nubuhGlDj5KJMGAJZKvn5HMfWjYwJqUv9FgKX CSuw== 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=fqaJi0HrAK4+dk3eMEGg3q9k+ySNsfHxhG2IP9d4UEs=; b=ItCEjj2lcHWJUuIxMZQy/kDrvKv3BaM4la+Jw/9DSWma2o/TYbdql0+EZxe+taworl Tcc39LphcTEtV98YOOSIeYgjFWk711j6w7udOcClt23ggnmSq/uxueKbzGXHV3tU1dQ9 zlsKrfys4r9ND04p61WGMd9DPfcUsgRfvpRcIiLhodLH/+PW8S1XAjqTJLj+Ud1vh2s9 M9KDUXLfIRjd+5XAj42nj74zc3bXBO64Uu2GWimxbP62R6KA4aa/iDp36cgnOj4bGsLB vXEFM2uqCyk+thMOG3i9RQMbSFmnwGxsJ1cPVEWOVwpSFMpujFeJqX8RgH1ZHdtJr1Yq Sc0Q== X-Gm-Message-State: APjAAAVJRKjoTwZdQ08DjspJogn3npriKYwMw55x0QacUP1MC+662Ssd 5gC2oAlwp4AraF6iKFM8eovXOVO+tQCjMHFlyrM= X-Received: by 2002:a6b:b987:: with SMTP id j129mr31360848iof.166.1562087393986; Tue, 02 Jul 2019 10:09:53 -0700 (PDT) MIME-Version: 1.0 References: <20190702154419.20812-1-robdclark@gmail.com> <20190702154419.20812-4-robdclark@gmail.com> In-Reply-To: <20190702154419.20812-4-robdclark@gmail.com> From: Jeffrey Hugo Date: Tue, 2 Jul 2019 11:09:43 -0600 Message-ID: Subject: Re: [PATCH 3/3] drm/bridge: ti-sn65dsi86: correct dsi mode_flags To: Rob Clark 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 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.