From patchwork Mon Oct 24 11:30:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10048 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp622804wru; Mon, 24 Oct 2022 12:46:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+24PWOjnunzrLv1Qd8EicDMujfNLat6kvm+FFzIVI/xuz6tB3wk1ZsoiK05Qau1BPDU7F X-Received: by 2002:a17:906:8457:b0:78d:98e9:ad59 with SMTP id e23-20020a170906845700b0078d98e9ad59mr30448573ejy.29.1666640797994; Mon, 24 Oct 2022 12:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666640797; cv=none; d=google.com; s=arc-20160816; b=FXfHwMKyEfQuAgOHecjTYUryF4BBTkXTWlQm1FU+jOnh9gGXKfqpVKte1aEwSy5bCd U5dUlRnmwrqBQvEbm1iVrfBFbjBTv8HXHIil7Ssh9EF5cG42qMoN+HtjxnyogBir8cf4 SAiupIgz2m/bShWwzBZSHvzFyn5PyDTg4+l34zE0LwMpTQfhbOyizdDriwUujEjhuQcg CHnihKDRHoVoDOtdnB1tQuZRn8vkgbLB3+rw820s/FKUo3of62pFib4aJSkCt+g3tN9S UqF9DOID8ePy0coQmvNf9o3ZhPcuXtur1S+oPXKEt3RXFz5VVyoohgROqf4u0YOPwgrn IEOg== 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=HePdZ8VVuDK+d9sVyfPeCMDWSY/3QUAsWqbZI20MGfA=; b=KWVR+QAzBfO5DRa5I57yZsRWfQOOHjq+DNMN/j8+hmKzP6yPGtt04abxCMIoOnPuPL eE6RqctV8NFkHluQ1wNn2gn/PGIlozUTZbiNxY4fCtks4HlcB3mqF2+nbIzjC+yzMdFl gEnpYSwpHte1alR1R+8N3tBWR8xOF9NmHLmpT+Lu0TG/98W5dgi2l6cROG8ejQZ9vJic ZFtsxrQCVW3bKXAw5Uo83G5NMEfSBM3Ck+W0D95xidTH9sS7LDK/1kwSJlw9HvISVELH BXmtP8yI4EP73u596TydcAvCiGbvwEXhugw6gtOoFoxb9UZrk8VyG1zKa/xl4D6W6yxw tLKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LfgVGCPW; 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 h17-20020a05640250d100b0045cd10a4c20si750360edb.321.2022.10.24.12.46.05; Mon, 24 Oct 2022 12:46: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=LfgVGCPW; 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 S233381AbiJXTn6 (ORCPT + 99 others); Mon, 24 Oct 2022 15:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbiJXTmD (ORCPT ); Mon, 24 Oct 2022 15:42:03 -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 2B3E5D8EDD; Mon, 24 Oct 2022 11:11:51 -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 01B92B819C5; Mon, 24 Oct 2022 12:45:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E4E1C433C1; Mon, 24 Oct 2022 12:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666615549; bh=jFKUwm3wPVOrzpbdi5yFPtnYdm5jAhl4rpLSmNKYDA8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LfgVGCPW1ikTXIF2fdTAmxrL5Oadd+u4S7Rc7ltcVPg+C9jZZmrvX/qBjaXi7HLwJ Txoc4U7AC9hYEIKiNltldDAyWFdDEhldkurD8xv2cE4zJbMrO5Yg9eCfvg6o/PwEVZ zthUXAEY+Unbni+Ta/hZWci93d65ulZzNVXzjzkQ= 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.15 264/530] iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX Date: Mon, 24 Oct 2022 13:30:08 +0200 Message-Id: <20221024113057.003170864@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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?1747599541159747135?= X-GMAIL-MSGID: =?utf-8?q?1747599541159747135?= 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 c4de706012e5..92e2e7420aa9 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