Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1162261rdh; Mon, 25 Sep 2023 05:17:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEB8BpMFC4yX+hrPUJB2j6AGZE+gMauDLrAR+qQBBS6sEvHUf0oQ1s6kwrRenBrzpTT8PU7 X-Received: by 2002:a05:6808:2103:b0:398:5d57:3d08 with SMTP id r3-20020a056808210300b003985d573d08mr9038266oiw.37.1695644239670; Mon, 25 Sep 2023 05:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695644239; cv=none; d=google.com; s=arc-20160816; b=ks35JU5i9yL8joHttSOBf5xQQOaJDaVoXRMjldG4bs99ykW0QffVqLdWMqQ0YbMHBd uAiBPBGV+AMX+u530EPcefyFB6QswGHUdu44D+LEoV6r3IAwgdsOLT4MvQvTR6T50Ppe 4XTls+ozsW0N8Xk3Vj2BVNt6PQzMrgxYvHHkYHiE++MrzfKBAeSeNjELDdjUQ9x3cGp3 lWA4UojJVs5VL0us3izHtCVSmRMI+7KjqNO0CQxhVCzVNSvmE8pvpBI3JqoKuivJ/+zH yipw65FVYTcjqQFOupB0gdhUw23rVfXIzBW8FMcO7+PkCClXFALSVyImLBmYxUKd9uaW yp6g== 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; bh=y6bkN5JNARUWJJZ3O1j4pH3hG/JJU+d99l5HqQWeLRM=; fh=ZSdvCKnYW7LpwYxx9+mFzVZ7EF+gnQxF8OQjFoUStYc=; b=N84jjVmlLimV9GRI3hfUFkbrQmpWd6JEh7fgWY+CFw4Aor4sr3qd8ym+RJvF+bnxqn IULT659VeWHfgsv4rsIYARk98jhLrtqnCM04Q4f8IEBBkya0jq2MSZ++vQz8f+Ltjfdx 40KA2gjgEp0pod2CK8GtQrq8rKVQpDwwWcrsY8aTZ4BIPoKL00CpGTU1NVUoZ84Fgd47 PgVcXmn9UOqt+UBXSAUdQKPgcl0HlHw4gn6aL47FkXQrTk9zmo3/BfIoUbahWQ22F8VP Hc9XINAujQtphBhFkiDDMuStgH2aaeLekAjJUMXIC8EDvKvIoiW5rMbrykyhk6KlhEkj +9Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d11-20020a056a0024cb00b0068fadbc3169si10353122pfv.254.2023.09.25.05.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 05:17:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 34A2880A90CF; Mon, 25 Sep 2023 05:05:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231639AbjIYMFc convert rfc822-to-8bit (ORCPT + 99 others); Mon, 25 Sep 2023 08:05:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231579AbjIYMFK (ORCPT ); Mon, 25 Sep 2023 08:05:10 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9298E76; Mon, 25 Sep 2023 05:04:29 -0700 (PDT) Received: from pd9e2f713.dip0.t-ipconnect.de ([217.226.247.19] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkkK2-004AN8-EF; Mon, 25 Sep 2023 14:04:18 +0200 Date: Mon, 25 Sep 2023 14:04:15 +0200 From: Andreas Kemnade To: Andy Shevchenko Cc: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, jean-baptiste.maneyrol@tdk.com, chenhuiz@axis.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 2/3] iio: imu: mpu6050: add level shifter flag Message-ID: <20230925140415.00130082@aktux> In-Reply-To: References: <20230924222559.2038721-1-andreas@kemnade.info> <20230924222559.2038721-3-andreas@kemnade.info> 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=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 05:05:58 -0700 (PDT) On Mon, 25 Sep 2023 14:07:58 +0300 Andy Shevchenko wrote: > On Mon, Sep 25, 2023 at 1:26 AM Andreas Kemnade wrote: > > > > Some boards fail in magnetometer probe if flag is not set. > > Which flag? Can you elaborate a bit more? > well see $subj. The level shifter flag. > Does it deserve the Fixes tag? > As there are only certain boards affected, they would also have to add the flag in dtb, I do not think it deservers a Fixes tag. Even in the board I have here, there are basically two mpu9150 connected per cable, only one of them needs the flag. > ... > > > unsigned int val; > > int ret; > > > + ret = regmap_update_bits(st->map, 0x1, 0x80, > > + st->level_shifter ? 0x80 : 0); > > This is a bit cryptic, what does 1 stand for? > Well, I do not find anything in https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9150-Register-Map.pdf I have just found a similar line in the ancient 3.0 vendor kernel. No symbolic names there. Regards, Andreas