From patchwork Mon Oct 24 11:30:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9231 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp460896wru; Mon, 24 Oct 2022 06:42:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74Y71wzdaBo3C6Wea2IH92AbanM+a0esKdGWTBoh+CJTNMflFEI2OZr+qhT3Lsn4l7UAmI X-Received: by 2002:a05:6402:28b5:b0:461:c6e9:8cc with SMTP id eg53-20020a05640228b500b00461c6e908ccmr4812416edb.170.1666618961042; Mon, 24 Oct 2022 06:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618961; cv=none; d=google.com; s=arc-20160816; b=PrTN3iCsO00TgNE+ppSVaPuw1zLr+Os7XZ3RXV3cP62cuUkWXHbpPzB4J3opPdil1W OoNEjCeNMN2UJnzZ99gbR/O1+cCpD1HcWR+qC4HMf/uSnx6PL7HEXDOICBqqUxLsEnUP hWEvCX+35nYfvFonUk4KLbvubXcaFJnynEjowH9dYC3k/lkpPeF0RC7zM83GadrbThej HCe02bRz/Aim+gtwUIPKIjr4SetvUnGhRvmu8xxq8qkGX0GFgYzKtWI3t3THmPsspPJI U6u3EuSlFeJpf3Df+sQpL4zeRGYgBYalUmm0nwdjKhTMnGAqrduF3QK+Oc5HjkAFnBbU tZeA== 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=X4vZf5eBxHvGeOQvYtBn8OjrvER62UlOgOdNS+itMO0=; b=MpslffVb6OUCWLWA6xhHnR1erM5hH6LXqvhz57XNXVQgdJCqtaHG3el5EXpMgombis pU3uc+3Cpc8UKQTdX4ptbkBhoHWHdava+nmp5RRV1Fm6NO6ndnzy0otsLUeAu+jcHpwG UCCLbqXIc8lhL3g7HsVXoh6b1B1hSktTLRtCpJ0ENlfmAbM9XMOwAbilxZ8xUuu7G4bz yac1PrWkUfYr5Zj1ouk8Vxy5X9PXnbyhJWyS4csMUU6NRvoCrLkDKCeCHXT/T+J0SUxJ yjqVX9BInErvQSJCL8/WSvxy0UBftzwgc8wpCPgwHY3DktKnYZwIoiDttEiuoE+xHIId cY+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kdTKq6ma; 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 dp21-20020a170906c15500b0078df1c345dcsi34222474ejc.535.2022.10.24.06.42.09; Mon, 24 Oct 2022 06:42:41 -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=kdTKq6ma; 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 S233916AbiJXNhJ (ORCPT + 99 others); Mon, 24 Oct 2022 09:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233753AbiJXNbg (ORCPT ); Mon, 24 Oct 2022 09:31:36 -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 C02D014006; Mon, 24 Oct 2022 05:34:38 -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 4B172B8159F; Mon, 24 Oct 2022 12:09:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D061C433D7; Mon, 24 Oct 2022 12:09:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613393; bh=j7U+p6jbLuBWIM6XPMkClhUXNjuV4Gfk8DCzNUWWSHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kdTKq6mazV8n0femrqSa6hqSe9FQbgJbpDMr8ueVjtmRIJv2fSkahKa4lDTZoeCak o9eqo9a9H3HNy2xm+ZQHPS2gjGjOoJ1tx+VC58X2nOihn8b9UP5g9oFYVpZvAiYlLA YoxVBXLEExOjonQEgsSFcC+yn95kN13kfRnw8xDI= 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.4 118/255] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Mon, 24 Oct 2022 13:30:28 +0200 Message-Id: <20221024113006.446760310@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@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?1747576643633966996?= X-GMAIL-MSGID: =?utf-8?q?1747576643633966996?= 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 8854da453669..090cc1e8b4ea 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -73,7 +73,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