Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3722590rwr; Sat, 22 Apr 2023 10:18:15 -0700 (PDT) X-Google-Smtp-Source: AKy350alJOC2tKDR7dNeOcIytkJkMwIZd5PT3iSwNqLttmSnl7h2GbCpaS3nXhoYWlyr41tkN0hY X-Received: by 2002:a05:6a20:54a6:b0:f1:1ab5:5076 with SMTP id i38-20020a056a2054a600b000f11ab55076mr12574195pzk.2.1682183895099; Sat, 22 Apr 2023 10:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682183895; cv=none; d=google.com; s=arc-20160816; b=vihtc0xIk9i71DXZdJJDeGYfurWzyEFoFHTfxOTEJ98vpjmhPhGWUrWLSYlJLes2kF 99cdJlGnNHdc2dxu8LeuJikn2eQrDzQNltKOcyIZCTJKzIxA94U9QW5cAUpXlrp5wxCL CLrK8Bfynl6YdzTRuW6PA0S6jM7T65ggXyNaDYaSfZqXrnUX8BvvdZE39ev9tjAHqI48 FQe4CVgAdmoV/zX+puhMr87MwNYh2v/6dtEybCTacLe2JC2K7EFAuf37CTfJfyBWZoTZ E2SnkE3EBssVtK0Cs+o5RjPJHfXMzybKozv9xFyXCQPmamvWaxquCrJgXpUyox+nsjMB 9wQA== 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=xNrs0GUIoZtHdpHd/Q0NuK8m/gbD/fAEoWKyybTfAf8=; b=PXPepBQowSLPCO5+IPqMG1K6WhvRTaOO6LKjFFmhSbOn76ThvSrQqlcbjAAghu5dmq Z9rneD/dO7mFgnixp8qywieEGfyZxvGLGjYfKadyOiKPskYOiIKr5H3MdrAfGJhUmh1E Mn2d5o7n3+UPybEDPnJcfGH4zUW1pDJneHpQRT0YVUPHi8PsdIWRI2Gpce5RF3wX3YS0 /jRYUKnH+HYj0TLJQdAHbBqXIVm8ruVR8mPUwjvTxIaRGn4zixuuBhDOLiF/Ia57mN5b V3zJzyyXcOypEkRBKvfVTKH4ahJFbfyBpv48A+OQFj+1belryOKDCVvlCmodIcG8mVDO g0nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DA4/hLPy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 73-20020a63074c000000b00502ea14e6ecsi7140331pgh.712.2023.04.22.10.17.59; Sat, 22 Apr 2023 10:18:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DA4/hLPy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbjDVRNA (ORCPT + 99 others); Sat, 22 Apr 2023 13:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjDVRM7 (ORCPT ); Sat, 22 Apr 2023 13:12:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5331A2114; Sat, 22 Apr 2023 10:12:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DDD4560E9B; Sat, 22 Apr 2023 17:12:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6153C433EF; Sat, 22 Apr 2023 17:12:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682183577; bh=dq2mWH2zsRT78Bh1KU9LpxGEzixDbvMmHZ0wzOfn++w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DA4/hLPyUXDRXZ3vSrh40L+CoA3JsasBezpy1VUg5TjyBPR5ViCWGQK3dPW8QaP99 r284UrX7cHhv3nwy9eB5Hf1Cb/zu0YvIKTo52O1KHh7TRLqg9DouCTbEgmTHC6LhWP fMb8XMwwAhn1wBnRIK86ixAHR83/xmEA3NtETN7Ptj/IwyD6HRiIn9qLqk6IVJAyGm +2VjXYAguZc4p7yitfckEVyqrGM6e4Scyf5n5T3s9Lmya3OlxofUesuJohW0InnQ7f MCLMHnvgj7G1eT2QolYSfChljQm4qLlX/lttK2gUPddRHSPg5glZke30sIr4+Zwf/A wzaG2oJg/Vt3w== Date: Sat, 22 Apr 2023 18:28:33 +0100 From: Jonathan Cameron To: Mehdi Djait Cc: mazziesaccount@gmail.com, krzysztof.kozlowski+dt@linaro.org, andriy.shevchenko@linux.intel.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/5] iio: accel: kionix-kx022a: Warn on failed matches and assume compatibility Message-ID: <20230422182833.7fbf6aae@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Apr 2023 22:22:02 +0200 Mehdi Djait wrote: > Avoid error returns on a failure to match and instead just warn with > assumption that we have a correct dt-binding telling us that > some new device with a different ID is backwards compatible. > > Signed-off-by: Mehdi Djait > --- > v2: > - no changes, this patch is introduced in the v2 > > drivers/iio/accel/kionix-kx022a.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/iio/accel/kionix-kx022a.c b/drivers/iio/accel/kionix-kx022a.c > index f98393d74666..70530005cad3 100644 > --- a/drivers/iio/accel/kionix-kx022a.c > +++ b/drivers/iio/accel/kionix-kx022a.c > @@ -1038,9 +1038,7 @@ int kx022a_probe_internal(struct device *dev) > return dev_err_probe(dev, ret, "Failed to access sensor\n"); > > if (chip_id != KX022A_ID) { > - dev_err(dev, "unsupported device 0x%x\n", chip_id); > - return -EINVAL; > - } > + dev_warn(dev, "unsupported device 0x%x\n", chip_id); Try building this ;) You have remove the closing bracket but kept the opening one. Jonathan > > irq = fwnode_irq_get_byname(fwnode, "INT1"); > if (irq > 0) {