Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1168400rdh; Fri, 27 Oct 2023 06:43:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3gUedj3DiCYdYHhieErKtquRnshvKdJ2xw9AOUk3d75XCFl+DHCMYx/xn5uNYt6NCGEpq X-Received: by 2002:a25:d00a:0:b0:d9a:53cc:e58d with SMTP id h10-20020a25d00a000000b00d9a53cce58dmr5343509ybg.10.1698414213377; Fri, 27 Oct 2023 06:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698414213; cv=none; d=google.com; s=arc-20160816; b=keKa8vsRDUQpGiaU4zcG1Yf0CQ7ojRt1zlMlrA+BxmTAoRyvPC9YGy42XAxpMEvDvZ UVUTRefYbVfNZREskEhrL1z6EVBjwuT5VtkUZk7zCuBMSKiW/Kvht30oKQ4sgoaVnk1V VHeBMk14LLBsHt7uKEO9jxX2m2PnFtLxjhuST3NdJEqALvv9TStLjP/R98dwFrmOKTkc tYn9BzsxW72+WUQDI5HvzIm9oosRgeS6bXkz60qFqkdCt6qRyAJee82A06VvlRN5gH1H /9uKdPOKiWmOkVTpwT4Ti7emBXjDpX9CkiL6XQFlxhjl5l+sPuxnMKJxbAUyAP7xGO0I 0CZg== 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=asSD8DgCq8zS5ne7s9dZo/8SQd6dTQDh8Hh/pWBIeFI=; fh=ZgCVPSMjT4GBBUqvzj+w4CXZbqdlUQPc7phW1qZnDEs=; b=fShGxiuECe/1wauZmptRT6I8UpchJkcfmi7i5T3RcoaV+rD3ltkmdJGblYWI8DAWKs BG0zdMyMDbIrWgd9Zy8qEF77KyV6BIZshvjtoziOmMYIOIVN5cwVUg2Y5cdahjIoXQQF CYxFGkDfS9xLCvb9DnuUENs1XSiyHjrOt0jj3rizrgqcmK8HabRBkz87vJQgpuzMt25u +Nx85gU92eJgcMm+XnoxGeARTn6Qo7vBahgwTUxRX0A2GTh2W6NCLtpISdu5wXh/eeId UQGCij306MIBIhu33m3sGlv0SKdQtD41gxMWD5eiyGn9yB0wQ59BZd2nqv3Ua3v1AUQL wWVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IUeuPoSR; 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 h193-20020a2553ca000000b00d9ba3ca7f15si2761464ybb.172.2023.10.27.06.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:43:33 -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=IUeuPoSR; 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 5FED0821156B; Fri, 27 Oct 2023 06:43:30 -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 S1345973AbjJ0NnQ (ORCPT + 99 others); Fri, 27 Oct 2023 09:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjJ0NnP (ORCPT ); Fri, 27 Oct 2023 09:43:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA09E9D; Fri, 27 Oct 2023 06:43:13 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64EC8C433C7; Fri, 27 Oct 2023 13:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698414193; bh=2lyY381zzNPtoFlyJnJ0cgITdp0/j4yyQ9Zy+/UO6Vw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IUeuPoSRcLmjOiSXNXQ5M1H66ul/DWaFzzsrVN1u1Vni8q3U4QU2znPxToUSeSgmI LE5fxDNHJfAfUwlTJShJVjvWTjnF1XZqkv8/R7eTBPp3yeYmVtbV7HDpc6mrvWeC5M ovNCwjuQogdV+yTvFmDNQBepylvNHkZao5ee5ag9RYW8aJv17x9i2xVGz9KAhYN0ER /DGal3IKUNnevHwwVhJMChJnJneagZfUObF0Q3YYlHMCHI7blZDnKgyuhwsfLUjQuI hvzwFQb3jKDvmBoQHHvbN5GBuXvOvPrF7J22fQMnpZhqneRHXxsk9RjUzU+CJ910cZ uS025uVMLtW7w== Date: Fri, 27 Oct 2023 14:42:34 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Angel Iglesias , linux-iio@vger.kernel.org, Biju Das , linux-kernel@vger.kernel.org, Lars-Peter Clausen , Phil Elwell , Linus Walleij , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5p?= =?UTF-8?B?Zw==?= Subject: Re: [PATCH v2 4/5] iio: pressure: bmp280: Allow multiple chips id per family of devices Message-ID: <20231027144234.0ad6c7b6@jic23-huawei> In-Reply-To: References: 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=US-ASCII Content-Transfer-Encoding: 7bit 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]); Fri, 27 Oct 2023 06:43:30 -0700 (PDT) On Mon, 23 Oct 2023 14:25:42 +0300 Andy Shevchenko wrote: > On Sun, Oct 22, 2023 at 07:22:20PM +0200, Angel Iglesias wrote: > > Improve device detection in certain chip families known to have various > > chip ids. > > When no known ids match, gives a warning but follows along what device > > said on the firmware and tries to configure it. > > I would rephrase it a bit: > > "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." > > ... > > > + for (i = 0; i < data->chip_info->num_chip_id; i++) { > > + if (chip_id == data->chip_info->chip_id[i]) { > > + dev_info(dev, "0x%x is a known chip id for %s\n", chip_id, name); > > + break; > > + } > > > + dev_warn(dev, "chip id 0x%x does not match known id 0x%x\n", > > + chip_id, data->chip_info->chip_id[i]); > > If the matching ID is not the first one, user will have an unneeded warning here. Could be a dev_dbg() but I'd just drop it entirely. > > > } >