From patchwork Sat Oct 22 07:24:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7457 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1098733wrr; Sat, 22 Oct 2022 01:11:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6exb9UBNStyFp5ngXvdQ0Q7S3Ca6KtFiVpvzk/mZvNF5sFBpw49w19yryGffTuAa532rYY X-Received: by 2002:a17:90b:2243:b0:20b:42a:4c0d with SMTP id hk3-20020a17090b224300b0020b042a4c0dmr60461828pjb.123.1666426296337; Sat, 22 Oct 2022 01:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426296; cv=none; d=google.com; s=arc-20160816; b=nr5RN6dx35v2qsFDv2CxHUO+VqHK3Y9RrszX0fZzU3v8vtxGt7N7wXg/PgdEG8Lror wAlA4Ptxyasw9Dmz8FYXT0UGjOqeBPjQHMtt5P/3xPKvzBIk0uXgnCRn8SIc1mHQ2XyE k01O0x7R9QqYqvMDffnNJbgLbGVQkZqmRiU1WnQ6F12tlFsbas/csjMorfdfA5uG1g22 AdoxTn8765vSF23D6x8h2vjbJ9C/yGpJ4LYOLp6OOzBdR1IolX9BkxpT1GKiJ+crLtzk S2MTi8V6Fg7P5Bo8wdxj3jbz1+DHG1f7yObMHfTTsms6WT45vxhGfaBoNW4ug938goYS yrGQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yiHyHxaXRiamXsW2lLwtKJDwqpHIv92lN+SEkjIUik0=; b=WiQzpCkkLR1sO/6HnAXIhBIm5QqxEn70xTG8i/UJZD/wACBFfd+oUxjngn6u4xYeyF 56n/wm67YFPf1qjBCki3Hd/nmA0ZzSKhljx3zIgtgiAbsILbUfDA31rZMtXHul+9u3F6 OSLxjRqHDJVao4eU0vYrx8USP8Yc4s4be+uydoOPLE1eg/3S3i2RWtUvGFg1r7/lY+Y5 pvbTVD+f2CYwxhyb7VbS0MVJ35Z/OXHSn3XrPDOvfjGDZAF/uPH6RGMdvycPQa/6wM+8 /dqCTVcvt6hUY0quJVfb6aVnY9nyrTcJpMpdbDaKzBtD71+3Rl+CUJLrcskkcunjkWd4 jWEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mGsg0Uk6; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a63c045000000b0043af57e5d16si25413857pgi.724.2022.10.22.01.11.23; Sat, 22 Oct 2022 01:11:36 -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=@linuxfoundation.org header.s=korg header.b=mGsg0Uk6; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233118AbiJVIKo (ORCPT + 99 others); Sat, 22 Oct 2022 04:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232747AbiJVIGS (ORCPT ); Sat, 22 Oct 2022 04:06:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 947D82D654C; Sat, 22 Oct 2022 00:53:07 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1A4D0B82E2D; Sat, 22 Oct 2022 07:50:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DF8DC433D6; Sat, 22 Oct 2022 07:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425042; bh=yZP95DtfbEuB45jO+/d/Bt3Iwte+iLoWTwCTK7jL7/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mGsg0Uk6aHIqx9NoUoXb+lZU+keoZYoXsUAdzdAHZYZZKDKklI8bWPLLANBkOCsQF HCOBSMHuCIB/ajU8gOMbZDYcDYU1GdpOFhC63QlNR/J3o75+aDO+LcHbp/Be0RLiCY 5jVkWJ7B/3JLbN+h7B8HtHDe5YGIsDQBxm4STwXU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.19 371/717] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Sat, 22 Oct 2022 09:24:10 +0200 Message-Id: <20221022072513.127559109@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747374620450795909?= X-GMAIL-MSGID: =?utf-8?q?1747374620450795909?= From: Claudiu Beznea [ Upstream commit bb73d5d9164c57c4bb916739a98e5cd8e0a5ed8c ] All ADC HW versions handled by this driver (SAMA5D2, SAM9X60, SAMA7G5) have MR.TRACKTIM on 4 bits. Fix AT91_SAMA5D2_MR_TRACKTIM_MAX to reflect this. Fixes: 27e177190891 ("iio:adc:at91_adc8xx: introduce new atmel adc driver") Signed-off-by: Claudiu Beznea Link: https://lore.kernel.org/r/20220803102855.2191070-2-claudiu.beznea@microchip.com Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- drivers/iio/adc/at91-sama5d2_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c index b764823ce57e..32b6f157b803 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -77,7 +77,7 @@ struct at91_adc_reg_layout { #define AT91_SAMA5D2_MR_ANACH BIT(23) /* Tracking Time */ #define AT91_SAMA5D2_MR_TRACKTIM(v) ((v) << 24) -#define AT91_SAMA5D2_MR_TRACKTIM_MAX 0xff +#define AT91_SAMA5D2_MR_TRACKTIM_MAX 0xf /* Transfer Time */ #define AT91_SAMA5D2_MR_TRANSFER(v) ((v) << 28) #define AT91_SAMA5D2_MR_TRANSFER_MAX 0x3