From patchwork Wed Feb 28 01:05:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 21064 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3066535dyb; Tue, 27 Feb 2024 17:12:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4ov5GtjGWmosepJOoJWc7iPouyh1SST9dZTpiDgHCMv+1lFv+Ro0GpqlwONtb/DLRGLMlbkpko/Qn9QQoEiJXMBs9pQ== X-Google-Smtp-Source: AGHT+IH94oNemAhkKMR9HA/oDwiC/5tX/iTEV/vNZ2SI4DiF8x0PTRN4Thozx04v1naihw+heuhl X-Received: by 2002:a05:6214:20a7:b0:68f:b5b3:c417 with SMTP id 7-20020a05621420a700b0068fb5b3c417mr4384437qvd.11.1709082728886; Tue, 27 Feb 2024 17:12:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709082728; cv=pass; d=google.com; s=arc-20160816; b=SBwzJNupKkPBzl8t4SGR54XYsvr+HTD2MoZ69avv5kQ2lX+/1Wgselbn3QXHkLDC7n 1esKfGSWeQcR0Ip1VuD8zDgObyx7zGFYf9LfLJtnyo0W/ufUwhrTOmBkwIOCUuKYbcrq 5MRzxA2oQ7eZUCpL/VmvhP1sVubK321e0x6iW7neI+MwvHZzsI75PeeHmPG03gvNVwrL msmbf6hNSwRKouwZD37PmxqQlfrDcP/6d7lWBE0dwIl+sgFzuFaYsvqJk17G5v71qS4Q x6vQypFTaSAExF7EKu4PzedzyvkFErPimAU75SkuNWeIYxaGtEaz/clF2qrEO5SqAJ8l EHUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=M5Amh+qBo3n8SZ1SFRORiYxCnsIvquzWzeGyrkguO0Y=; fh=L1oYUBTjjbItavdCRnbhBvDSDuLB7ADGKKEO7ZKV5pY=; b=Xq0IDFeIRdI7ahkTimGh0t6RZuW/x/ZBC7shWZ8qLbIPKIJOmW6Z1IAJpR62hNSybG K2QJFJec+DJrKqVsmm6iUMyjgMuRXVB46CxZshyqCBHYgLe8ZPgNfw1TBy7FAIoTp4sV sbpDywjQcARCS8xw+H6/Yus4aVXElKjs3sKC+RQv+U1OrGr4PnLTwGN/pC2dt5E60ccu F/tLbRrxC1YfjxMnwCdtV9fxF1HeVNvxvNtkaE830dL4kaBfhLD1GdHn47zSgWpxJoj1 XLkJ86qlmPuc8bzsjrQlUDf6eRfXU+asWGnLrRAIm8tmy+LWUx46+vHrWvQMKEMVqLCh 8XQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AWlcWOiT; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-84305-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84305-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gu3-20020a056214260300b0068fcfc7c8a2si9263401qvb.382.2024.02.27.17.12.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 17:12:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84305-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AWlcWOiT; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-84305-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84305-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AA5421C25174 for ; Wed, 28 Feb 2024 01:12:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1875610C; Wed, 28 Feb 2024 01:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="AWlcWOiT" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA3D7111E for ; Wed, 28 Feb 2024 01:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709082699; cv=none; b=NDe/D+CQx93xogIxz9LxJGKBq0UAcf7YE4coZQ67xHauweqkMst00j/WAr93tr8+f3nmigdmAJReXeAxCNikPCT/1m0FpwrsSyu7hn/20jNLKFo0p8Pfbnoa5tFONR9CaGqX9SY61IEa5U8g0HmD7OROsWu90sPMzo9Y1JZldNI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709082699; c=relaxed/simple; bh=K2+cQMqQu0eaS0de3IxPWO1JWc7t415OLftE4xj9Ahw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eP6XIbbYTFY3MfRW6DwhmBt2PCXt1judtipWLlTlj325k51Nan/DlGAD9p0KOzIb6IIFvmWn1V/AlW0lqmJ30bhu8LnZX76bNGc4lRcFWYpaGQDtHot4naCNCZ0suYNkwSg6F+g256/UPWMzpqwMwiIj8RJ6K4aFyGCAY6mlBEo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=AWlcWOiT; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1dcb3e6ff3fso16992845ad.2 for ; Tue, 27 Feb 2024 17:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709082697; x=1709687497; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=M5Amh+qBo3n8SZ1SFRORiYxCnsIvquzWzeGyrkguO0Y=; b=AWlcWOiTlYX3Gd44zEbVMCnE1g0X/BlV+zxulWGl89WfP8OrSMG+NP30f2XpP7QAXJ G4BQ5k1FilmjrF7QcUb+B1iCzjjN8P/I/AIqf/DsEzQSuSYRKjs6qKGaKL/0O8yTTSnB Ddu9rX5803O2OQis+tM2L98wJACik9esKZPW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709082697; x=1709687497; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M5Amh+qBo3n8SZ1SFRORiYxCnsIvquzWzeGyrkguO0Y=; b=gaed4+kcGyjHOBqMFw+ZT+xpM7f5mD0Q6sQp2R9LBFaBoq9/M+VRQHZOSmqsvNAhs/ 4k1GlaBMtTLwu/SvHyiq/sveXPNGeysVdCQeZFnS8l0IaQlEOccU6OxsdBNPbpK/UALx At/hMDIlYUBlA7ALIxBAMbTkzWFICMO13ZWetV6a1TghKJrG728hQ8rjQVqRQihr4f9D wuOE+m9Ex33CB18ARr7TyFU+225Wxxaqi2Pp//q+drI3gsX/7e3cUm/4jpVJdUIG/4Ya +mYsW07hCbd5HfiuCUDEdMp3yCa+vuUG7fxnhtmQXrKuWnTGDSSh3m+S9ifJE24xqzcG UYvA== X-Forwarded-Encrypted: i=1; AJvYcCUVkU+7OTIembt+WbQa9iA5cl1EH6NJfJMAgw0/K+V0LLMTZmz2FP4IRdT8N+/m+vGNlGbreaqBezXteQ3v5l3fjvEjb0t5rJmyW2ds X-Gm-Message-State: AOJu0Yx9RCQS7hA1UN27QnRmxoBWsTlba7ox0bHu75KZ1hPLQCdffB2/ ec+vf6BJAB19YJma3OyJDdEITde/VA7Lsj7CFyCF8Xg1JCw1Rhhn1ECcMVhRRg== X-Received: by 2002:a17:902:c946:b0:1dc:7ca:36de with SMTP id i6-20020a170902c94600b001dc07ca36demr13094236pla.9.1709082697093; Tue, 27 Feb 2024 17:11:37 -0800 (PST) Received: from hsinyi.sjc.corp.google.com ([2620:15c:9d:2:87d1:e95d:b670:4783]) by smtp.gmail.com with ESMTPSA id kl14-20020a170903074e00b001db4b3769f6sm2131529plb.280.2024.02.27.17.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 17:11:36 -0800 (PST) From: Hsin-Yi Wang To: Douglas Anderson Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] Match panel with id and name Date: Tue, 27 Feb 2024 17:05:57 -0800 Message-ID: <20240228011133.1238439-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792103131205731279 X-GMAIL-MSGID: 1792103131205731279 This series is a follow up for 1a5e81de180e ("Revert "drm/panel-edp: Add auo_b116xa3_mode""). It's found that 2 different AUO panels use the same product id. One of them requires an overridden mode, while the other should use the mode directly from edid. Match the panel for both name and id. If not found, fallback to match id. v1: https://lore.kernel.org/lkml/20240223223958.3887423-1-hsinyi@chromium.org/T/ Hsin-Yi Wang (3): drm_edid: Support getting EDID through ddc without connector drm/panel: panel-edp: Match edp_panels with panel name drm/panel: panel-edp: Fix AUO 0x405c panel naming and add a variant drivers/gpu/drm/drm_edid.c | 114 ++++++++++++------------------ drivers/gpu/drm/panel/panel-edp.c | 61 ++++++++++++++-- include/drm/drm_edid.h | 3 +- 3 files changed, 104 insertions(+), 74 deletions(-)