From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 243AFC433FE for ; Mon, 28 Mar 2022 10:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234956AbiC1KGK (ORCPT ); Mon, 28 Mar 2022 06:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233834AbiC1KGJ (ORCPT ); Mon, 28 Mar 2022 06:06:09 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09ED4656E; Mon, 28 Mar 2022 03:04:26 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C7DA79BC; Mon, 28 Mar 2022 12:04:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1648461865; bh=tMK+R9kj1Lsag9DOJO+ldf5okh290gG3kRXbCJfVZn0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m5mXdWlWSz78+D4U+hhr9L4SP50EgSlTMjA6DrHaNVrQuMjPzM0XJ65IngZAXrMne xl3nva2CQFt+muTiDkZGWjgjMjriAsa/IlPdIEOFS93oD26Z2N0gYpV4tHyRfZCBBr j4LDFEeIp9xSeNf+B6nDd0jMyBcachnAouTWytOA= Date: Mon, 28 Mar 2022 13:04:23 +0300 From: Laurent Pinchart To: Wolfram Sang Cc: Jonathan Cameron , linux-iio@vger.kernel.org, Lars-Peter Clausen , Rob Herring , Sean Nyekjaer , devicetree@vger.kernel.org, Jose Cazarin , linux-i2c@vger.kernel.org Subject: Re: [PATCH v1.1 2/2] iio: dac: dac5571: Fix chip id detection for OF devices Message-ID: References: <20210723183114.26017-3-laurent.pinchart@ideasonboard.com> <20210724000654.23168-1-laurent.pinchart@ideasonboard.com> <20210724154308.55afb03c@jic23-huawei> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, Mar 28, 2022 at 11:20:54AM +0200, Wolfram Sang wrote: > > > My point is that this patch shouldn't be needed. I'd like if the I2C > > core could get the driver data from the i2c_device_id table instead of > > duplicating it in the of_device_id. This isn't possible today as > > i2c_match_id() doesn't have the fallback mechanism that OF matching has. > > I think the proper fix would be naming the I2C client after the actually > matched compatible property, and not after the first one? I am a bit > afraid of regressions when we change that, however... That would be the right way indeed. I have the same concern regarding regressions though. Is it worth a try to see what could break ? -- Regards, Laurent Pinchart