Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1438880ybx; Thu, 7 Nov 2019 11:53:31 -0800 (PST) X-Google-Smtp-Source: APXvYqw3mgpynGG8eJUn97mXL1jYDLvoTD4yFs9j+KyIWXa4OinjcTRbUPGgJ73fLq3s0ZgDgu1n X-Received: by 2002:a50:da4b:: with SMTP id a11mr5671175edk.17.1573156411237; Thu, 07 Nov 2019 11:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573156411; cv=none; d=google.com; s=arc-20160816; b=gaQWD8YlxgiP7lSeGbg7cW4Q7FOn7Mg9TZacuFKDTjSZm3SZ1f0XjTHGIMb8lKh0zv TblCryXFOQPefPMSbCW/PxzL57BpmmEtB8vGRD8Pz/PBbqat8NbID93UaXxP54u2xITV Jj/IJA8UsrayZuEq05nu/RyHMRXKbIyhOLeZZ/febz7rvsqfrSQWxyfL7R951kNyL/Dh plBwvfX82iCcIpU6jtK8wVNghOHo5qAkzmJtjZhyevC8qvgvGUoKGg+U6qf9WzbfSVIP J6gi8JTU9N/GWUiGWhV+0+/nFoFYNLc9X8+MAnC0qAKDsQAayyp1LSZEYZNSt8cxy5Ij X/Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U9RJa0YB7/xdrhH7k2zyc/sE9vpQJmQQ6vSAHOQWnNU=; b=hMP4dcsd0zipw2S0Iyb7WYFEi9gn7JCML4gRfxfC81+mvZB6r3+PrB0djF2XFIgh0E 1hii/uPtHVd42NVfrzZBos4KW5tDR/kk/KkjbwmVVbi3n/lLJzksfBNuPk8xGzO7kmTI ZlURXrwYNJuYxS8G0t0CEPKxwlSSpk7+rNS8xq9/ZvhF5lYWEvD0rYKLgIwyvNCIPpd/ oAuGXdfrecp3iYLqlv90EhhPGDqR+1Co5fKYuTOm4AlnSV/kZeUaQjjWzKhe9cBJEv2J XEhWS087OeRDjFT1oSq4D4sBlkvBy9vA16+OKqG2I1Y/7oR58coMyFgntKST+7UjozeS G6cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=O5JEr6om; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m20si2099012ejx.33.2019.11.07.11.53.07; Thu, 07 Nov 2019 11:53:31 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=O5JEr6om; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbfKGTw1 (ORCPT + 99 others); Thu, 7 Nov 2019 14:52:27 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33660 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbfKGTw1 (ORCPT ); Thu, 7 Nov 2019 14:52:27 -0500 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 681F071D; Thu, 7 Nov 2019 20:52:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1573156344; bh=kazRCQV5JWHrZPbNlTQFxg3ZB3fL5gW+pdi4x+nRfWY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O5JEr6omSQikk2K3y0bWvRAqYz3kcAWskkk0TMSRebEr161BrNjX7tdR8E4tCSwZm FEaXYawQZCtuJ0iSB138PhoAZkBl17/d62qD8AKaG7dLWsezFfMNLChdtZNtNQZzIg jSv2423pD72PNcL+o2sEI5Ltiy4b4jiWpcMN4GNU= Date: Thu, 7 Nov 2019 21:52:15 +0200 From: Laurent Pinchart To: Fabrizio Castro Cc: Andrzej Hajda , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Simon Horman , Geert Uytterhoeven , Chris Paterson , Biju Das , linux-renesas-soc@vger.kernel.org, Kieran Bingham , Jacopo Mondi , sam@ravnborg.org Subject: Re: [PATCH v3 5/8] drm: bridge: thc63: Do not report input bus mode through bridge timings Message-ID: <20191107195215.GJ24983@pendragon.ideasonboard.com> References: <1567017402-5895-1-git-send-email-fabrizio.castro@bp.renesas.com> <1567017402-5895-6-git-send-email-fabrizio.castro@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1567017402-5895-6-git-send-email-fabrizio.castro@bp.renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabrizio, Thank you for the patch. On Wed, Aug 28, 2019 at 07:36:39PM +0100, Fabrizio Castro wrote: > No need to report the input bus mode through bridge timings > anymore, that's now done through the DT, as specified by the > dt-bindings. Doesn't this break backward compatibility with older DT, as mentioned in the review of 4/8 ? > Signed-off-by: Fabrizio Castro > > --- > v2->v3: > * new patch > --- > drivers/gpu/drm/bridge/thc63lvd1024.c | 9 ++++----- > include/drm/drm_bridge.h | 8 -------- > 2 files changed, 4 insertions(+), 13 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/thc63lvd1024.c b/drivers/gpu/drm/bridge/thc63lvd1024.c > index 3d74129b..730f682 100644 > --- a/drivers/gpu/drm/bridge/thc63lvd1024.c > +++ b/drivers/gpu/drm/bridge/thc63lvd1024.c > @@ -34,7 +34,7 @@ struct thc63_dev { > struct drm_bridge bridge; > struct drm_bridge *next; > > - struct drm_bridge_timings timings; > + bool dual_link; > }; > > static inline struct thc63_dev *to_thc63(struct drm_bridge *bridge) > @@ -62,7 +62,7 @@ static enum drm_mode_status thc63_mode_valid(struct drm_bridge *bridge, > * isn't supported by the driver yet, simply derive the limits from the > * input mode. > */ > - if (thc63->timings.dual_link) { > + if (thc63->dual_link) { > min_freq = 40000; > max_freq = 150000; > } else { > @@ -157,13 +157,13 @@ static int thc63_parse_dt(struct thc63_dev *thc63) > > if (remote) { > if (of_device_is_available(remote)) > - thc63->timings.dual_link = true; > + thc63->dual_link = true; > of_node_put(remote); > } > } > > dev_dbg(thc63->dev, "operating in %s-link mode\n", > - thc63->timings.dual_link ? "dual" : "single"); > + thc63->dual_link ? "dual" : "single"); > > return 0; > } > @@ -221,7 +221,6 @@ static int thc63_probe(struct platform_device *pdev) > thc63->bridge.driver_private = thc63; > thc63->bridge.of_node = pdev->dev.of_node; > thc63->bridge.funcs = &thc63_bridge_func; > - thc63->bridge.timings = &thc63->timings; > > drm_bridge_add(&thc63->bridge); > > diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h > index 7616f65..3228018 100644 > --- a/include/drm/drm_bridge.h > +++ b/include/drm/drm_bridge.h > @@ -362,14 +362,6 @@ struct drm_bridge_timings { > * input signal after the clock edge. > */ > u32 hold_time_ps; > - /** > - * @dual_link: > - * > - * True if the bus operates in dual-link mode. The exact meaning is > - * dependent on the bus type. For LVDS buses, this indicates that even- > - * and odd-numbered pixels are received on separate links. > - */ > - bool dual_link; > }; > > /** -- Regards, Laurent Pinchart