Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5902046ybi; Wed, 12 Jun 2019 10:22:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOw/OCClZdxHBEmqaQ2fej+CrKsSbVwn99lhPxDycWisFBzdQ/7Oj1jnHIASnUFFuYNWc5 X-Received: by 2002:a62:2506:: with SMTP id l6mr87251415pfl.250.1560360173016; Wed, 12 Jun 2019 10:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560360173; cv=none; d=google.com; s=arc-20160816; b=tz8dE9CBSr+LfdpmWubXsl6oKQ+pXN7GxeLOrbg8opMdDwa3Y16xLNevKkfbqtL2Of GNCdfYk+I6cFD2NUM5LM45Kr6ocfujsHprnR9UXv6IVkc70mmQYVXj+U4B0uT8ZXH3xR DMEqu+jkD9evW+NMsGxEZn1UDRuR5blUXMS76kc8C0G2CeeWhvX7HvQi0LVn2Vq+74d5 RkUihGdSQQcxC/L3C/G3UEERp31HlsS59Y8yzRosFngWRlPRim5dHnEw6xYczOp+VNwi XeYUyaz1O8hxNED4o7OwK2rQN0FFIVbmCF6C86eFyp8QfJYdniKZh9++RxWsYzO8svHi mB5Q== 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; bh=/9+BscyBSG8LtxRtL3bsLVsuCvjxfppgNJUSn3pi0BA=; b=sqb3eT63wzjlKwxJJL/vFO2qVZG/f6Zy1llxtTXy0lypRLo7OgjRC+nBeSqA5pHV4h 9JPUhN0g9lm/3W2sGy44qk3T/JNP+Edjcz9B34AwScDbH+biCl0ViWwt84y23yTrFgiO ZVDtnfSo+tchvYglAxa5uVJ+TuBMnZZO597mjYvOMmpcg48jpldLE8KxWE6/zJ0xooKz +T2Ek2oxE0P5uxLh59ioCv1/+LsuHtP2H9q44qvw1w4u4TVA9oxyKnCTg4Ixc6Q+YcGQ ZIWdzQudr6E0TuGgpBDvBh/AinJ8VGBfK2HAZjB3h9J4fEdvBRhWJ83sb7n2JeDQMiTV CjkQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si303222pgi.365.2019.06.12.10.22.38; Wed, 12 Jun 2019 10:22:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439029AbfFLMdJ (ORCPT + 99 others); Wed, 12 Jun 2019 08:33:09 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41735 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438948AbfFLMdI (ORCPT ); Wed, 12 Jun 2019 08:33:08 -0400 Received: by mail-ed1-f65.google.com with SMTP id p15so25465915eds.8 for ; Wed, 12 Jun 2019 05:33:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/9+BscyBSG8LtxRtL3bsLVsuCvjxfppgNJUSn3pi0BA=; b=dHKW1qzNZwyMVOn+qHOePUQ35FtWe1LEhdHRgQQ6XejmTk73mI96UnD0DRfyc0b82b agVXEKrYAal+c4XlyDbWwTf42Q3Ek06h2zAPI4lfi4MufDeQIoiMMYsZ78cKTlDn25vx /NtTc8w2oP3ThoCqlSXI8e6PAElGTvic+3CGAfLQGo3+O1T/xMBMe19YMs2pWVCFCmIt 4O3enn5J6iE4EIDsNs/O29VE2WDl9eM1SRh2B6HIpLEvCg7rKP1PiozuBdiYrLqIUKd5 O6crjGl9NUWFT9SfqIOIfXZQ8vFyZEwdTn7weXz5S1RB7HxPgVb64VKDJic3uUqeJWkj DGAA== X-Gm-Message-State: APjAAAWSKiNBdcDJHUkvSpnaIofCdlav+q0oEIWgOiHO88uqxrzBwqcg ++j8xz9GWXHNZxAVMwC5rmeQEQ== X-Received: by 2002:a50:b561:: with SMTP id z30mr32633599edd.87.1560342787019; Wed, 12 Jun 2019 05:33:07 -0700 (PDT) Received: from shalem.localdomain (84-106-84-65.cable.dynamic.v4.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id c21sm2784931ejk.79.2019.06.12.05.33.05 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 05:33:06 -0700 (PDT) Subject: Re: [PATCH 4/5] drm/connector: Split out orientation quirk detection To: "dbasehore ." Cc: Jani Nikula , linux-kernel , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul , Joonas Lahtinen , Rodrigo Vivi , CK Hu , Philipp Zabel , Matthias Brugger , dri-devel , devicetree@vger.kernel.org, Intel Graphics , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/Mediatek SoC support" , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= References: <20190611040350.90064-1-dbasehore@chromium.org> <20190611040350.90064-5-dbasehore@chromium.org> <87zhmoy270.fsf@intel.com> <01636500-0be5-acf8-5f93-a57383bf4b20@redhat.com> From: Hans de Goede Message-ID: Date: Wed, 12 Jun 2019 14:33:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12-06-19 02:16, dbasehore . wrote: > On Tue, Jun 11, 2019 at 1:54 AM Hans de Goede wrote: >> >> Hi, >> >> On 11-06-19 10:08, Jani Nikula wrote: >>> On Mon, 10 Jun 2019, Derek Basehore wrote: >>>> This removes the orientation quirk detection from the code to add >>>> an orientation property to a panel. This is used only for legacy x86 >>>> systems, yet we'd like to start using this on devicetree systems where >>>> quirk detection like this is not needed. >>> >>> Not needed, but no harm done either, right? >>> >>> I guess I'll defer judgement on this to Hans and Ville (Cc'd). >> >> Hmm, I'm not big fan of this change. It adds code duplication and as >> other models with the same issue using a different driver or panel-type >> show up we will get more code duplication. >> >> Also I'm not convinced that devicetree based platforms will not need >> this. The whole devicetree as an ABI thing, which means that all >> devicetree bindings need to be set in stone before things are merged >> into the mainline, is done solely so that we can get vendors to ship >> hardware with the dtb files included in the firmware. > > We've posted fixes to the devicetree well after the initial merge into > mainline before, so I don't see what you mean about the bindings being > set in stone. That was just me repeating the official party line about devicetree. > I also don't really see the point. The devicetree is in > the kernel. If there's some setting in the devicetree that we want to > change, it's effectively the same to make the change in the devicetree > versus some quirk setting. The only difference seems to be that making > the change in the devicetree is cleaner. I agree with you that devicetree in practice is easy to update after shipping. But at least whenever I tried to get new bindings reviewed I was always told that I was not allowed to count on that. >> I'm 100% sure that there is e.g. ARM hardware out there which uses >> non upright mounted LCD panels (I used to have a few Allwinner >> tablets which did this). And given my experience with the quality >> of firmware bundled tables like ACPI tables I'm quite sure that >> if we ever move to firmware included dtb files that we will need >> quirks for those too. > > Is there a timeline to start using firmware bundled tables? Nope, as I said "if we ever move to ...". > Since the > quirk code only uses DMI, it will need to be changed anyways for > firmware bundled devicetree files anyways. > > We could consolidate the duplicated code into another function that > calls drm_get_panel_orientation_quirks too. The only reason it's like > it is is because I initially only had the call to > drm_get_panel_orientation_quirk once in the code. Yes if you can add a new helper for the current callers, then I'm fine with dropping the quirk handling from drm_connector_init_panel_orientation_property() Regards, Hans