Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1613727rdb; Sun, 19 Nov 2023 03:28:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1QN5AcLCv/uQyJgxEjoRndKRQ8daRnuuxPaUShaIBydiN0xfj48sOcxKfKaTJVkEz8PQ1 X-Received: by 2002:a05:6830:4b6:b0:6ce:267b:d409 with SMTP id l22-20020a05683004b600b006ce267bd409mr5313120otd.13.1700393331909; Sun, 19 Nov 2023 03:28:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700393331; cv=none; d=google.com; s=arc-20160816; b=WtgNJbE2ie/mqr9+am035H+HW5YJfGC/Jt1MYw66LLRigrbsy7QUz6r/d72XhIAkOY 635u4aY8JLphecZgaDX+/PByNjD86wnCVkHMgr0QZwmPAz8ywRy5j8bjS82urAmlBHdx AFPPdqIk3jQMHI60mOKRwqQ7h+3BI4/S8Bk6TI7pzlu2FmLCZKz2ypSoqpU/U0gh/cCL zZcNxuniXOUUkRUyMpC/0/9WD/Ls9kgWwBdJNZTsVaz61wVY/drX3gnhcLlv4FDON9tZ D2EX9f4n65kRItusWhd3iQfvkpi6J9VOBwTgcUHNe3ZZrAIisj1SHSfNnOFFyhrOKbyf oDCQ== 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=cyZ/cbQESDC/MGT/kN0ThvfGObcymEWZy6uoIIRVQcA=; fh=j+vOThBk33BHxoCn4rnl90afT2XoUPHzTL6f/c31we0=; b=TqK9XN1KklLtGWDWLpsywkeGz52JmhLnuJYcitaFd9R1NB+wCKLH9ncmV180zySkWb iPFJrbHi32ETU/GNAXiNdSE5X48JjSj3LKqbtyLVfDmNPvHKHLkTU+8M3Z/HOM7gIZs0 DM1Aha9MwedPvyvByuKvjns7NM1vnIZT9PnWgMSHpkiDhRRKuAoHJp8GssT60lHYGPrM HGL0YZ3junHtfGoW1QNuz6zG5redwUIIjureBHah1rX27kIk7lz5y7CV+9Z1CgijeSGY 7CVgewBFkAml6hsdJQ+Pz+jE3cAdNAqTi0dNqDjnMMGwO37UeFkNXUP0QixbjEsaLvj2 q06w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cVy7E2Gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d6-20020a63ed06000000b005c1cd1ba05csi5823831pgi.240.2023.11.19.03.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:28:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cVy7E2Gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 7D69D8030991; Sun, 19 Nov 2023 03:28:50 -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 S230520AbjKSL2o (ORCPT + 99 others); Sun, 19 Nov 2023 06:28:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjKSL2h (ORCPT ); Sun, 19 Nov 2023 06:28:37 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8062D8; Sun, 19 Nov 2023 03:28:33 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9e623356d5dso473536866b.3; Sun, 19 Nov 2023 03:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700393312; x=1700998112; 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=cyZ/cbQESDC/MGT/kN0ThvfGObcymEWZy6uoIIRVQcA=; b=cVy7E2GvU1UY7C2ylKxcRaKGbjhm5quJksSnVTY1dRmTx2n/y4LTSnrmQ3gphXkdP9 /+GjjsqHG/UsADL8fKfakE4R+0vmfkCFe53axp68BnOhXaOOgRc7d/v1CCnDESzKfxW3 dibBfI1qWpbmwuV9RD0kU7QaDo7+oMRTry6salcit72edkn0VEf6kwC4n2MfhWjr5ZBO Pc4QO/i39ahPGxhTPRjSJvjy8KB4v5rjNpH5NU+yUmDJQ4LvVhvPOD9pbBh0jlc9Wbqz wriRlWQc0LrLPGQOftJUiqCsbtzGJjKZKZtqeKInmSYj+VDq7/3b1EvubOEGlOShHpVp E4KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700393312; x=1700998112; 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=cyZ/cbQESDC/MGT/kN0ThvfGObcymEWZy6uoIIRVQcA=; b=OCQtfYH5T4sBdhIxj22qFENLm+EPMTbC4fBfbvt6Uwys7ZwTs54plX5KjTl9g8qXKI n5yZdsbY7uKp/mqG9ZthmDPLaox62vP8yxMXxMzPIlLTkerNYUdbDkkQjW5z3reuI8uB MkDvlfcRPR0DP8aT2e0rfHDksr72wNooVBqxNODGa2uvYrtvIAKpuWSVQESeC7IntKnv wNSHFXxYZYztwQG0Cc3bA4E4lwrMMZ5XUi09SGxol/P2KLE8K3GfIqy87K6xMxUmWyTW lKCCItmhiEqSo7fqEbvTqb5y/OamL4m9p0Vo+rOdAxAUG2pvEel8d6uuGPgd7YjzdzrT uwnA== X-Gm-Message-State: AOJu0Yy+Y1XD0pnusUehRCInJ2+Q6cylB8ckCM5mrSiFsUpQsj0lbd49 eWtyTJ8mPFdPKgom/JQbONE= X-Received: by 2002:a17:907:6d0a:b0:9a5:b878:7336 with SMTP id sa10-20020a1709076d0a00b009a5b8787336mr3794771ejc.7.1700393312239; Sun, 19 Nov 2023 03:28:32 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-bde4-3e00-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:bde4:3e00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id k22-20020a1709063fd600b009f8af454d0dsm2420378ejj.112.2023.11.19.03.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:28:31 -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 Subject: [PATCH v3 03/20] drm/amd/display: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 12:28:08 +0100 Message-ID: <20231119112826.5115-4-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231119112826.5115-1-hkallweit1@gmail.com> References: <20231119112826.5115-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_BLOCKED,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: 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]); Sun, 19 Nov 2023 03:28:50 -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 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);