Received: by 10.223.185.116 with SMTP id b49csp8842555wrg; Fri, 2 Mar 2018 08:52:02 -0800 (PST) X-Google-Smtp-Source: AG47ELtYxfv3dYXXm3ZT2jZegpVRAUIlP+Y6L8NKkGgLT0BbZtkl3NGFmn4fbUcrFMak3pGpysf0 X-Received: by 2002:a17:902:50ec:: with SMTP id c41-v6mr5822994plj.208.1520009522754; Fri, 02 Mar 2018 08:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520009522; cv=none; d=google.com; s=arc-20160816; b=At+jTLy3YQstiQZe8KMCe6d6jgzwuG09E6NNeP9TBtwbg+KAylemMj0WmEY5x6cSxP BOaPl7jLKJAyELCbW6llqt+RfpFXuL5TbNtwxYfeFee6gSGlAOiTvAmaYwbTYJgm2fju AoT2J93Oobg53MevVDgNeIh2m1JO+5nWt1k3CwI0oXBU6yzJZiMr3zoGuWPERSQNUewH 3YiunyX3vFzxWQuFCszOwr4HS1An+x6PMY1ArPTYaT5qEkBV5a4FzPIxnu2D8RcTfwxE weBmF3PCwc9gpvaBB2wGFOEwrOWRs/IdUbyXzYEkzgJ81a2gahtRGe5pjAdEUDMo7G1m ICGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Fh1h/sr9r9ayc489yiq9+xvkLhyGRLLJX9Fhe6cxcLA=; b=sEkAUCPHyAFm1mz+VCjDlkihiXcC75qZyg5TrFx1XK49cUWI+WwXwuVWmgbcOzkcQ0 /H9FVOqBb9ML8Vv+chjHMgNRN5+YRObsgJWvRJAbmjvavmAvWqqKn0DaItvekuLCp90M yfI5laOamAIWR2TNYC4nwq0NFPiPsAhPfAoBlvWtwIL1VpKuHyyaRGLV6j/QJ67alMi5 ySOdPWcFh0Xl9d46X/ODVmMjfLgOmztYE7YBpqYQdcOdNBHkFPNucLPzBI79ok7yqEtU HoCakaiS8Y+fNtR07cK28ECw6HWV6H7asSCAexF/88X0QSjyXVOfc9FuuRtiraTg27ru oy7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=muR6cyRa; 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 u6si4201684pgc.707.2018.03.02.08.51.47; Fri, 02 Mar 2018 08:52:02 -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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=muR6cyRa; 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 S967988AbeCBQu1 (ORCPT + 99 others); Fri, 2 Mar 2018 11:50:27 -0500 Received: from mail.micronovasrl.com ([212.103.203.10]:33666 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965207AbeCBQuY (ORCPT ); Fri, 2 Mar 2018 11:50:24 -0500 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 5EE51B00B70 for ; Fri, 2 Mar 2018 17:50:23 +0100 (CET) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1520009422; x=1520873423; bh=UBp0dncLvXBGbqs4Z9Dz0fn6bF7y0HAPj+x IQR/ZoaE=; b=muR6cyRaL4oAVt03vodrN5D/Auxfp3lA+NoWnyxKb+RIBR4zcoH dqk2JHrvr0psE0ThAn8nKnJf3VZwLahxUstvgFnFMJqo9Od0vYEascEEp1PWnzXT OQWAq6hQBlj2YnJXf3DGCKWV6nEgKPUbVbfynvU7RWjVrnsi5XYte6KU= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VYhJ2H0FPPop for ; Fri, 2 Mar 2018 17:50:22 +0100 (CET) Received: from [192.168.2.69] (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 65403B00399; Fri, 2 Mar 2018 17:50:22 +0100 (CET) Subject: Re: [PATCH 2/2] drm/sun4i: add lvds mode_valid function To: Maxime Ripard Cc: David Airlie , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <1519840432-61489-1-git-send-email-giulio.benetti@micronovasrl.com> <1519840432-61489-2-git-send-email-giulio.benetti@micronovasrl.com> <20180301095721.4iga7dcgg566j44m@flea> <20180302143736.kkxx54og2ppcmpzh@flea.lan> From: Giulio Benetti Message-ID: <0d10e2ef-8b7a-3ec2-fb8b-ee72345cbbb1@micronovasrl.com> Date: Fri, 2 Mar 2018 17:50:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180302143736.kkxx54og2ppcmpzh@flea.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Il 02/03/2018 15:37, Maxime Ripard ha scritto: > On Fri, Mar 02, 2018 at 12:42:14PM +0100, Giulio Benetti wrote: >> Hi, >> >> 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_funcs = { >>>> .get_modes = sun4i_lvds_get_modes, >>>> + .mode_valid = sun4i_lvds_mode_valid, >>>> }; >>> >>> This should be on the encoder, not the connector. >> >> 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. Ok, I will do the same for rgb and submit a patchset, need some time to test both lvds and rgb. -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale € 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642