Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp214005rdh; Thu, 23 Nov 2023 01:41:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGivwhFThmTRqSrjk4QxwQbVslk/Z6cQjALxaSqN76q2Mr6iP0TPEmXw+V6YeKkDwg9hXGV X-Received: by 2002:a9d:7458:0:b0:6cd:9b6:5954 with SMTP id p24-20020a9d7458000000b006cd09b65954mr4893220otk.38.1700732485960; Thu, 23 Nov 2023 01:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700732485; cv=none; d=google.com; s=arc-20160816; b=D8tpPoYgnC2mFpSPX8WRCe3ZyOaYhRt2xHN5Mon8upt4/4BRlix4PGC+Tp/XTE7Cn8 I2OeIkVoEfHgNCj3PzuSZjoQYOUqYs3X5TulmFW67E3dRS2boOkwEfY/XLrV9kE2gV1G GExcD4CsO2C0P34G+OcDXCZ3F9W6hYHyTku35YrmiReuX67sEIlclYoWWoL/YDriClsf 3GmkJO39aqPL0QjT2AKPRUiMlGxv6zE6aQ6YfXzGE3Tz7SqdEBKWibZJWi5uPZNjKicF EQeJwCnBDyxxprjYGpxklBUPFLYFOxWxEfBcuHnqxsBJ/BF1+0Sq5e6EUaz06lPQdaRM uc9w== 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=jjxI0Bhxo2VvjdWdUiaiba2vg3SpmPuRCWUjk40Qtf4=; fh=2tUN0TGLlMp3jqVGWFg+n/Pd8Y5mRJkPvzuZMnrH2OA=; b=hf6xkcRF7Dsp0/4yL6GjNKGX/UJPhnloXokl8mQwbntNlrLW3m2eMJpLLLKUOSmjfW 9lgDHyIzYD5LG+cIG5Fk40Ebs74CErCb8SpmIc6ZW7tjMXaetuFScBbLp11w/lzK/5oY e0hS/Rt0iK8N4jpeoKhVrxfn3zk8OTJg46Baoz4niB1XrukfVWlXt3gbjY6bKULxAsFc RZSdnv6WDe9EVcTVW7tCdEyOxbSmKxarZRgjSlGW1D2NEkjei5PhKLBlDY+gskzHnPJS nBcJOARwZ64vg85mGtvJBCofvfqR0Iq+icF6qhwvIXavg7Ct+QJUyMNe0FSDc9rqZbbz HepQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="j2/H56+Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p188-20020a6342c5000000b005bdfb8a9048si988057pga.67.2023.11.23.01.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:41:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="j2/H56+Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id A86C78078663; Thu, 23 Nov 2023 01:41:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232840AbjKWJlA (ORCPT + 99 others); Thu, 23 Nov 2023 04:41:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232847AbjKWJkn (ORCPT ); Thu, 23 Nov 2023 04:40:43 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D41983; Thu, 23 Nov 2023 01:40:49 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a013d22effcso79256566b.2; Thu, 23 Nov 2023 01:40:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732447; x=1701337247; 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=jjxI0Bhxo2VvjdWdUiaiba2vg3SpmPuRCWUjk40Qtf4=; b=j2/H56+ZwIFVlZup3UwVyk6iSD77UAlOjrxEVIe29S6lG65BJ5uAAi43kuOxK/AACp 7CqA1XxkITHR52EGjZb4Pyip54dczO8R/epUIWEN8FlWC4V5oZxS5MkBI7ANk6AVUlKk HQz3wuHyqm1IDDmQ8guwD4KJC04Po3/ZooctSYjz5qbq2CqXH7kSe7fY+Ji91uD0Fyr/ sXfKsWxWPRzDImrNvN/co4tHyKfSBJwN4ydHbe6uU5DnTFPMkriMjKD69trZj6FNzP4N X6+cmwCxVezZ7gFSQjVZyDQp54am9xUhgxoqkyB1qt35lHzZ4BVXIKwW4nSkwTj0P7d/ 9PJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732447; x=1701337247; 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=jjxI0Bhxo2VvjdWdUiaiba2vg3SpmPuRCWUjk40Qtf4=; b=LeLlZqTLT/V2k4Tsqv3zOXUB9rwtBAl3294Bj0Hqre1Je8FOjGKvL8zNcTDQGu8k/l 9KWtBHlPQcWG/W6tg1/1RTnfsm82ZavNS+0k4On3CqhMXmZTkHfn6inDAtfh+7jBrFus SthS+o3t+2Bb32LQGF+xwHlHcI65TGd20w8Pwn0kfhaydO0p3g/33RPq8VWowJi0xlXv W2qCgRDmN/w4VzUvUZlnIDGv6PtLaq7ihkK4bElCcyeciQt6QLT0O+9V17eVXTOaKkxz HpAGFS5pzjQL9v7hHzuLVjAFv+tVzW0AX6tSk0wyQ95/xXr6J/Re9aJpqKQ98R1Pcgm3 ygHw== X-Gm-Message-State: AOJu0YyvCFpnU/JAj171g2jiACopLRInl58CB8+5VzS1z1z+EPKAPGvj GAivX8LpMmV/ujvcaa7kJ7E= X-Received: by 2002:a17:907:9087:b0:9bf:63b2:b6e2 with SMTP id ge7-20020a170907908700b009bf63b2b6e2mr3326670ejb.26.1700732447203; Thu, 23 Nov 2023 01:40:47 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-c0f2-3200-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:c0f2:3200:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id s9-20020a1709066c8900b009e5ce1acb01sm546199ejr.103.2023.11.23.01.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:46 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Harry Wentland Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v5 03/20] drm/amd/display: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:23 +0100 Message-ID: <20231123094040.592-4-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231123094040.592-1-hkallweit1@gmail.com> References: <20231123094040.592-1-hkallweit1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 01:41:22 -0800 (PST) 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: Harry Wentland Acked-by: Alex Deucher Acked-by: Thomas Zimmermann Signed-off-by: Heiner Kallweit --- v2: - adjust tag in commit subject --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 6f99f6754..ae1edc6ab 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -7529,7 +7529,6 @@ create_i2c(struct ddc_service *ddc_service, if (!i2c) return NULL; i2c->base.owner = THIS_MODULE; - i2c->base.class = I2C_CLASS_DDC; i2c->base.dev.parent = &adev->pdev->dev; i2c->base.algo = &amdgpu_dm_i2c_algo; snprintf(i2c->base.name, sizeof(i2c->base.name), "AMDGPU DM i2c hw bus %d", link_index);