Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp807992ybc; Sat, 23 Nov 2019 08:47:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyi339gNzuCoTS2CNRw1a6iY544fVD0WOuFGWM+c7UNfL/N5L/7tMQed0PQX0X8Ajryjyvu X-Received: by 2002:a17:906:1983:: with SMTP id g3mr28079363ejd.84.1574527635118; Sat, 23 Nov 2019 08:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574527635; cv=none; d=google.com; s=arc-20160816; b=GH3UtFBAJD8M5uyWuzKPKvPdJMVkVtAha+BiTZrfrb97Z8P4i8oVLmLqgkknmZsQYe N6rjPOkGFeKRdOmBzz7VdpzrmXmeFQ1ii30KtxLfQxoX/GmVLVgM294Arc/cuRRSvbRP N+d7UQpPKMg0QfI7Cf/3rt4KZRSNMB4aum+4x1PEr0TNcrF+3PO7MS1Gfw+y3QI/YE+y yDQC6bcF25DuR5zjCFkfvOCr4SYJynasRemFr//yYryFCUP9emNxZ9NRkdGjzL5nay1E VkWqrzyMqhikZJDNlmLR0MTDaWUZckRJI3VPll0NR6oB6kJgNnMhMDpodnvsvbpryrhZ Odyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=k7OGvuXPG9H7P0qHGs0ZK2gx840oS3XO/EufNHlmos4=; b=iVQfb36+5YQ+pwCbUCKUCv9hULIiGnjwJ+U2MNL27Hey7CYq//yCyXEQgmxabUgcsL gRQHJ/5eh3pHaLSgoqcfFCw6GHKwpmG3KBckmCA+HWu5zHXVsh/ysK1iInaIK/bQJlOP NwmIN8vrRn1YuxuWVrEZJtk/YQcGaj47Iakr2fgkHIXbXPZ+0Uw1y5i8V8NTph2fZ31R zlVAlyolfoa5Td1/ZLDn4ROCkBz/GpSOh/FKaGEzGZCxKJ9BsrWKS6ErJ2hQsC1KFAMX 1nQ10W1cW394Gp7DeyXvTvyvMKPqv3vQlki7zHU7iO8v2u/J5n8FukCF5vziZZj0uNgs Gnzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Nk/sJIrT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f36si1130522ede.159.2019.11.23.08.46.50; Sat, 23 Nov 2019 08:47:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Nk/sJIrT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbfKWQnh (ORCPT + 99 others); Sat, 23 Nov 2019 11:43:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:54912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbfKWQnh (ORCPT ); Sat, 23 Nov 2019 11:43:37 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AADCC2070E; Sat, 23 Nov 2019 16:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574527416; bh=NYF7myKhi5RYq2ICOWgPxRYnz2JyYw4d7NLCuexs998=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Nk/sJIrTSqES6rCOA8bglankx0REQQdcXsEMCLyYqPnw4Hjru0nxhRm4SgI96tbxJ 4Wo63N+9hQULsupg1AmR1hIhtfG66+RoPnkRYAyqaLYZx7hiscYe35iGW5PENVQ/YT OOuEY95+uYU0uvtX9WeVRI0j3amoh2qRGZI+ZDW8= Date: Sat, 23 Nov 2019 16:43:30 +0000 From: Jonathan Cameron To: Fabrice Gasnier Cc: , , , , , , , , , Subject: Re: [PATCH] iio: trigger: stm32-timer: remove unnecessary update event Message-ID: <20191123164330.04785b93@archlinux> In-Reply-To: <1574334317-30014-1-git-send-email-fabrice.gasnier@st.com> References: <1574334317-30014-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Nov 2019 12:05:17 +0100 Fabrice Gasnier wrote: > There is no need to explicitly generate update event to update > timer master mode. > > Signed-off-by: Fabrice Gasnier Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it Thanks, Jonathan > --- > drivers/iio/trigger/stm32-timer-trigger.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/iio/trigger/stm32-timer-trigger.c b/drivers/iio/trigger/stm32-timer-trigger.c > index a5dfe65..2e0d32a 100644 > --- a/drivers/iio/trigger/stm32-timer-trigger.c > +++ b/drivers/iio/trigger/stm32-timer-trigger.c > @@ -297,9 +297,6 @@ static ssize_t stm32_tt_store_master_mode(struct device *dev, > strlen(master_mode_table[i]))) { > regmap_update_bits(priv->regmap, TIM_CR2, mask, > i << shift); > - /* Make sure that registers are updated */ > - regmap_update_bits(priv->regmap, TIM_EGR, > - TIM_EGR_UG, TIM_EGR_UG); > return len; > } > }