Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1170722rdh; Fri, 27 Oct 2023 06:47:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzyYQfl6fhGOxKsiLSnSuX5euqQzN5h3c9li/a04eKh46rotTlWE4h7hy2sydCIWmPYkKY X-Received: by 2002:a25:b313:0:b0:da0:cbff:4e20 with SMTP id l19-20020a25b313000000b00da0cbff4e20mr2366511ybj.56.1698414442679; Fri, 27 Oct 2023 06:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698414442; cv=none; d=google.com; s=arc-20160816; b=b3fNY21xzPaT7HxvO4TEIOpV4PZuuX4RLXFewdcUHvumpc5361DZEW21M4zL+U+WOB EQ7db345T8mRD5VTb4RcbQULWEjyq+7bsCcY0FJW/q2UBqk1+5yURdLiq8G66llVzUYP 6QhZuJk0Ra6mPYWh6DhISY2DkVssgZcESVrhFZQvQV+vFPFcFXSvt78Xrf3nt3F4DDEk pp1+iEvWoa9zwk/sFBWt45+sfRDz+A6Jb+z+WNYkDBSe5bVpKwKc3OTFRAXKjLQbzvEf Rq1OBMSV0loqyMcIGfXMRYB//B+1Dv8sVbepF+aCU4hdpFqAeWAC+WVnp3kwQniVYqKj MKvg== 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=IhB3zyM3Ac5Cn9YThFByTmAsWLNGvX8cEvOlHA8Jcz0=; fh=ZgCVPSMjT4GBBUqvzj+w4CXZbqdlUQPc7phW1qZnDEs=; b=Fi+grQp15wKPPsb3Ry2lBmgGHyqo0/YB1bzT/DowP0/j8i7dWqIA25WbUxNOWi2wxZ a/xJK3dw4wEzjtyPTtasJwztGFCXbhvWHjQftEx1dPT8ZwA0cRKKsKq9EsasQPKym3To 8g3xkbZUjpE0adziaxfDoHeOx9d6CvTKmk5ba3uhC32KU9wmWGNhkyQXAtnnM6m1Jl6c n9ff6Pz0Nhfmq+IemYTOmVcCkoppYcbZHGvS3qNzOllOL5YgKC/e9PIPCt2Ea4pALq5T cTI777kB9Huw7UNf4l8CclEliYy5ZsvaOEzIymscku7RdurYOwI9qVKe5dRDcTS5KtMR bD7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ILaqQ5RE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u127-20020a256085000000b00cffb6df5409si2208991ybb.9.2023.10.27.06.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:47:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ILaqQ5RE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id B31B58325224; Fri, 27 Oct 2023 06:47:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345958AbjJ0NrI (ORCPT + 99 others); Fri, 27 Oct 2023 09:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345458AbjJ0NrH (ORCPT ); Fri, 27 Oct 2023 09:47:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00E0A9D; Fri, 27 Oct 2023 06:47:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2EECC433C9; Fri, 27 Oct 2023 13:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698414425; bh=PDM2diCGxCnhLmpepTocuodFEgpq+efi5FyxfOqLlW8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ILaqQ5REhAvAcZ/orSI/QjL66UWXtUG1zWKgw1N0/oszAW0XiPQ0iMLP3pxQISF1F Zpp7EymGwHkfciz+HE4AMLusqZqIW3IUmTHtf2oX745uC5rK3AghcJgJ11vLSDxdsg Rgiti8ozzeL7LMEzFTc9g4up+vExyQPx7Get3sSUhkwXpXb6orDLqOe+O/SEDMwqyD diawqTyvMWwFpxQXfiC8dsE12MjL58AQcZbJ1kEshcKetZqRrCc0C3Ch6QnCI75vTW Y6ju76hbVDBCyoAxwngQUfx6gneLqi+HsikcLuLX4oiAiyolSxNB1eKY6Wn/3xmtQs mogEUvtb6bG6g== Date: Fri, 27 Oct 2023 14:46:25 +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: <20231027144625.36cc694c@jic23-huawei> In-Reply-To: <20231027144234.0ad6c7b6@jic23-huawei> References: <20231027144234.0ad6c7b6@jic23-huawei> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:47:20 -0700 (PDT) On Fri, 27 Oct 2023 14:42:34 +0100 Jonathan Cameron wrote: > 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. > 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. With that done, applied. Jonathan > > > > > > } > > >