Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp41146rdb; Thu, 16 Nov 2023 11:17:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBUjqDTdqFfpQfk7s8TOtATBbove/3Ic/ISbXQtDxO1kQW7T/uCocvMNFN/QjtuDQ6UMog X-Received: by 2002:aca:d09:0:b0:3a9:bc8d:42ed with SMTP id 9-20020aca0d09000000b003a9bc8d42edmr16062038oin.43.1700162231790; Thu, 16 Nov 2023 11:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700162231; cv=none; d=google.com; s=arc-20160816; b=Sp62kPsv0myCb+ntLPA3Xn8CLFfomdH5+axr3f9GNEhHM5V7EDxbSgq6jagjPX9NsC 8yxoO47/Hhpqv+xFdsTeeDzP89zA0yIisrnPQNg6uFG8rmlkfQjiSNQ3RBMA6BgZ+x8I zqGp1tOpbvELj4B7Bk1I7Hfe543zPxRppMODnWy3BJvrAz6Ab8o9b0sLPQeXgw7F7v70 BluCuyam5gDXKried146lko3qasxoA4724z8RWxACJTeY3JvW83yAJWsrtzga/eovjJF nWi/DGaR+KNDL1PSVBJc1CocvXBgKf0WDt1mFVbgI+sDCDgGFTsZ6j+nqWvakLz70fLy 8dmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TJfsU8TyNZy07krkN4D/GXW5S5/EGPw3AYjVhWjd3Xk=; fh=YvkBzNsCraEYW6pgHFJZCHwcAE+QfATrNnb32dOTeC0=; b=mr9bg3iGl2H9KMMLZ0ZvhE+dIPCDUwkuuWtdNI48shCXbhWCwBXLB7kSAagtoE7YZp X3Ta3621WwWOVDAhp05yRIyupcJPVKwj8S6aRnVy5g4WYLSQnHVree/zNRXInAEi0F7E GfjtNsQ+yhksUxYYGG+zkrQET5F8JCTen4/PbGtSmdixBVo490a2g54a5n2ms9zNtaGE gm4tn9g442eBnUXUG8o1ME1wwTR7g+eF+FiJmxgnUctPB4Mu25RKdys2mMReDqDXbp/F 5LT5l51vcFwwoe5TbOgPBvaUqcuJDkhQtbpvleQLuUpeqaRaN7fZutQOLwTTFBEWBalD Kvyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cbcQ23mn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u6-20020a634706000000b005b18ac47c1csi93395pga.310.2023.11.16.11.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 11:17:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cbcQ23mn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 7540D81CDE23; Thu, 16 Nov 2023 11:16:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345473AbjKPTQd (ORCPT + 99 others); Thu, 16 Nov 2023 14:16:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbjKPTQb (ORCPT ); Thu, 16 Nov 2023 14:16:31 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF0BD50; Thu, 16 Nov 2023 11:16:28 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6cd0963c61cso660315a34.0; Thu, 16 Nov 2023 11:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700162188; x=1700766988; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TJfsU8TyNZy07krkN4D/GXW5S5/EGPw3AYjVhWjd3Xk=; b=cbcQ23mnsmgmBfHIg/HzEe/1BakeFhzJa6vBERnzZrWgK56KXBpO27e5gQONZQjdpa WwdDEhJlphxF8QEBHAKtXqf6ysLDw7KEc35ml71C0gY5DmBr7utuFaD/AeUsCrCBjARE ywAdTWHI4ArtDLzpUraYfAxkN+PBt1LDFe4DLPnb9on7jwrqxjOhlfNp1jXsIeIXd9sc 4Czyxi39hVN8nFMcSs4Uh5GpOs4h7Jz7VsLFTe0Z+ULE1En1XSSBtnCIrrQW27hSjTSP LgLJevh1FbwNFR0Cy5O5EMFqWz5BJxcXtuyihZyptc/XW74blfNabzSjv41Bl1hNKskb JRFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700162188; x=1700766988; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TJfsU8TyNZy07krkN4D/GXW5S5/EGPw3AYjVhWjd3Xk=; b=qYqt6y5p8/pCZOA6wahft6nDYMbfc2hHZPP/vZprrdrSsFoW0L9un/xDpyZ8ct9qsz WnucnzsR3u154nd7X7b/46bWOlYzbaUCofmkhDrauUiKr+Ex7CJ+ZpekbieDRK6EEqkv bIiYWIHtoL7UfF05Z1eOPSOF2lp4YkzHIUNEiMMTWs1xKS4e9hQlQvB6zdSLaZbfY2ln lmghlZPSD+GXE3A8Xl320mT2Zq2nn4FflEfqaZO14eCztgeSYSxnU7c7XHRumRrORNAL NN9N58ERi3TcTrogPMh47b8Ji3SxvywSi+Sm9wk5IecZsUtmH5iIzO58HNJZQXtIXfXX s1TQ== X-Gm-Message-State: AOJu0YzypTODjW14TGV6lsTebO32TeaHCBTR38WiX3h6050eqPXfybIM UBvCIJyySQSykYfTZY0QATKD6HHM2V4QGarSKLU= X-Received: by 2002:a05:6870:5494:b0:1ea:ce71:dd13 with SMTP id f20-20020a056870549400b001eace71dd13mr18093837oan.28.1700162187978; Thu, 16 Nov 2023 11:16:27 -0800 (PST) MIME-Version: 1.0 References: <20231113112344.719-1-hkallweit1@gmail.com> <20231113112344.719-8-hkallweit1@gmail.com> In-Reply-To: <20231113112344.719-8-hkallweit1@gmail.com> From: Alex Deucher Date: Thu, 16 Nov 2023 14:16:17 -0500 Message-ID: Subject: Re: [PATCH 07/20] drivers/gpu/drm: remove I2C_CLASS_DDC support To: Heiner Kallweit Cc: Wolfram Sang , Alex Deucher , dri-devel@lists.freedesktop.org, "Pan, Xinhui" , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-i2c@vger.kernel.org, =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 11:16:39 -0800 (PST) On Mon, Nov 13, 2023 at 6:24=E2=80=AFAM Heiner Kallweit wrote: > > 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 Technically two separate drivers, if you feel like splitting it. Either wa= y, Acked-by: Alex Deucher Feel free to take this via the i2c tree if you prefer. Alex > > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 1 - > drivers/gpu/drm/radeon/radeon_i2c.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_i2c.c > index 82608df43..d79cb13e1 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c > @@ -175,7 +175,6 @@ struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_= device *dev, > > i2c->rec =3D *rec; > i2c->adapter.owner =3D THIS_MODULE; > - i2c->adapter.class =3D I2C_CLASS_DDC; > i2c->adapter.dev.parent =3D dev->dev; > i2c->dev =3D dev; > i2c_set_adapdata(&i2c->adapter, i2c); > diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon= /radeon_i2c.c > index 314d066e6..3d174390a 100644 > --- a/drivers/gpu/drm/radeon/radeon_i2c.c > +++ b/drivers/gpu/drm/radeon/radeon_i2c.c > @@ -918,7 +918,6 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_= device *dev, > > i2c->rec =3D *rec; > i2c->adapter.owner =3D THIS_MODULE; > - i2c->adapter.class =3D I2C_CLASS_DDC; > i2c->adapter.dev.parent =3D dev->dev; > i2c->dev =3D dev; > i2c_set_adapdata(&i2c->adapter, i2c); >