Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3993377rdg; Wed, 18 Oct 2023 11:33:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8lNJdA3b/VPY7aBK1MUWZyGc9A3buCHBMBRrdX9U06gQBBPnAINgkReXPVYX/Ryh53D9R X-Received: by 2002:a17:902:eb51:b0:1ca:7669:fbb0 with SMTP id i17-20020a170902eb5100b001ca7669fbb0mr175735pli.49.1697653992768; Wed, 18 Oct 2023 11:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697653992; cv=none; d=google.com; s=arc-20160816; b=N0Ll9nZ2V3F13DknRkFDQ5eTUqKYYjHKPaX6kdC0c8JoV9ny9G5TFwcWDMHMJwgDmN XNGZAKFCwEGxqdLQ21OQEcQqrhMF+NdUds8pjgqGxq/DHMHxlzVi2ejEpV4i7uMtc5S/ M/gH3g5snMjRhmAzJreuynybAYm+e7hV8geB51zNTZiF9hClxPYSbVgjH9j5j/+tBbbf PKRF46KWacvTKgIJPG4Udy0P4Pkq86c5ke/j4D/+X23w/xqw2zHkiU0Myfx463NuDMo1 QZ0fvqCKtiXm52DsgXFPhhqOkyKahUR+UofpPo4FoIJymIr83+dFuuQzjrk66zcMTkYw gzpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OcuhCkyUkVkJNziShfChcqgUhXGg8fxBljsMorp2LaA=; fh=odp2xljpZvPIzRYwevpvA65zQwSE/x7yKWW+NZLyoJA=; b=dj9OOsIonLocA74OWtmhXoshBlshwT9fc5rLJVHyE+bLGWxfDc5cWIC+qAll4KDFtB cI4e+2CPUlzGrxgtMhaW0+JpYiW6vYUypV9RD0xKgMycfd/1wBjNKNsdLWYA6qZc+puX GztMDPsHhfuVrWRbDD7A7zWq2NywC4j623zVLnp+659+TxdUB/Wq9UZ+b575e7Zgi5we eLlzotoe8WUaOYpfyuiM0m6o24oUg9nzWX+NZV5X8Pf6qN4+kkW6CDHplNmnp+/mwmvP u75huNrOC2L208oLUdpIsrsuont3w7egflOSK2A1F5wgKXOYwJzYkIG4He0HjT4nxO6O LpgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePAoapLT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l7-20020a170902f68700b001c77674ea94si425413plg.434.2023.10.18.11.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePAoapLT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1011380842FC; Wed, 18 Oct 2023 11:33:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230483AbjJRSdC (ORCPT + 99 others); Wed, 18 Oct 2023 14:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbjJRSdB (ORCPT ); Wed, 18 Oct 2023 14:33:01 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 941F8118 for ; Wed, 18 Oct 2023 11:32:59 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-d9ace5370a0so7135455276.0 for ; Wed, 18 Oct 2023 11:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697653979; x=1698258779; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OcuhCkyUkVkJNziShfChcqgUhXGg8fxBljsMorp2LaA=; b=ePAoapLTdINEqv0vb+QGSFhX9piNv71BX+6lcbgOhGicNbkA0CTYSeBIpA2wzGnj9t Jx8iWGexToXZ/0Mc3Ysw9/hbCUrE3KAK+I0DdAo4rfc2ErNb3jtYaHqC/EHL6gcP2qj+ zE0pX14WxW5yQ6LBuZNJO2r6RXlEM4U1TM1QpQxKtK8yEfg52XV0iqvRHpFcPwkQh80D UvDuFK301kalDuRtdHE3w23IXKN6gL52HzxAk2rKq0YgC8Ml1GuXaNFj3uS2qVigZBww ARq3TyxGIzz2X0rLmcFSI9AIkJ9YKra/PMWOGxxM7pvM+u1T25EhhhGCnvTWq2TgzhPP vKdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697653979; x=1698258779; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OcuhCkyUkVkJNziShfChcqgUhXGg8fxBljsMorp2LaA=; b=sTm81fsBa7b2yTU0O4nttIR2ye9OBWBFgXoMFTyFixu6bkgTZL5+vRe6Mcua7POZYm PbHcWT1LbeJHmvC/F8k4rNbCp6xAjevSsEc/6ceXWXm5rrW2b3UNjNl1sifU+5uZrmWl 4rNUlmUOtSxqRTp1unfSNqvkbbMLSpFtgjg1HXJDGmO0DqFFuoH1OEjRaRnttgtjerxW KZ4Mz5O4hAX82zr50v5dXmWWxZvKCv1+zWwRp2Dx+dMMsIVc7ppkfxVw7C/V8W8ASQ8y bAe6/5wMxPEFPxwcjo4cxYb9or8lNqmiEnBPhweExIwvBDd6pFTirZJozVNk0fN+eayH l/sQ== X-Gm-Message-State: AOJu0YyFwizXn8JWLLKZaGau/pZmD4EOxF/YhT+/PH182QQeO1DAKjwz P9VzZ6HxdCORpEmCosJzslxru7TlI+FvI3vc+pASqQ== X-Received: by 2002:a25:c588:0:b0:d9b:e043:96fa with SMTP id v130-20020a25c588000000b00d9be04396famr176582ybe.22.1697653978695; Wed, 18 Oct 2023 11:32:58 -0700 (PDT) MIME-Version: 1.0 References: <20231018152816.56589-1-ak@it-klinger.de> In-Reply-To: <20231018152816.56589-1-ak@it-klinger.de> From: Linus Walleij Date: Wed, 18 Oct 2023 20:32:46 +0200 Message-ID: Subject: Re: [PATCH] iio: bmp280: fix eoc interrupt usage To: Andreas Klinger Cc: Jonathan Cameron , Lars-Peter Clausen , Angel Iglesias , Andy Shevchenko , Sergei Korolev , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:33:10 -0700 (PDT) On Wed, Oct 18, 2023 at 5:29=E2=80=AFPM Andreas Klinger = wrote: > Only the bmp085 can have an End-Of-Conversion (EOC) interrupt. But the > bmp085 and bmp180 share the same chip id. Therefore it's necessary to > distinguish the case in which the interrupt is set. > > Fix the if statement so that only when the interrupt is set and the chip > id is recognized the interrupt is requested. > > This bug exists since the support of EOC interrupt was introduced. > Fixes: aae953949651 ("iio: pressure: bmp280: add support for BMP085 EOC i= nterrupt") > > Also add a link to bmp085 datasheet for reference. > > Suggested-by: Sergei Korolev > Signed-off-by: Andreas Klinger Reviewed-by: Linus Walleij Yours, Linus Walleij