Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp915408rwd; Tue, 13 Jun 2023 02:03:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pv15ulS36vjbY1zHeVWO4+ecpZHhWAmSpLt4ZL6mydQd7JxGLQKYLOBSGaMPzuU3DlIGU X-Received: by 2002:a17:907:7d88:b0:977:d53e:4055 with SMTP id oz8-20020a1709077d8800b00977d53e4055mr13595342ejc.58.1686647004499; Tue, 13 Jun 2023 02:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686647004; cv=none; d=google.com; s=arc-20160816; b=tUD6J459mLngpCS6oooKOtuwN7EUUbBVRkqtEB/pmysHVT572IynibaNMQotynxK1B YylVSQJKB4nL6Mc0/6PiicN1YtuE172/CI+KWy7QqTvY3QzWc/WBN9L5FGxkPW0/xWSk kRkTCcPDu969WPC9co+2dWmq5aPnUpQ+RhYJ3FPqL6NsFqPgR3Io6urTbChgaZbJrh2x hG8BxHJdgUbNCf/DGsUq5FaD/mx1uZkLpjwAmYbNfHtes27Lli+gNZS4Bv8mhkS60Ptc wD/EEWKELxkhVI/FCw4ZV1jDebj0ZNiTzTH/OlOG7x78N/VZmeUsjQHx9B2QP9CNmzWZ +C6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=lMAW5Ou7KIhsW2jfrLpswrS3QB3OUx2Kdr76igm5lO8=; b=plydxUME7xTypjM0BoedYBRCeDXsKmVGVvvIUcsSiFsEIGU2EkP3NN379Ev8tYyzr0 lYPRBmD3OSrhcQBfkeiUJSQvTx9nW3saIZ5FXHFXsCPTwLvhjff0mrnUnMMHd2dYoC3H FzwCLRwsP1c1APoml9J6rZmnhkc4SJAjBQCx0G371/QCIxNEaOYGuQVeVv2RXPnfF1i3 bjvy3Bqm4Uqn+s2GrB3HARuOvQmMp/njM7IDNyietdPUe6YGsOlgHT1YCIBKo74lkDvM WOZqAGR/0oG1Nx+37QqHhzUX59NX1Y5cCqJqecw59IOPtCK0obA9DkP1XZ775BS3suSS DDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LRjXwL9h; 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 i7-20020a1709063c4700b00973877aac6fsi6126937ejg.30.2023.06.13.02.02.57; Tue, 13 Jun 2023 02:03:24 -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=LRjXwL9h; 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 S232484AbjFMITn (ORCPT + 99 others); Tue, 13 Jun 2023 04:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjFMITm (ORCPT ); Tue, 13 Jun 2023 04:19:42 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5015EEA; Tue, 13 Jun 2023 01:19:41 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f6195d2b3fso6444193e87.1; Tue, 13 Jun 2023 01:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686644379; x=1689236379; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=lMAW5Ou7KIhsW2jfrLpswrS3QB3OUx2Kdr76igm5lO8=; b=LRjXwL9hOWHS985h6F1wdXt3wymMPxI8YOwOcOx1HA7TCcK+a/7uwUfkobmJoEYCp5 O6twhQS7jzBniSS0CuMwX0FCeuzEUpesUIg4Xg9L//w//aihtv0mTrsFvWvkfZDt7CdL m6O8ZeqIMtNTHIblQ0RVfr4pbuHcF193Vt9diXAVYtfJdUJVECLh3ylNkZB6micMUKX2 U0ud9TT1UBhXPj0hRrZTCmDFGkdQZBHNx4R6Fq2vO4zftpumtqiUQi+jTkojFP8Yg1Ok oxBfiRSU094XbHPWCKbmieBFdlC1Y/28ECkah6k7uarghWlEIHW1AcC5Kg9lbE6hfC7A MSug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686644379; x=1689236379; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lMAW5Ou7KIhsW2jfrLpswrS3QB3OUx2Kdr76igm5lO8=; b=jTRaMy85RoQIzjEZYcwsyzVyymT6BuQlzD/KxaHevTfsH09wt6nqZxZprP2bNbnwDc oBYfZ3EZxNjNcE//ngVbDg5lSnbXQ6pPO/we6tHAgXTy7oedDXPr+I3oQrVjb7uZ16sL +gG24KDDX/tUOcshD8ImH0P8YDcVga5XTPELoeslsjZuutVdqnWUbx9F3IxSQWITBvzz q3nzx/FgpaQIpiUDWKE+ESonRmrci06HmfvGFdZ8axD0AizFFWR+sqywWiIJf1S9W1zw 6HgIcdh0U1UH5hcO5v/v6Ctu/kNdRt7N1Txv+DtKkHcM1W49zEUkPrFD+2o8L75RRdmV E6ig== X-Gm-Message-State: AC+VfDwmmTZnJi90t18Nf01I/4kZZ9JJIbvYqNf4ACHc4135cNS8qADf +16fpRFGOEfZi+rugB7qipc= X-Received: by 2002:a19:e345:0:b0:4f4:c973:c97d with SMTP id c5-20020a19e345000000b004f4c973c97dmr4881664lfk.25.1686644379178; Tue, 13 Jun 2023 01:19:39 -0700 (PDT) Received: from ?IPv6:2001:a61:35be:1401:2331:c532:1717:d48c? ([2001:a61:35be:1401:2331:c532:1717:d48c]) by smtp.gmail.com with ESMTPSA id n5-20020a05600c294500b003f801c12c58sm13537829wmd.43.2023.06.13.01.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 01:19:38 -0700 (PDT) Message-ID: Subject: Re: [PATCH v1] iio: ado: ad7192: Add error check and more debug log From: Nuno =?ISO-8859-1?Q?S=E1?= To: Markus Burri , linux-kernel@vger.kernel.org Cc: Alexandru Tachici , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org Date: Tue, 13 Jun 2023 10:19:38 +0200 In-Reply-To: <20230613054250.472897-1-markus.burri@mt.com> References: <20230613054250.472897-1-markus.burri@mt.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.2 (3.48.2-1.fc38) MIME-Version: 1.0 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 T24gVHVlLCAyMDIzLTA2LTEzIGF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