From patchwork Mon Oct 24 11:30:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp419101wru; Mon, 24 Oct 2022 05:15:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dRaqdRxzj0ZGmNMivsgGpCVHDM8u8hfv3bjNACusK0alnOcvYfG0rcKptDmcW07KtYx2K X-Received: by 2002:a17:907:94cf:b0:78d:38cd:afcf with SMTP id dn15-20020a17090794cf00b0078d38cdafcfmr27837399ejc.229.1666613745614; Mon, 24 Oct 2022 05:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613745; cv=none; d=google.com; s=arc-20160816; b=E7iOZIusa3o8d69zBsimGBbASfh4sEzWRtixKdjyiPWkoizsmD64kunBvNdQ7VOYnU hclAGvCJM15LIoTUjHayDtI6O0kmC7BxBRS3/Hf3OGtQLAtm4BbjP1PuyvfeeQiiWtdT oAe1F1gl8/EsT1RQgJFgowfzQUFlzsrEQbvuSI3hP4BvZyOS43LUGApCEv9Iup1kNUnf BDpLCXY2PhmkSDEFWbRbLQVf76wjL22pdM6/wVQvWBofNR/Y/KoC4Z3ayBgTKJq4JBhU 6kM8366ddcSs1k9+pwWPoY2VDGNovngtJJFwBeqp1b4wXS+30eu24mRkJf68TLHU21HF xlKw== 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=R90gHmz3g/2IRozULoKabnAFONlDS+2xSgsYjoDPnkU=; b=Re1eyH3bgV9xKSoBgYynVQ6+fKqUHb5+OTwxcu6EtiUkuXDV97FGMepNVrRRVs+Gah T7IPlhcUk0LcQuRmUGuDKTclvsPDaUTWfIIXMAfFIw9tbON3J9wV3DbUQd2qa4dPObHK e3VgrzaT2572Gvu+/SG1Jtn3tPJCFs39S6uj3mn9lfpR17bHMWljM06QPHQ39T3W0gOa AA/tNKVIFPn88V7s29w8YiOK1Ab9H2e53f26bCp3d1sIWJt8EWWPRxSanWUKY7TamCel OzOE2u9TuW35u3ZUWl/1jB9YTw/3zARHqzVI3nzw8lv+vXXSEX3IMdrjKNFL3XcdJYuV cINw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m5sLMSZw; 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 nc23-20020a1709071c1700b00779f8e7ec5bsi28657904ejc.42.2022.10.24.05.15.21; Mon, 24 Oct 2022 05:15:45 -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=m5sLMSZw; 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 S232629AbiJXMGK (ORCPT + 99 others); Mon, 24 Oct 2022 08:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232673AbiJXMEC (ORCPT ); Mon, 24 Oct 2022 08:04:02 -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 2B30656B93; Mon, 24 Oct 2022 04:50:17 -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 5CD94612C3; Mon, 24 Oct 2022 11:50:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CA4BC43141; Mon, 24 Oct 2022 11:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612215; bh=oAZKZd2en7IVL08gIN/hLuFHSzYPctft03ltwnPQ5vI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m5sLMSZwHHDafSX66ete3cTwbYuL4Pb9YoCvhuy+YNLIhB9KE/ehCAkigPY8gsrj8 ZtEYHQ552V7nWHOe1s5VrhecnsZ/iYJZkRyTR4QmfYIvBJZsVvX5OiE8zD/4q0Ofb1 O+yG937pE0Nzy+oEXHRVyZBHIHfPqQ4LgNh1yQK4= 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.14 114/210] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Mon, 24 Oct 2022 13:30:31 +0200 Message-Id: <20221024113000.694338958@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@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?1747571174750310191?= X-GMAIL-MSGID: =?utf-8?q?1747571174750310191?= 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 34639ee2d2ce..e015b86be6b0 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -79,7 +79,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