Message ID | 20231113112344.719-2-hkallweit1@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1134892vqg; Mon, 13 Nov 2023 03:24:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBFJUDcIwpfHP4fTZkDfqhR6CvDvTGC53whnHhQl9tZLmFVdzMwhqYA1j7D49pf/lZ56a6 X-Received: by 2002:a05:6808:16ac:b0:3ab:8295:f2f1 with SMTP id bb44-20020a05680816ac00b003ab8295f2f1mr9921083oib.45.1699874657159; Mon, 13 Nov 2023 03:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699874657; cv=none; d=google.com; s=arc-20160816; b=z5BOOyk8Hh/TFlVedp+D+DTBSTixLwf2tLTgQkEleKNrFaK3xRcnkaRLSpfYnJGhd7 3pyGHlpwhTCFFJcotiM1/3oqpf/Vdqc6i1/rJOGCDejPS0dsBKdxgcZB5x1C57W0bQJ+ nYcAc1Ys83qd8tbfvn7ZbSwDIPf0fCsBRur79+To8Nx8hd3geuDZ6DYzQpo0RFmWAZ90 fmS0c/bJcuuBJ26hmqmvigtq0WV40pYLqLKUAM4UvxOcwokLtig7pTV/pcLmExTu2SH6 K8loyvTUwajK4VR2TlEgzWR/sqlAcm+o2s4uoiHyPfHVewQRGsfhsltD3Sypc9BR62KY 54pA== 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=Opo2n1kgRGyqTe3TRkg8x+CZ1bdNAAuwb0HOdaOfFW0=; fh=VuBPc8SrxAx/A/HsiNqMpRXNPs5cVNPqmDnqXWuhozE=; b=xqZgfLjJ0bWXpnzwdlBf/R+zsnnlwPjGtz/VlSsa/xoGm5YWtrl5tg+nHvwFS9l3BX hYZ8ng2tK+Pb1JfInqm1uNaLldzdg8UaGOVPo6/Ul4ybZgUPia1HdBeLYl0jVqPYs+t4 PrsoV0E50jzXCBzxk+NsBK1bKu8XadIbjm5+qg7swuKMVWXamV2IWDLzI8SwmqY9c6YZ i1Tf6xBH09zLqm0M53Q+RNYAw4MiKusIcZzhLKC4KXLuzPa59pypzEyWHJUbiitKWt4I n9mHjjOG2nYKg2MrOPtpEuqcu5cjWlADXJqjeenIPwTVAdAf5PH925Gem82pm2t9X3Z7 I9Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xxi9OuCu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r187-20020a632bc4000000b00565e865d381si5368654pgr.447.2023.11.13.03.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:24:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Xxi9OuCu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 13B59804597E; Mon, 13 Nov 2023 03:24:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbjKMLYJ (ORCPT <rfc822;heyuhang3455@gmail.com> + 29 others); Mon, 13 Nov 2023 06:24:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbjKMLYG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Nov 2023 06:24:06 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 466A8D64; Mon, 13 Nov 2023 03:24:03 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507a55302e0so5970097e87.0; Mon, 13 Nov 2023 03:24:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699874641; x=1700479441; 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=Opo2n1kgRGyqTe3TRkg8x+CZ1bdNAAuwb0HOdaOfFW0=; b=Xxi9OuCu23iF795mx0AV4jY0S96aTUsfbJ3J3kijhzo/FiXLKKK2yOZH8qXcc0lLEk PFmh4twfYm9GswWFwI5TrhZ5HDF3w0IG9H2FzJD7s9PngiCyAZSn8a+9zRAFQ3+LZIOm mHr0lefBWnhnnyqqihTIDavzogT+gN8D0wR7DCnaweE/kZIAuiaZwwH4Xk8ai3WmE8Md QixW1+Rc06dlpOpas1yaAlt/yBwTU/T23PA3meYF9jl3i5FFosQZ54kiokdJz5qcSWyF z91Pm1c7A+6MgIGylaupK14sixvzgEZmV34jNFor1SPZxqjyQuozmxTXibM6+1Bwzzer dV/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699874641; x=1700479441; 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=Opo2n1kgRGyqTe3TRkg8x+CZ1bdNAAuwb0HOdaOfFW0=; b=JZbNzBFH66M7eOgsdwnnkU7Ta3bTp6Hk+XEWZXBsiXTdrPcekxEUxB9aFlktZYqkoQ 6KYplNh6CeexOVPlshhywJL7Pv/ulKsPvJYrxMq2sFOr8+0kUXKe1bIB2yFAyHEEXiPt DfwnvjAt/IEezzTLoEtWEdmdjhbngvVYbjU/7lbePJiM4dXPApkdsvQ6HrLmtkpyXCKa tniCOGe5wMKqSgyLImm6cEYoQWpA9Sj8VmiBEOITaRY3MY+V1lGaAFUchCimtwcHOB4V KErgZCBnec+fKNP0jpJTiAY3J9yTxNYDMyxuR0YAravzMT5ANqbKgtKnu31ZlPnRu13L E7MA== X-Gm-Message-State: AOJu0YyO5w5g55Zv0ZIz8yJrond6LaNBSA0cmSBPltBfEqibWJ1wfMaY R/nsupPQa5Ax03KDWs3oayw= X-Received: by 2002:a05:6512:3e0f:b0:507:9628:afb with SMTP id i15-20020a0565123e0f00b0050796280afbmr5515817lfv.68.1699874641249; Mon, 13 Nov 2023 03:24:01 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-6e16-fe00-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:6e16:fe00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c4f1300b0040772138bb7sm13565787wmq.2.2023.11.13.03.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:24:00 -0800 (PST) From: Heiner Kallweit <hkallweit1@gmail.com> To: Wolfram Sang <wsa@kernel.org>, Sandy Huang <hjc@rock-chips.com> Cc: linux-i2c@vger.kernel.org, Heiner Kallweit <hkallweit1@gmail.com>, =?utf-8?q?Heiko_St=C3=BCbner?= <heiko@sntech.de>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/20] drivers/gpu/drm/rockchip: remove I2C_CLASS_DDC support Date: Mon, 13 Nov 2023 12:23:25 +0100 Message-ID: <20231113112344.719-2-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231113112344.719-1-hkallweit1@gmail.com> References: <20231113112344.719-1-hkallweit1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 13 Nov 2023 03:24:16 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782447768171825316 X-GMAIL-MSGID: 1782447768171825316 |
Series |
remove I2C_CLASS_DDC support
|
|
Commit Message
Heiner Kallweit
Nov. 13, 2023, 11:23 a.m. UTC
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.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/gpu/drm/rockchip/inno_hdmi.c | 1 -
drivers/gpu/drm/rockchip/rk3066_hdmi.c | 1 -
2 files changed, 2 deletions(-)
Comments
Am Montag, 13. November 2023, 12:23:25 CET schrieb Heiner Kallweit: > 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. > > Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Acked-by: Heiko Stuebner <heiko@sntech.de> > > --- > drivers/gpu/drm/rockchip/inno_hdmi.c | 1 - > drivers/gpu/drm/rockchip/rk3066_hdmi.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c > index 6e5b922a1..a7739b27c 100644 > --- a/drivers/gpu/drm/rockchip/inno_hdmi.c > +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c > @@ -793,7 +793,6 @@ static struct i2c_adapter *inno_hdmi_i2c_adapter(struct inno_hdmi *hdmi) > init_completion(&i2c->cmp); > > adap = &i2c->adap; > - adap->class = I2C_CLASS_DDC; > adap->owner = THIS_MODULE; > adap->dev.parent = hdmi->dev; > adap->dev.of_node = hdmi->dev->of_node; > diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c > index fa6e592e0..7a3f71aa2 100644 > --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c > +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c > @@ -725,7 +725,6 @@ static struct i2c_adapter *rk3066_hdmi_i2c_adapter(struct rk3066_hdmi *hdmi) > init_completion(&i2c->cmpltn); > > adap = &i2c->adap; > - adap->class = I2C_CLASS_DDC; > adap->owner = THIS_MODULE; > adap->dev.parent = hdmi->dev; > adap->dev.of_node = hdmi->dev->of_node; > >
diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 6e5b922a1..a7739b27c 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -793,7 +793,6 @@ static struct i2c_adapter *inno_hdmi_i2c_adapter(struct inno_hdmi *hdmi) init_completion(&i2c->cmp); adap = &i2c->adap; - adap->class = I2C_CLASS_DDC; adap->owner = THIS_MODULE; adap->dev.parent = hdmi->dev; adap->dev.of_node = hdmi->dev->of_node; diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c index fa6e592e0..7a3f71aa2 100644 --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c @@ -725,7 +725,6 @@ static struct i2c_adapter *rk3066_hdmi_i2c_adapter(struct rk3066_hdmi *hdmi) init_completion(&i2c->cmpltn); adap = &i2c->adap; - adap->class = I2C_CLASS_DDC; adap->owner = THIS_MODULE; adap->dev.parent = hdmi->dev; adap->dev.of_node = hdmi->dev->of_node;