Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbdIRKGq (ORCPT ); Mon, 18 Sep 2017 06:06:46 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:5803 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369AbdIRKGn (ORCPT ); Mon, 18 Sep 2017 06:06:43 -0400 From: Fabrice Gasnier To: CC: , , , , , , , , , , Subject: [PATCH 0/3] iio: trigger: stm32-timers fixes Date: Mon, 18 Sep 2017 12:05:29 +0200 Message-ID: <1505729132-1369-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG8NODE3.st.com (10.75.127.24) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-18_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 609 Lines: 15 This fixes misc corner cases observed when using stm32-timers: - reload value is shadowed, after 1st write, or when doing successive configurations (using sampling_frequency, then counter) - clock needs to be enabled before using master->slave configuration Fabrice Gasnier (3): iio: trigger: stm32-timer: preset shouldn't be buffered iio: trigger: stm32-timer: fix a corner case to write preset iio: trigger: stm32-timer: enable clock when in master mode drivers/iio/trigger/stm32-timer-trigger.c | 64 ++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 19 deletions(-) -- 1.9.1