Received: by 10.223.185.116 with SMTP id b49csp8780211wrg; Fri, 2 Mar 2018 07:51:44 -0800 (PST) X-Google-Smtp-Source: AG47ELuaYBgQaUOPHSz1JadgL5qUgMDlcGWTU1SgQqLKttrmQJ0/v7x0a7Y27VVGLN8GzqqFDg1/ X-Received: by 2002:a17:902:b58e:: with SMTP id a14-v6mr5464082pls.76.1520005904700; Fri, 02 Mar 2018 07:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520005904; cv=none; d=google.com; s=arc-20160816; b=t0SIYU3lkwtslWQ+hVu3taP76y4Wku1a/zEu7nKsKpDTeNN+GkL5Pc6qg/xIEvrAm/ ggYEDfggTky6RLssXeFDvyTP7jS5kUNQ4erwkqXz6rddAjlox5oGtv7smiuyhcq+FaYc pRSzRPhbjrgQkv4DV7Xu1ZSVq/BrB7Cm8yT5JwGXyGj/95k0hdHPIA8Ire6HmPE+KqKh xKwOxyfPj64EkRjtXXExgVEAfjU2MT3VuH/4QhsnnFgVXBKfLpgzauDzT+hAM6Ds2iB0 ikZYXOwy3Tol3aWJQC+PBPyzov4icLQfQxaUoB4X9QvfNSu2ltzEU2OtnFOe5pykAnoy +xZw== 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:arc-authentication-results; bh=UdV+dcz4eR99GhCDvvW9IhsQC+RaH/gaRzLlM/qJ0E0=; b=tjyFeXypLem5KAnCBMMXbd4HnH55hHuIu7oDodPNW58U8WWKfxFF9XoL/SdRInT1Em CdLMMv2A4abOi0vqJH7Mp29Ilc1mtHpQWQz/aafiEEDX6WoocdPP5e8nyHrHwgowYcZ5 jvHwPzz10ifVTAwISQ+P2QatkVScT60ocuGdZdTsZotT11rn7uG4WXzvDJIk50iqzPE2 zVCDfqNwXdfYq8/s9QK1xdJ7YjzARiLVlEzPM6s218xZXxOxMPBEbUaR2ZHQYAUkrzUV 9GOlyOIHnEjK9kpVdiK7AhsPwQmFB14D3zltTbrRhqZYG3XC5dL9UoppEeO95D5J4AmV bRug== ARC-Authentication-Results: i=1; mx.google.com; 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 v191si4144128pgd.807.2018.03.02.07.51.29; Fri, 02 Mar 2018 07:51:44 -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; 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 S1424802AbeCBOht (ORCPT + 99 others); Fri, 2 Mar 2018 09:37:49 -0500 Received: from mail.bootlin.com ([62.4.15.54]:34148 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424605AbeCBOhs (ORCPT ); Fri, 2 Mar 2018 09:37:48 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id CE748203B1; Fri, 2 Mar 2018 15:37:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 8384920376; Fri, 2 Mar 2018 15:37:35 +0100 (CET) Date: Fri, 2 Mar 2018 15:37:36 +0100 From: Maxime Ripard To: Giulio Benetti Cc: David Airlie , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] drm/sun4i: add lvds mode_valid function Message-ID: <20180302143736.kkxx54og2ppcmpzh@flea.lan> References: <1519840432-61489-1-git-send-email-giulio.benetti@micronovasrl.com> <1519840432-61489-2-git-send-email-giulio.benetti@micronovasrl.com> <20180301095721.4iga7dcgg566j44m@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="t5i6yb5trfttukcl" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --t5i6yb5trfttukcl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 02, 2018 at 12:42:14PM +0100, Giulio Benetti wrote: > Hi, >=20 > Il 01/03/2018 10:57, Maxime Ripard ha scritto: > > On Wed, Feb 28, 2018 at 06:53:52PM +0100, Giulio Benetti wrote: > > > static struct drm_connector_helper_funcs sun4i_lvds_con_helper_func= s =3D { > > > .get_modes =3D sun4i_lvds_get_modes, > > > + .mode_valid =3D sun4i_lvds_mode_valid, > > > }; > >=20 > > This should be on the encoder, not the connector. >=20 > I've seen it is bound to connector in rgb and to encoder in hdmi. > Is it correct rgb mode_valid under connector funcs? > Otherwise I send a patch also for that one. This would need to be fixed as well. Bridges attach to encoder, not connectors, so if you ever have a bridge connected to the RGB output (like on the A13-Olinuxino), mode_valid isn't called at the moment. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --t5i6yb5trfttukcl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqZYa8ACgkQ0rTAlCFN r3Q1GQ//Q9/viLpoCbU8KGqwIspUtP4HKMX5ly6O6f6dk0zNJRfDLsYZaEG8RddL usJk3OzvBN2t+XgRDcM8M2k6/hVClcCsgBzp5XkcVI9s9r2eCnDZBl6BPhp+EA7G eWD4vjIm/uWuylAElD3lOjEJ/tMXp5atQHCF9fM4X5RTfAQpJndtHFUYHd93BwaG E7JXjge+T8eQBd8dYfLh47cn7umbMoNE9adDy9nFH6V80lG35lIDcT54ehSGfjVD IQb1AAVRQyd8nLqHV/DArAKDnJizpbfYQEUPO1HHLeV0X9GYrWXo6AJhH152ntPQ BDYy2HJZQUQk/cTVTZixbatM4JR2sMBVZ7dLmtlfsqWHvyEAOGSvpK1M0aKqnEzl UwCGHi6NH/JgjGrx1s4P9FZnli6B6BcQ22HPfBrAfWufSUZYGZ6YDMguQyrGJ7JR GlORF0yFPvmwt88QCPvBBllQ1lHHpKh2NFprAbyxFCbmGZ8HHKRhtrI7I9E8Xdam dJOWr36W3TyQO0BHmRP6BBohbYWastboXdB8HVFdJtP57xwwk3YXMpCPJMovJw4K /TQwswtWTXJo5paJMicFa65sW8xNfFWsUUZs32lfKmIs7b4slyPfN1s8j/dvXjIW G4Wiki3Nzcg7NEpVXmpxs8sSa8kNWbKz3io9B3qfuoammzCXOpc= =zBQJ -----END PGP SIGNATURE----- --t5i6yb5trfttukcl--