From patchwork Mon Oct 24 11:30:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp404928wru; Mon, 24 Oct 2022 04:56:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ZLywBDgstf9Mza9Yg1tO8oNCg3Mhkr+3TIEhsXZ08zd1rPixRUuc+3nlMHXeV3nGqOFar X-Received: by 2002:a17:902:cccc:b0:178:a9b3:43e6 with SMTP id z12-20020a170902cccc00b00178a9b343e6mr32553462ple.92.1666612562577; Mon, 24 Oct 2022 04:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612562; cv=none; d=google.com; s=arc-20160816; b=RjLps0E8Y93e32W6DI491TawprMhrgTaPI9LH9MJVrUJzQwENSyAm2KXjFE666nJXN HUkxH1digoNGJtZvOWg2C3rf5UZkFEkpZMoqlvRa4/M3TrhoBqV8JkG6cEO9s+KtrnDe aQMk71pMd10j+qoV7DsJF3ePvwKA5zFyvRrYpRncdGpUtNWvXVfBDSYA0eAVuRcSPVgP LbimuSbA/zbh+IZuy2MJvplQpgm87TEZxI/iRVQ0u9pXWmpOZRB15G44AbVSWE0Ua0BT AeGrrdi+oSJQWJuJV4DFRc4FQSEmYqw9/gn9XzocH3JQPMf8KXZ+I0Ke3DgKCK+4x8D9 AaCg== 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=aZG+dusXFdgNinPfqfIzoEhniNljuwwxJ8ogsUuYONE=; b=U/XmpIM8kYdms9glJPj8hxoxU3zeolegLDcabw1UP6McrBypFarDQx4ui3SUWO75U/ PSpkgue2170LmS6Hyk5e1w3QvJfTNvs5QJyyWIFDdNyTeE7lZgRa/Q27OuwdPqoJ7Wsj NE33zhRXSkPAyMBTzsZDUDdNuooGqGgjCcagdoEE6hcXyOBPbAiU83wDaviYirO6pvzB HuDLF/uQFEGMZBFCTH8ksNtHnGewS4NDgZ4b3P744EhRYs/tyKBlKEocyd/OWSb+dQp1 mk2vL7ZJl6OYYQo++ZWymKkPjgCExyGw3aFGrqvAEV1BP+Bqj6nbU8c9U7aW0aY1i7Ug k3hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=czF2w1nF; 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 l62-20020a639141000000b0045ff2a2f569si34623564pge.808.2022.10.24.04.55.50; Mon, 24 Oct 2022 04:56:02 -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=czF2w1nF; 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 S232142AbiJXLzg (ORCPT + 99 others); Mon, 24 Oct 2022 07:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbiJXLyO (ORCPT ); Mon, 24 Oct 2022 07:54:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442BF6337A; Mon, 24 Oct 2022 04:45:16 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8940561277; Mon, 24 Oct 2022 11:43:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97709C433D7; Mon, 24 Oct 2022 11:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611809; bh=c0s0ja+QDX4cRYUUkIw5w5hFFhP2+f+V3xC1yYuvbj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=czF2w1nFVCgy8oy+MGztHsyUddGSp/XOneU7AeZkqCBKqHNPCsGgbb1ASTF23koiO LD7XgUwRkoF5hF0iwM6oQgAARzYWknYonKIzKXlZL9MhSibh+1McKYjf6ckZY7BKcV 2pH5Tu42kPqI6XgsJt+oxgZlm0Cz6WYeG+RqNwFw= 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.9 089/159] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Mon, 24 Oct 2022 13:30:43 +0200 Message-Id: <20221024112952.664114106@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747569934537239585?= X-GMAIL-MSGID: =?utf-8?q?1747569934537239585?= 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 e10dca3ed74b..5a7f9120e13d 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -74,7 +74,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