From patchwork Wed Oct 19 08:29:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp214370wrs; Wed, 19 Oct 2022 02:12:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7q3K54oQb0uob3ero2kwQyGRLCmiR9AHYVkVGW3yuL9b4wDttqh5OhKwRt/zwTpwLpHWvd X-Received: by 2002:a17:906:a4a:b0:782:686d:a1b6 with SMTP id x10-20020a1709060a4a00b00782686da1b6mr5789565ejf.232.1666170757037; Wed, 19 Oct 2022 02:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170757; cv=none; d=google.com; s=arc-20160816; b=S4PsT+caEwIhivuEdjlvKyZf2C/UKMNlqCW0KD8uAoaeoRuRadrouRaxSKwtGIqv1C YPwwoWQfNxS9v+tN1xVigOGtpQI0bS39WNiY5tZukgnqjYhJh3FmpR+EDhc026LJSUeW v98D5KzA4kO5/5qvpCEopSa7H+H3JhbAclED/Tesbs59hha8j1pzKAa7UBkDVdMqkIHO /FH5eFqlaNzGSAQbw0OFuYrVO23Egi5jP7/TiZJHlvN10bUt0HriN6moTvo9hemp2sss QHxPuGW6Jqa6ap3/oEsPVFNbxjUKbf5vADAUPOZY3VEmVf40CEXqci/HnJxUeA2J+Wlg Ip1A== 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=JJZrkz89+qo7+c8sLxkDzb+cl2r46kvB7ioa0ELUSeg=; b=tsjnyz/EdkJ3rjr559d5CZTBmQph+0YLRlQOeOyI+G75aEVpzxBd/2loQWahyeqCwk vC7Cne3Y/gN9e+mI0JmQVgXMOC9r3aBT0YBNOIY7b3SI+8JB7chmfhOaJGhpiwP/2CA7 0BHskf2/pYsqhv17Hbzk9Z/WdA2jqkqlaiBO2Qle0SUAfYNbTMI/HMVZSCuqmdmLs2F0 VTIXAYirJV7lpxLYQM9ky09vyWQrYhc/1of4dov8zSejuY207OzgQsJKOCWyr/GlhkXC mv1t4q1xhOLbTowiDcj1jY3CodAHwytDp2VragSr+kICdfr3zvlT8PBVfwG6nrHDVPUt m2qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BZ+vBfLS; 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 dm10-20020a170907948a00b0078de8d119d8si1172530ejc.853.2022.10.19.02.12.12; Wed, 19 Oct 2022 02:12:37 -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=BZ+vBfLS; 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 S232284AbiJSJKf (ORCPT + 99 others); Wed, 19 Oct 2022 05:10:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbiJSJHQ (ORCPT ); Wed, 19 Oct 2022 05:07:16 -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 2965D3B9A7; Wed, 19 Oct 2022 01:59:53 -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 357EF6185F; Wed, 19 Oct 2022 08:58:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41F49C433D6; Wed, 19 Oct 2022 08:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169914; bh=3ajESlv4+6Ko2mnHLGQYwrzZxL4zpE5YzF667e3vUp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BZ+vBfLSKF+ZLS5nuFKZ/GZId0sNkDmRO0o7h0DXN7xuzl99PuisqsPGTtpkLbSMV Sb3XCSlwnLc11TSxqoFIoNwh4sbx37GnKZGrUr3z4ItaSvvU+AqUBbkCEhEVmWwNYw t+g1GXE5WInKmHdbLgMKo9fSJcIh0HsMs02/SsSc= 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 6.0 457/862] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Wed, 19 Oct 2022 10:29:04 +0200 Message-Id: <20221019083310.175512156@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747106667580063637?= X-GMAIL-MSGID: =?utf-8?q?1747106667580063637?= 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 279430c1d88c..ac9ef89fba17 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