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 3484DC433EF for ; Tue, 29 Mar 2022 00:44:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231421AbiC2AqK (ORCPT ); Mon, 28 Mar 2022 20:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbiC2AqJ (ORCPT ); Mon, 28 Mar 2022 20:46: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 E8B9125C4E; Mon, 28 Mar 2022 17:44: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 2FC772F7; Tue, 29 Mar 2022 02:44:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1648514664; bh=i5iRhPBwnmnl9B4ceK9gfhmqBCY0o1t5TCQ4wN7LXYE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tI4Uiff+S8txeE5+xP6JQO/hHwktDe1ZN0w+aWVSE3KZNmdub1lERECURI0h7omBJ kSNb5G+88c++DnvEnDhPWSDFAyVtojXPBV/GYAexpHmRd1xB7M+W/W8XsGvPfqndOo 1GFdAmAQT1LrGZLKrbqvrN62ntkLHPTUTIf9zKwQ= Date: Tue, 29 Mar 2022 03:44:21 +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: linux-i2c@vger.kernel.org Hi Wolfram, On Mon, Mar 28, 2022 at 02:22:27PM +0200, Wolfram Sang wrote: > > > > 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 ? > > Sure! Only problem: Patches welcome(tm) or I put it on my to-do-list(tm) > ;) I've had a look, but it seems to be problematic. The name of the client is set in i2c_new_client_device(), way before we match with a driver. The name is used in the uevent sent to userspace, so changing it afterwards is likely not a good idea. -- Regards, Laurent Pinchart