Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2249991rdh; Sat, 25 Nov 2023 22:04:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf3u3gwL9JUVLc6eNo7HkCgYaUYU62onoAQ31VJctVdrHoNkYFNSpUXVPnNRb3KTkchUE0 X-Received: by 2002:a05:6808:1b1e:b0:3ab:83fe:e182 with SMTP id bx30-20020a0568081b1e00b003ab83fee182mr9258201oib.1.1700978649723; Sat, 25 Nov 2023 22:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700978649; cv=none; d=google.com; s=arc-20160816; b=GwQVgvgwtH6XSxmPM/dielwZgVG2BsLm+GgLquFit4QrkCNjnuGAfT4ObEe+VOEwlN 6OulBjlRsP2Qfu3X42QwMNzTW0fcQa6Unux2QbvNXnZ7ac9RSRMXd+MSYPZbgE6QeVvq rtoaU/ASOith//e5ylOfb0AMN+tsLSUfOaUwVrAHsk+exukRbdxd50Jvyw7SUpYIgT20 nTyZmEj8wM+Y7nJdQFCDzG5y1IjDbBqD/GY54UjFFCLAYN4dV4xAe5U7z3B/kM/P7X1j rNO2E6gZRyPw7OESQydJh7kyxcmeSwrOy0rstvqSrIhg39h5ImPQk/9Vn+jso2qs9oZG gxNA== 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=lHH9CY/YqMo7brFyHOai+ndS76FkZ3H1nz6R6LrdAVg=; fh=0CUJOYA5po7O2UjkD9VfMxqKEr5bP8KlkK0PwQ2R3hw=; b=XjQvGd17NvmbMlH9x6zkis0Ywpyq3HAKpKW8iUkvcBs9FAk7SWeny1qlIs0MvCNdah 2OdeDCfIvjZeteXHNTF7OegDaWSu7JOj5hLZGVZV2mBO/owaebE3Mc8ckOBvU9+17l7s W11djDHWggDdrWa2Hn8lRp/15OnNGCP/PbaVZJ4as9Pkjg3ZEk+3wzWJj8NZWvi6kWth 91UT91GaZUItuKDcfv5xcwPmtBoLtW6ALRKrGLj7KDnWJJgVmniONreLEv+9jc675u5k Yav8gf0cf6EmW/BRnziYyBWUJQKNv8FhEOkIA1BeRniIVfrXCmPKFzx+uITtAtwx7gNq EXUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YBk1Z0wx; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h15-20020a63df4f000000b005be1955657esi7288566pgj.127.2023.11.25.22.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 22:04:09 -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=YBk1Z0wx; 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 AA1F9805DC02; Sat, 25 Nov 2023 22:04:08 -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 S229496AbjKZGD4 (ORCPT + 99 others); Sun, 26 Nov 2023 01:03:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKZGDz (ORCPT ); Sun, 26 Nov 2023 01:03:55 -0500 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41E7810D; Sat, 25 Nov 2023 22:04:02 -0800 (PST) Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-7bae8dd095cso1052421241.3; Sat, 25 Nov 2023 22:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700978641; x=1701583441; 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=lHH9CY/YqMo7brFyHOai+ndS76FkZ3H1nz6R6LrdAVg=; b=YBk1Z0wx/rP7WHtJx/QM0f990StwIRg/XD2OlMzzfE4jKbKMRLWrVG5R7Mxzd5h35d 96nLzFnU/kMr4stjfM9+DDM6ebkTM0GxZDz6pgPiExK0oBLUzCU4URZiYbqyhKjgUUTC sz2Hfo17eg7Ztb02p03HdMOAbXDoKQKddm92X2SNdYGrbj8/y7E+5XjNm9mW6qjU6dnR bSUJaLLWFFZe4J14ni0hB9+nQmOOXEah5s9ciZCpJOEHMTioId9tfOlQXaDylIvBjtQH D25z6cYLpeMvuo/BbE0fvbZQeXdTHVO5NWTPgZfdFrlqmB/WXrdTEzP1soXHIuHn88ac vqjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700978641; x=1701583441; 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=lHH9CY/YqMo7brFyHOai+ndS76FkZ3H1nz6R6LrdAVg=; b=ZCzOBEdxMFDd9sdFIuMfNlnSWqDV4mv/yafW0YY4H1YNFWaqrV/GR/sqCsZbMUQ5M+ 61+MNZrctjAxa9d9yu74dD4fo5Ej5s7+UoGLBfzb5PekroM3D4cTtF7VT8prHf0izh1D hfjLOHM68P4iSkgws3XlDL7KHKG9KWMrPZFA6TfIoK7KrwE6JiQUWOWDZWQllPy2LD46 TxE13FWVPJjV0WojQUU4EZ2lB/aoQ11ah5mhX9kTQFSieSDr1T3haHXeTK20yf4arWos MaEZv6JDzbDMTOtDGf0l5a2D5NQMM1mQunIiK6JayacPcac3xPg7c7UQ1EyR020RiOch P3Iw== X-Gm-Message-State: AOJu0YzHixgqSp2EmJUyXnJxwqW49EEVtRoKcCTEGoH6Y4/voyxGJWen tCOLU8BU497nJVvAc/TKp8Syz+Cyzd5VYrDOkzM= X-Received: by 2002:a05:6122:16a8:b0:4a4:cd2:5ebe with SMTP id 40-20020a05612216a800b004a40cd25ebemr2735306vkl.12.1700978641255; Sat, 25 Nov 2023 22:04:01 -0800 (PST) MIME-Version: 1.0 References: <20231124101619.6470-1-hkallweit1@gmail.com> <20231124101619.6470-11-hkallweit1@gmail.com> In-Reply-To: <20231124101619.6470-11-hkallweit1@gmail.com> From: jim.cromie@gmail.com Date: Sat, 25 Nov 2023 23:03:35 -0700 Message-ID: Subject: Re: [PATCH v2 10/10] i2c: scx200_acb: Don't let i2c adapters declare I2C_CLASS_SPD support if they support I2C_CLASS_HWMON To: Heiner Kallweit Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Andi Shyti , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Sat, 25 Nov 2023 22:04:08 -0800 (PST) On Fri, Nov 24, 2023 at 3:16=E2=80=AFAM Heiner Kallweit wrote: > > After removal of the legacy eeprom driver the only remaining I2C > client device driver supporting I2C_CLASS_SPD is jc42. Because this > driver also supports I2C_CLASS_HWMON, adapters don't have to > declare support for I2C_CLASS_SPD if they support I2C_CLASS_HWMON. > It's one step towards getting rid of I2C_CLASS_SPD mid-term. > > Series was created supported by Coccinelle and its splitpatch. > > Signed-off-by: Heiner Kallweit > Acked: > --- > drivers/i2c/busses/scx200_acb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_= acb.c > index 83c1db610..3648382b8 100644 > --- a/drivers/i2c/busses/scx200_acb.c > +++ b/drivers/i2c/busses/scx200_acb.c > @@ -427,7 +427,7 @@ static struct scx200_acb_iface *scx200_create_iface(c= onst char *text, > snprintf(adapter->name, sizeof(adapter->name), "%s ACB%d", text, = index); > adapter->owner =3D THIS_MODULE; > adapter->algo =3D &scx200_acb_algorithm; > - adapter->class =3D I2C_CLASS_HWMON | I2C_CLASS_SPD; > + adapter->class =3D I2C_CLASS_HWMON; > adapter->dev.parent =3D dev; > > mutex_init(&iface->mutex); >