From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87A00223DC3 for ; Wed, 7 May 2025 07:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746604532; cv=none; b=d3q+fEcLx3Ka6RzxmMzNPM0jRCUw97U1ssnJ5zYrhStFEmwLKh5PckCQtbJXwKwt4/B0HWGCmyBTgl0jYGW7HQesxPZcVsThgICnKXpmX0vGKe9vLTe7nVpsJXf+19FMPvKveb6IMUFHChLVwQM9/6PqnpgKWjhXlhlSyv8ND0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746604532; c=relaxed/simple; bh=q6pNPs0UuN6WlRKaJkUjx2xsLLW66yNqWqj7oq0oEBw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pj3/80HkA5FuAws3RlZgxYK8Zj6qnMZJwE9lbUs2zPD/fuV47V0b0FxYbehtGvvNWdYHr9VbGYh9WqI6bQnKURc4SIq8A81qdJ4PPE/sDaCBBQSd4oSVLLOWgNLK6/Zb3xKGF+JfXpGoYQoADBHEEOAxeCGKKpsqMpNuTRdquGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XAsyMpah; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XAsyMpah" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-39141ffa9fcso7047373f8f.0 for ; Wed, 07 May 2025 00:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746604528; x=1747209328; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=TBL3qIVf81e3PhkRqu3EdoePuATSbIziAx1f5bGu5+Q=; b=XAsyMpahI3Avjef5C/FsbxPfog4HQ/ERRThKWUgHnt+W2OYpbx//L5RhqESqyNdKz3 aXG4Kt4Q+V0jPt9ILrMCvlBvkHgjwP4/hB229sSGatcJIZOsijzxZMtjRArqpHzab8ZA 4A7j0Z9X/KBfvkmhRta1gzno5aymrIZzrSGuavC4288sBQMV+YaPxaWIkL395XGtjyAL gDPA+IydTOp9MlXzngQHRu0AtRf3sLA8pn0CUwoxKPZqBhANsSjFlTUYgY8Y11ZFACFD ZsYZ2M0jFNdHM5slxcWOHS2cOh55iLuT9cjvVA4sXa3NkMSrjKPTcAZkPx9v2VyS2aD/ caPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746604528; x=1747209328; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TBL3qIVf81e3PhkRqu3EdoePuATSbIziAx1f5bGu5+Q=; b=SsHbqUT3aFSKxwUGCaHf+ajp7mzBrr2E8QCDgg0uuaxAoHuahWcmB20nGQPiRacAMM iMXA5IBLmZ/agkju9j3+w3jUFbihMuXhfQTsL1EXaG85K6MSFsKVeDTkcbXu/P/w3Roj d+oMYaFzH4KCMYowjBRFCEygNnsE8QoMXUktQCpVRsrwznmJDb7e6i5gfyIjXa5/pnNc X6loHuQRkRRfAzmdbI7ujZpFAHjUSr7DoPMLgzGjOBvQbRDeTmx972ZFhmVzgpPjDTqi 3repIrgsIYxB/YzKgFYEtePeC/TC57aZ/Yf8BiTmJrL2UoN/BMeCw7DxAAPUJ7R+HhsZ +V0w== X-Forwarded-Encrypted: i=1; AJvYcCUwYLEV8Jak6fxkfqJ/fiy2gYVy+jqTHAes/AUiRMoDgjALF+jMqrEM2zm8wC0e7kxXNHT/+1+lZo0=@vger.kernel.org X-Gm-Message-State: AOJu0YxSf13zVWQeqBYYxmzamkJgfK2A2n0nGUVnWwrZyWUqZRc6R/9M zQG6LQqorYrqufDjLR+uZScxkbQYncE+R0iBHEdL9piaQjzC8CmiVHp3OokNcAE= X-Gm-Gg: ASbGncvgy3m9OFAuKHXuLAAnyc+fkswwxJaz7kgZ51Zix0fBIV8LQ7cpMmU/mVGu7RE 5SRvDhNTF+w6uE5xPLNwR+IOmqeYUAdmjavOsnATyWY041FxxCJYaILSmK9dAYL80VelN1cqqYU oESaQrT97S/BZ3xg7IGc4ev7urRF0iS1vGwTz/7G8LNbWtooPtCBK2Cl3AnulbWU5eOZRA8Esdv Ep5qrRdomgisnEHuvYjgL0BkrrqnrqA63r108CglKYiSy2fvHKQZG3IhITAbhfSLnDctwkvIuKg f9jY8qD26lQtTL3FpRss2Dlzyr74cBvYEx5Zy2YWlWaGhkv9+MUAfWqGWNjnZc48yCA+tBPU7fE hQhI= X-Google-Smtp-Source: AGHT+IHSub+w3i180SBYtmH4xnfpAxz/7R8NINsxJdekQwKRKRmtdqdbqRAvzeMDt6WyEG1Omh+Khw== X-Received: by 2002:a5d:47c7:0:b0:3a0:a3f3:5034 with SMTP id ffacd0b85a97d-3a0b49d26bemr2060932f8f.34.1746604527781; Wed, 07 May 2025 00:55:27 -0700 (PDT) Received: from mai.linaro.org (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a0ad54f105sm4491875f8f.85.2025.05.07.00.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 00:55:27 -0700 (PDT) Date: Wed, 7 May 2025 09:55:25 +0200 From: Daniel Lezcano To: Fabrice Gasnier Cc: lee@kernel.org, alexandre.torgue@foss.st.com, tglx@linutronix.de, ukleinek@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jic23@kernel.org, robh@kernel.org, catalin.marinas@arm.com, will@kernel.org, devicetree@vger.kernel.org, wbg@kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pwm@vger.kernel.org, olivier.moysan@foss.st.com Subject: Re: [PATCH v6 3/7] clocksource: stm32-lptimer: add support for stm32mp25 Message-ID: References: <20250429125133.1574167-1-fabrice.gasnier@foss.st.com> <20250429125133.1574167-4-fabrice.gasnier@foss.st.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250429125133.1574167-4-fabrice.gasnier@foss.st.com> On Tue, Apr 29, 2025 at 02:51:29PM +0200, Fabrice Gasnier wrote: > On stm32mp25, DIER (former IER) must only be modified when the lptimer > is enabled. On earlier SoCs, it must be only be modified when it is > disabled. There's also a new DIEROK flag, to ensure register access > has completed. > Add a new "set_evt" routine to be used on stm32mp25, called depending > on the version register, read by the MFD core (LPTIM_VERR). > > Signed-off-by: Patrick Delaunay > Signed-off-by: Fabrice Gasnier > --- > Changes in V6: > - Fixed warning reported by kernel test robot in > https://lore.kernel.org/oe-kbuild-all/202504261456.aCATBoYN-lkp@intel.com/ > use FIELD_GET() macro > Changes in V5: > - Added a delay after timer enable, it needs two clock cycles. > Changes in V4: > - Daniel suggests to encapsulate IER write into a separate function > that manages the enabling/disabling of the LP timer. In addition, > DIEROK and ARROK flags checks have been added. So adopt a new routine > to set the event into ARR register and enable the interrupt. > Changes in V2: > - rely on fallback compatible as no specific .data is associated to the > driver. Use version data from MFD core. > - Added interrupt enable register access update in (missed in V1) > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog