Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3969613pxf; Tue, 16 Mar 2021 02:21:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyUqKwQ19OVwhKF8ZXIik4dkh7hcWieAwcEsTiW7nDz/zJVWF16eUQAObq0alyKlVM6qD1 X-Received: by 2002:a17:907:2d9f:: with SMTP id gt31mr28274491ejc.233.1615886496705; Tue, 16 Mar 2021 02:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615886496; cv=none; d=google.com; s=arc-20160816; b=lhwU8hWfBgJLEXenau1yq/sSRwtDSUHTRWBeXq4uP7BzLB+Nu79Kvfv14JdusO1JXK wSxLEhHWSQjICYLPCh14QmxjCxixBP5oeeOy1MyMDipzB5lJ94Qzed+1IxLufKOF477t A9ZtL0bNhEwUdyZZyrv7u+oVsPuz80b1xQO+TwCpTUBHuUE571lXJHmesIXozU082JCD YGGfRFH2vEl4AcJ+FwsQ2fbgXimLRHB7Ly/vgAv3I4J6UAH3I8D7RTOqwlO05G4AeUru Lq31ZmAIWvDx/TixEZzXUuxgHU6mNqn65y1sq3ppuCsNYejbFJKbTShLPIaB7JnsdyNB t9ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=C2y5Iw5ESFpmOhVIIBBfVA713BIV/DXf7nx/Yk9qryA=; b=gWPdjHmPUa7BoJJruBzpsPXaX81tk804OubCUMBu5E61S/lTd+o9a48UCOupVizkgX 3WWc1hL7dqkk41M8xOIGpEm1bdx17aquLB7qEATZBtIAM6x4d9WMphMteip3AlBX3sUu lGqhu+vJr1bziX6EB95FcwEBU37tJemtGGUaTlZ3hY05v5uxOUpC+MTVUGANLDGLiOxy VQBfnqWEZc0oY6DxfHD2oUUr9kf+743kcw9HAF2Fk8DVJgdBGfzSgsAgVhji0y9buCWy 7WzyBgw9BarpJTEoD8sa0wMj4Py274mSAyb3eH99i9ITHMRdaPClL170ZaDFq4BkfTN/ 72xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IMxh9B0Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si14025453ejw.277.2021.03.16.02.21.13; Tue, 16 Mar 2021 02:21:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IMxh9B0Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232244AbhCPHjx (ORCPT + 99 others); Tue, 16 Mar 2021 03:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231968AbhCPHjn (ORCPT ); Tue, 16 Mar 2021 03:39:43 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC298C061756 for ; Tue, 16 Mar 2021 00:39:42 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id u18so16519467plc.12 for ; Tue, 16 Mar 2021 00:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C2y5Iw5ESFpmOhVIIBBfVA713BIV/DXf7nx/Yk9qryA=; b=IMxh9B0QEN6VnTEulVLGXIJ4PtFAhlT6EWrZMRKNKLXFgpBmunW7Yy8fE+mdZ/1p7B pCNZirC5J+bLGooedKB52qBx7f5ZEyT/drI4Hj91hjT9cVGmq4cGfuy7tzBNMZLrdo/w zE+WIMM84IWV7pa9AMF5/4tfZNag/S97TqVDyf5ppjsKMLqe92oYv2WKreLsbb213b0I MqfgsVDNgASWgPeYvC9iibNrxpd5W38K6Ox1pLN481Piga0Ib7610cPSyGFuIxtWCGxF gNRaypY4u5uk4MoQuICI+X5BFGujAqqBjrLGlxw8JQxcTKGb5WwC8PBBKKK2oJ6ErRDJ +LlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C2y5Iw5ESFpmOhVIIBBfVA713BIV/DXf7nx/Yk9qryA=; b=trTB5RdUR5O7PI98fj+N84jK8JYWY3EOhAo88pRJ1hVDcOVeSQ+nfOGNC6S9WEpR/0 C3/7cBFieEQ3pPPK0aUXE2+th92BDnBlvYO6aLLMsGw1R497TbCXqwQrTkX6o9f03lgQ 0J90Md/gRFyE47G/98Mz4u4Wy7inMvsPCTZgkedIIZwfox+gk2T7QP4bHVW9v4GlKRWk JWGK3jz9FQjc5DaPwfovfJQha+XiNsFh1E5VnISCSZsl53ZvJG/04uOfI+i+oJGA+y1X o9MrldfJOFEs35f7MTDCma8eiQf2nk6jhtRtkCHb39udh5RB4lM/l/k7s1zJP9sXv80S Byfw== X-Gm-Message-State: AOAM53090M9RRkLqfzl6yAac7jyDODTlHctJ9WspmpxgUQuBjVijRNdH YZzhnXflyajsjNU/l6CUxC4SCjZPIXNNrA== X-Received: by 2002:a17:90a:9b18:: with SMTP id f24mr3369683pjp.96.1615880382152; Tue, 16 Mar 2021 00:39:42 -0700 (PDT) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id w28sm15065286pfi.119.2021.03.16.00.39.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Mar 2021 00:39:41 -0700 (PDT) Date: Tue, 16 Mar 2021 13:09:39 +0530 From: Viresh Kumar To: Jie Deng Cc: linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mst@redhat.com, wsa@kernel.org, jasowang@redhat.com, wsa+renesas@sang-engineering.com, andriy.shevchenko@linux.intel.com, conghui.chen@intel.com, arnd@arndb.de, kblaiech@mellanox.com, jarkko.nikula@linux.intel.com, Sergey.Semin@baikalelectronics.ru, rppt@kernel.org, loic.poulain@linaro.org, tali.perry1@gmail.com, u.kleine-koenig@pengutronix.de, bjorn.andersson@linaro.org, yu1.wang@intel.com, shuo.a.liu@intel.com, stefanha@redhat.com, pbonzini@redhat.com Subject: Re: [PATCH v7] i2c: virtio: add a virtio i2c frontend driver Message-ID: <20210316073939.mwevcsnitcvxtdcu@vireshk-i7> References: <20210312061012.slmfnhxe6y5kgrnv@vireshk-i7> <20210312081108.fvqrvb75byurt3lo@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210312081108.fvqrvb75byurt3lo@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12-03-21, 13:41, Viresh Kumar wrote: > > > > +static struct i2c_adapter virtio_adapter = { > > > > + .owner = THIS_MODULE, > > > > + .name = "Virtio I2C Adapter", > > > > + .class = I2C_CLASS_DEPRECATED, > > > What happened to this discussion ? > > > > > > https://lore.kernel.org/lkml/20210305072903.wtw645rukmqr5hx5@vireshk-i7/ > > > > My understanding is that new driver sets this to warn users that the adapter > > doesn't support classes anymore. > > I think the warning is relevant for old drivers who used to support > classes and not for new ones. > > > I'm not sure if Wolfram can explain it more clear for you. > > Okay, lemme dig in a bit then. > > $ git grep -l i2c_add_adapter drivers/i2c/busses/ | wc -l > 77 > > $ git grep -l I2C_CLASS_DEPRECATED drivers/i2c/busses/ > drivers/i2c/busses/i2c-at91-core.c > drivers/i2c/busses/i2c-bcm2835.c > drivers/i2c/busses/i2c-davinci.c > drivers/i2c/busses/i2c-designware-platdrv.c > drivers/i2c/busses/i2c-mv64xxx.c > drivers/i2c/busses/i2c-nomadik.c > drivers/i2c/busses/i2c-ocores.c > drivers/i2c/busses/i2c-omap.c > drivers/i2c/busses/i2c-rcar.c > drivers/i2c/busses/i2c-s3c2410.c > drivers/i2c/busses/i2c-tegra.c > drivers/i2c/busses/i2c-virtio.c > drivers/i2c/busses/i2c-xiic.c > > i.e. only 13 of 77 drivers are using this flag. > > The latest addition among these drivers is i2c-bcm2835.c and it was > added back in 2013 and the flag was added to it in 2014: > > commit 37888f71e2c9 ("i2c: i2c-bcm2835: deprecate class based instantiation") > > FWIW, I also checked all the new drivers added since kernel release > v4.0 and none of them set this flag. What happened with this ? I didn't get a reply to it and the new version still has it. -- viresh