From patchwork Sat Nov 18 17:42:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 166607 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1295905vqn; Sat, 18 Nov 2023 09:45:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9GD0JMDgAX68hLt2R5wb3FyCttxruw7/NcnTE+r1fZh2LPWd+sHHQsKfW5loYFdSjkkRT X-Received: by 2002:a17:902:da88:b0:1cc:6fa6:ab62 with SMTP id j8-20020a170902da8800b001cc6fa6ab62mr2951399plx.29.1700329508710; Sat, 18 Nov 2023 09:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700329508; cv=none; d=google.com; s=arc-20160816; b=QGWFPdxzDMrWSZJUlMwNmz9qCiHof4f0aUU/5pOg5lVIQPt2X9OJZH6JA3y7VmzuXU sjowSWj6BBgKGRf8Ik2pSen5SlDjXVjGD8BONoTlesrM4uV732e11niZ27gmCWEOj5Io 3/Ejw7rPCxnJWxEP/C9IXPEgsvY2oYvOcRqdZCSyhp4iKMIcshb6pyL5sMd0OscX7BXR PTqi7h3YMGETtUs5Dem6wKgt3eDAResWJWubL8IBzZ0JXzBkMttyKYk9dNdAGQfyxKX1 9RXDq25Uvg5FCctQp6GCPN4D008RY8pdXZ7pTFWJqxghwYxwz4y43Vk+/DdEqHCsQl5g rRcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GFB7iCk0Bd2syBjc9Ptoymcq6fnpGc3VauDL49PiFhg=; fh=BK235+dYWgs2jQHS5VC0RMehBX1gw3n0Pw42cK0iELw=; b=B3QADjg6aQkxpJbTYrQzvnTAL0EKZUWJZwe3W/vtUqPBqb06946ggpZL6KAQV+Cd+S ynjOqqpJ8L/fsq1RI7xZsGyXqkKbC83Df1kfkxbdYQjSqqjas3PqChYAx8+5L3YS5u2C H9z6cSRBOkra/3x5BgbN08xsHPSzRVuzFz8F3/4NznIPdHgxWDMSs63N/Rj1SMgyw9Ef +886+lavVtxCYFUOEbzuPW8sjxjLGxcvG/kas4anGM3mBT3xV63HL37YMotmqI8KZlb+ Mfm0kPnX7KrDf9v+7AoZ+GmMrN7yVjSrpPcemnfYttmHu4qOVbU1CjB+2hwq+rnEjv3F xTnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cPj1IlFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b3-20020a170903228300b001cf56ff28a4si633315plh.522.2023.11.18.09.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cPj1IlFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B09C580967AD; Sat, 18 Nov 2023 09:45:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbjKRRnl (ORCPT + 29 others); Sat, 18 Nov 2023 12:43:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbjKRRnD (ORCPT ); Sat, 18 Nov 2023 12:43:03 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B08331709; Sat, 18 Nov 2023 09:42:47 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso4656345e9.3; Sat, 18 Nov 2023 09:42:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700329365; x=1700934165; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GFB7iCk0Bd2syBjc9Ptoymcq6fnpGc3VauDL49PiFhg=; b=cPj1IlFA6jAk9zvI9Fd2gxNQPCz1EcTKleiQXvOsABIucpRqxx5Bw+AiubRGof63yj V0obsl4pye97YLujhygqtobxJHZhVA0m/pxhHWql0NVfM7yQLztAidQE1WwhII/yHBUd o3J83i7YJITzqeUkSmwBf+bR2Db2j+6Ork7Meqc/wUtYkd2BhFxGyqvWyDEruNI25U03 v3iA/c03CIEs1nr2XUVJ5Sz58nfP/seUiK86lIdCUXSY5hqhXmH14SofhKsU127GvVPH d4fatJTo/UZ97qzX9A/jwVFYl3wDlP+Hr0hj/ejdwU67ZoJaNeLVhroBEyaRMwC03ZWo vs+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700329365; x=1700934165; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GFB7iCk0Bd2syBjc9Ptoymcq6fnpGc3VauDL49PiFhg=; b=ihKF/vC+35nV02NCHmvuMjYy7vDs8zwHCxd5zi02falfibsJhfH/2dfQTSvq/zZWQ+ 9naJbdcznx27+cuCuBWT3g1DwE/n5Ffh+jcVxA/MvKsN6frJ7WiCT20hhb4BvEJd5XsG qBfmF3YHwijVA7e0eowJxyY1xkoYo+gjSxl8ozTe0z5BISi2ZbNCtMx5wgzk1/xodOG2 ouL6+0JI4/0on7PjFkGnXHzso9/YQeJNKsdxPVRty1XJXV0TaDgJo+u83bGSodeDt7oL /q4VPiwLtpkAs8vEURZQqKGhRXBVqcvy40+CrIvozuBiRLtFKpces+X/n6j+75gpOvoW +WnA== X-Gm-Message-State: AOJu0YxElITbzC9K54aHCmnXaO8vd9/Ys3ldZLVjeHTjxqbonXfwmm5W 8V8unzfwuO9mEBgK1zKg/p4= X-Received: by 2002:a05:600c:4ec8:b0:409:5580:bc9f with SMTP id g8-20020a05600c4ec800b004095580bc9fmr2199231wmq.34.1700329364830; Sat, 18 Nov 2023 09:42:44 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b004068de50c64sm6964211wmp.46.2023.11.18.09.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:42:44 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Maarten Lankhorst Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alex Deucher Subject: [PATCH v2 19/20] drivers/gpu/drm/display: remove I2C_CLASS_DDC support Date: Sat, 18 Nov 2023 18:42:19 +0100 Message-ID: <20231118174221.851-20-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118174221.851-1-hkallweit1@gmail.com> References: <20231118174221.851-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 18 Nov 2023 09:45:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782924714923257614 X-GMAIL-MSGID: 1782924714923257614 After removal of the legacy EEPROM driver and I2C_CLASS_DDC support in olpc_dcon there's no i2c client driver left supporting I2C_CLASS_DDC. Class-based device auto-detection is a legacy mechanism and shouldn't be used in new code. So we can remove this class completely now. Preferably this series should be applied via the i2c tree. Acked-by: Alex Deucher Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/display/drm_dp_helper.c | 1 - drivers/gpu/drm/display/drm_dp_mst_topology.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c index f3680f4e6..ac901f4b4 100644 --- a/drivers/gpu/drm/display/drm_dp_helper.c +++ b/drivers/gpu/drm/display/drm_dp_helper.c @@ -2102,7 +2102,6 @@ int drm_dp_aux_register(struct drm_dp_aux *aux) if (!aux->ddc.algo) drm_dp_aux_init(aux); - aux->ddc.class = I2C_CLASS_DDC; aux->ddc.owner = THIS_MODULE; aux->ddc.dev.parent = aux->dev; diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index 0e0d0e76d..4376e2c1f 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -5803,7 +5803,6 @@ static int drm_dp_mst_register_i2c_bus(struct drm_dp_mst_port *port) aux->ddc.algo_data = aux; aux->ddc.retries = 3; - aux->ddc.class = I2C_CLASS_DDC; aux->ddc.owner = THIS_MODULE; /* FIXME: set the kdev of the port's connector as parent */ aux->ddc.dev.parent = parent_dev;