Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1756448rdh; Sat, 28 Oct 2023 06:08:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVmjG+IPvI60dBKjixNdmPSWC2yhEAJBqSD8w3zfb5e9rzHXYM2f/hc8fmdwBgogH5jvcy X-Received: by 2002:a05:6a00:93a3:b0:68f:d1a7:1a3a with SMTP id ka35-20020a056a0093a300b0068fd1a71a3amr6156925pfb.8.1698498495384; Sat, 28 Oct 2023 06:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698498495; cv=none; d=google.com; s=arc-20160816; b=DD+Gzrz8Uvgj37lJz/uDUJEEveYDM5EHNgQi4XrDtoQS1y4yA/7iOgsNL7qX+zXgfs +vSIubflXWTY4nKU9XZ6urdcfr4bja55Tb7ZgTajjuZeyA/ukqCnHjm3GZhfzs3oEXsJ kwtL1k70xMbgdk18/Jbvj0JuD2Itr5kYOC6/pp/HlUF6bKMkXhB6EIMg5HMOF5A7BSvC 51TtoVcTXYr4X/lxTGqkcNQ25Rgp/SddNvuUrYg2cDeDvH8iWe1KfTl8dzpxbmVcZ1+5 f34OK+IjqQJUgdxtQiGxHUijUhBTd9ZvBW7GF5FDndnExXXTxiuU+iJeG1MYi/CPYrCP uKWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=h8gWc/gomD7dbupjQHPLz5RfylqXB2Vvy93k6Dewlrg=; fh=33zHcmGTiaaQu2WeJAQKIvzaAIyeYg7JYzvMyHkUZ4M=; b=kSRWDGfC8cxb0ym7pd59vw1xPwHmdq6hE/YsckDwsENIdO8pfwTBGiC+Qk7JtBVBN7 o6vHBjXL+YJtrdmqS1MCEoFsHc/M9TiLpDd4nTGsa+Js4drDxHGRg11evab0otO+d6ie BeINpEN9S1yGoBvb5+iTMUWO49K9y763zwBjO1MhtjzWm7HW5g9cZVpeuoVrBccwPHhR VgzHaHIrAVL2YS8ZCn4ZOrDuUq34Ft0ShEGZCQCsJG496yPLzkyFPtWOu4M3tdi5I+Ur oPNltX6OX5oBxUCQyXBnxbPS65WA1dCxRtNlaXcitbLHMpdSFVfaPSMBahyC2xdNfknW ZC2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HzrbRbMo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f3-20020a056a00238300b006c0035ff9dasi2407698pfc.198.2023.10.28.06.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 06:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HzrbRbMo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 76B8D809FA40; Sat, 28 Oct 2023 06:08:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229539AbjJ1NID (ORCPT + 99 others); Sat, 28 Oct 2023 09:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJ1NIC (ORCPT ); Sat, 28 Oct 2023 09:08:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAE1CD9; Sat, 28 Oct 2023 06:08:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E358C433C8; Sat, 28 Oct 2023 13:07:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698498480; bh=KBUyRH5iBmgvQ8CyEdi22IBAbVqBkZuq2Xzf3BqGzuc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HzrbRbMoFLkEWfi3MJrBk2GRygax4NBUflJZmZqBQVtwaGWVZVE8tkjSW6OE4aACE Fc/06QC7VBWNUxPTExy+GcwQ9NUw7fM0sQ4N1SfJzt/Qm0vVom771/mrqB4mKrkRXD hWbNRL3GqAmJmx48ebLQ0DJ2y5qTtLxtG2SYx7wbanoFKwo54eAbyYPSi+SVuS/0FF OjkirPgR0c6nSCmT1NOUIAGnBsFXVKNJ1uaKR/TRXCv+nkKkePnaMpxgf+QPhrzN0r NzObDvZVv5WzBsxrYC2VVDz8lVpj+zGbRgqSpzT/ZqV8f1Frh3N7vRUyEW3w8+qtX9 Qn+1/8UsGbwUg== Date: Sat, 28 Oct 2023 14:07:17 +0100 From: Jonathan Cameron To: Angel Iglesias Cc: Andy Shevchenko , linux-iio@vger.kernel.org, Biju Das , linux-kernel@vger.kernel.org, Lars-Peter Clausen , Phil Elwell , Linus Walleij , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Subject: Re: [PATCH v2 4/5] iio: pressure: bmp280: Allow multiple chips id per family of devices Message-ID: <20231028140717.7a1b4c6d@jic23-huawei> In-Reply-To: <2a5ccee0ce33b2918e8b32b25ff1cd7221d01892.camel@gmail.com> References: <20231027144234.0ad6c7b6@jic23-huawei> <20231027144625.36cc694c@jic23-huawei> <2a5ccee0ce33b2918e8b32b25ff1cd7221d01892.camel@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sat, 28 Oct 2023 06:08:12 -0700 (PDT) On Sat, 28 Oct 2023 13:23:46 +0200 Angel Iglesias wrote: > On Fri, 2023-10-27 at 14:46 +0100, Jonathan Cameron wrote: > > On Fri, 27 Oct 2023 14:42:34 +0100 > > Jonathan Cameron wrote: > > =20 > > > On Mon, 23 Oct 2023 14:25:42 +0300 > > > Andy Shevchenko wrote: > > > =20 > > > > On Sun, Oct 22, 2023 at 07:22:20PM +0200, Angel Iglesias wrote:=C2= =A0 =20 > > > > > Improve device detection in certain chip families known to have v= arious > > > > > chip ids. > > > > > When no known ids match, gives a warning but follows along what d= evice > > > > > said on the firmware and tries to configure it.=C2=A0=C2=A0=C2=A0= =20 > > > >=20 > > > > I would rephrase it a bit: > > > >=20 > > > > "Improve device detection in certain chip families known to have > > > > various chip IDs. When no ID matches, give a warning but follow > > > > along what device said on the firmware side and try to configure > > > > it." > > > >=20 > > > > ... > > > > =C2=A0 =20 > > > > > + for (i =3D 0; i < data->chip_info->num_chip_id; i++) { > > > > > + if (chip_id =3D=3D data->chip_info->chip_id[i]) { > > > > > + dev_info(dev, "0x%x is a known chip id for > > > > > %s\n", chip_id, name); > > > > > + break; > > > > > + }=C2=A0=C2=A0=C2=A0 =20 > > > > =C2=A0 =20 > > > > > + dev_warn(dev, "chip id 0x%x does not match known id > > > > > 0x%x\n", > > > > > + chip_id, data->chip_info->chip_id[i]);=C2=A0=C2=A0=C2=A0 =20 > > > >=20 > > > > If the matching ID is not the first one, user will have an unneeded > > > > warning here.=C2=A0 =20 > > >=20 > > > Could be a dev_dbg() but I'd just drop it entirely. > > > =20 > > Given that was all that came up, I've hopefully saved us all time by > > dropping the bring and changing the patch description as Andy suggested. > >=20 > > With that done, applied. > >=20 > > Jonathan > > =20 >=20 > Sorry for the extra work Jonathan. Next time I'll be quicker checking the= inbox. Don't worry about it! It's a bit random when I get to IIO stuff these days so when I do, I like to clear as much as possible out in one go. J=20 >=20 > Thanks for your time guys. >=20 > Angel >=20 > > > =20 > > > > =C2=A0 =20 > > > > > =C2=A0 }=C2=A0=C2=A0=C2=A0 =20 > > > > =C2=A0 =20 > > > =20 > > =20 >=20