Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6859273rwi; Mon, 24 Oct 2022 07:01:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GZs2YGUtTzpm1393ByaiH4GjiqmnAJoOHvOGaiLcB2ZLTydFKVDjnE+1xTwzWniZPkqDo X-Received: by 2002:a17:907:3e0f:b0:791:9529:3674 with SMTP id hp15-20020a1709073e0f00b0079195293674mr27639954ejc.503.1666620093828; Mon, 24 Oct 2022 07:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666620093; cv=none; d=google.com; s=arc-20160816; b=YxUGS923hNEF5DEmC27m3INP1EMBqfVjmdpRlwolhkJY81exLodwQtSGTT87RHnqos FBRqF0FXbbiNyixNyasnDGPei5z+VscUnbuaY7vYTD8KD0MyJ98TgRVCS5qitJiW3Hzh sx4kYddz3xpeGqAhxejBTF+Y9HFr9RrBDW353+X9Xe/1wi05z5WdokUVLT5uv9hFhxx1 qBZrh4mgac+YvDCQWljn5nPs0Qm+f+oXR+m+h9Ep0DNX5LKruP8Ms87QIl+9xbfk4Gc5 gwQSUbe27t5FzjZ+/N4wG4+Il01jGgSGIYi50NkMKnbSO88haTKmB2W+CE95CcsKbbBG XPEw== 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=u0ksgovez3O+Vf4NJJcvQq815CVTgJ/ZDIalVgy8cho=; b=fbIo3FfY9UxEsqrUzKvSLIY43JfwmtuRqr+1n6qgpeVRBMqICdcG+lnHu4v1X3TvN3 p1RKV+CeDi7IQ31+dkXouWoZlWW9ndBzS64aqPmoA2ZnwBhHbKeDwoq1lDPP4U5BRIrz Bj0QsQ5zgt1iZdYas5J8C/5VTi68NmvILggEdsAcKXfPtKSeXwalFZQ9FU65snGYgDhW PkUeELL8Uw8b1NNxcGm2jldahAGUYDzA9K3HmogTuABc2GDkaK63j3xyqTraJzbj36jH 6UPQSkabegWWKobEiM+HR0i6Ybb5KzIfcoWeoNi097MpNeAOF+E3ysOOAFDBkqDPAnwU FEyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="tCZqH/jb"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a056402348a00b0045901aa2468si32724430edc.333.2022.10.24.07.01.08; Mon, 24 Oct 2022 07:01:33 -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="tCZqH/jb"; 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 S234061AbiJXMdQ (ORCPT + 99 others); Mon, 24 Oct 2022 08:33:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234074AbiJXM3R (ORCPT ); Mon, 24 Oct 2022 08:29:17 -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 7E9E7165A4; Mon, 24 Oct 2022 05:03:13 -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 2BCAFB81211; Mon, 24 Oct 2022 12:00:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 817AFC4314C; Mon, 24 Oct 2022 12:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612827; bh=cX7muafZA+6IXcnJmeJJuaf5i1SDb/EPnsgDONjK2lI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tCZqH/jbW83hOoF+uBj5fCh/RjLd2N9/KAC8fEjA2D62Q5/3KP+ccGzIt7gq4bXY5 dgZFCvHFCUfLNXmjAsoYV9mtIbJWQEopDM8n86W0GIosMd2M7sP5jrXAubaIxfrB5k UznCfAmumCDM1SCVhT6Aj7qFfgxDdlYFefC+bz4o= 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 4.19 117/229] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Mon, 24 Oct 2022 13:30:36 +0200 Message-Id: <20221024113002.783265313@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 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 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 129c3adad4c0..141badb8707e 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -81,7 +81,7 @@ #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 -- 2.35.1