Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4866339rwr; Sun, 23 Apr 2023 15:28:18 -0700 (PDT) X-Google-Smtp-Source: AKy350bo6SYeSkSdGtT/YVg9aj+QrxlVaN2D09AJFUKyBTdIuJcNM90O/C4hHVMhzflzVabkr1q3 X-Received: by 2002:a05:6a00:2d88:b0:63d:2d99:2e7c with SMTP id fb8-20020a056a002d8800b0063d2d992e7cmr16206986pfb.0.1682288898386; Sun, 23 Apr 2023 15:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682288898; cv=none; d=google.com; s=arc-20160816; b=Dd9ezoe3ybD5C5JQkBl/CxuCy4mZtguQkYve5uTHGEC9ks3bkqyR2A/uveLa77RcsQ Qp1Xf6vJZNmsCthJO/Vvd/t2Vjq6QKFTyZS3px5hx+Yi/oJW1vozWWdjxQxWlHaBLrDU O1V2kptfv4xByOMZE4iTymJ9nk5uvwDfdn6Nx8IAznlop4ki7FX8Vr7zKBJo58SK2F/c XkJHXAc7SkkHLXm3vwwH68g7eg1ssG5MwOHfaeniKtWM6rvZobUgnvgQ/3VdrdAuqHOt QeKnJyew3PFcCkXiIAy6ttJYmbsTNYqjF5Kt9VKDd5cAjlE/ccFIoLx9voXVCLrEh3fu tT/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vTeaFUMPzt83wxw5ZIyQFWx3FUsV665nSPOBgniATUI=; b=h3xNcy5d3FF7xrWQm03As0ap7Y8bznTpezTE/itVKNiAP5GTcLx1XzTHbictSR0V4n jjYpUFtRnO8VirsJoVAQ6ZT5mURlJuol8i8Eq+S/X+jZa7k3uubxCiWd0qQ7MsK+u0mI 4fxJE57mY4HKaK9Yn15aMtUA6Ky/gk9htXOJ7wv8vPbdqLEGNS+UDp78p89JKc9q6Oxz Nwvx4gXOcKyHMNqSHKqLctA8KnC03KaH4/momu/9Dnx6pw2jJt6Mxu/jrRyXXByKdnuU BbwC3bTJ0fvazOD5dFWK/cvQosE5Tj9L3ZvEP+VjurvzPaW5R+s/1fodtYY/o8VeSBe4 AbkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kIP31mG0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b00524d4b572e9si7361143pgb.370.2023.04.23.15.28.07; Sun, 23 Apr 2023 15:28:18 -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=@gmail.com header.s=20221208 header.b=kIP31mG0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbjDWU7s (ORCPT + 99 others); Sun, 23 Apr 2023 16:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDWU7q (ORCPT ); Sun, 23 Apr 2023 16:59:46 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69113F7; Sun, 23 Apr 2023 13:59:45 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5052caa1e32so6488907a12.2; Sun, 23 Apr 2023 13:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682283584; x=1684875584; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vTeaFUMPzt83wxw5ZIyQFWx3FUsV665nSPOBgniATUI=; b=kIP31mG0ih0F62/A0CEv78gRcICVKmeP1LaexXbntP364uK/kzVy1+lmAST/JPZh4D uWhZJ+Ls2q7kVaJqQPZ6SFs3a6+pHuSzBE7vfaZPapQ1V3tn7JbVpEgHPnykjLhmUllH jmojYInhQ3NLIxFJK2FXnNtbpIl3wG6KO0Ft2BCya1OZpF17yqfxLUb4hPWh45u8qIU7 lrVCSkyi3Fr33XGcNFd2ndRVtWgOH4sae63kEsMgIHiHCL6u/qFahs5jL1/peikwZSSB Lber1L+eo6TMk2uITrt3AzrwLnc6SWa8sLaX/A2hOQXk6SDDSHAtOuZp8BvJYJf4Fe/k o6jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682283584; x=1684875584; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vTeaFUMPzt83wxw5ZIyQFWx3FUsV665nSPOBgniATUI=; b=U8s/AsHpyFYG+znMdL6HCFBTzp0MYfoDkPQWFvEhd2LRhfqRr2H1q1kvQojncIAYfG 9z4gdDol4RNE147Y74cX3RmkFc8FkMH0FpDnUAnE/ea31A5WAOE8MMAr8oZsM3Rb68TR 75btWQVC3iZAhUKWkedHARH+gTyQDZSVZH0icmqi2nmDaYvRlA+JhT82An37bOMkZRjj AhCr/PlCFKUaNzeKn1bPJzUzO+jiF60NQ19TzbrCMXZLFDbM9GdbUMiGzZLthhCJ0Oij x38ylURng8fuxY7NziehprRYLRdO7lrjeaIhN4+Tw6u9wJy6YfLXn+c7XMLSsXqPPlVy ubqw== X-Gm-Message-State: AAQBX9c5BxfFCzYG/malKtAGoYk9zHScSGDKF4yriePJ5DqirlTx/mms K4lTZK+niX36D2Sic5ZQ464= X-Received: by 2002:aa7:c902:0:b0:506:a561:b0a9 with SMTP id b2-20020aa7c902000000b00506a561b0a9mr10505241edt.14.1682283583630; Sun, 23 Apr 2023 13:59:43 -0700 (PDT) Received: from carbian ([2a02:8109:aa3f:ead8::d7e8]) by smtp.gmail.com with ESMTPSA id d12-20020a50fb0c000000b004bf999f8e57sm3938834edq.19.2023.04.23.13.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 13:59:42 -0700 (PDT) Date: Sun, 23 Apr 2023 22:59:40 +0200 From: Mehdi Djait To: Jonathan Cameron 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: References: <20230422182833.7fbf6aae@jic23-huawei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230422182833.7fbf6aae@jic23-huawei> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hello Jonathan, On Sat, Apr 22, 2023 at 06:28:33PM +0100, Jonathan Cameron wrote: > 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. Oops! I will fix this :) -- Kind Regards Mehdi Djait