Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 950032DE6F5 for ; Mon, 11 Aug 2025 21:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754947255; cv=none; b=QHnbTbGZE3aCrfLvLberzst1EujHltspGIFIsEFN/xHaNX8qer8kPPCnonmCpb1vPIeTeb+y1GFwhWpETgHupc0sgLFFQoeAPbBGkJMRcAhYdhPlPJfCK/Akf43e1+7vaII6wRhoUbQA/UiT2eSPWuzvBt8WJ5vtdKApFNam0vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754947255; c=relaxed/simple; bh=cfqDoAzab3n961gl8WpgvV7hI7vMYyFM37VMNyvVuAA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Z1NK/wDxOtfhcJabDWqSmwKulUnBLF91uH/BGnwMd+0TRIdBkPRv6IWgWSKw58RsMh5Lth2Q5FBrto1ve4fJRNYNRrqj8vwX7UYEoNgDpkO234YAzWR570zzXiOO2jBzvyA1YX9JRianIF5jpHmXuHnt5huD9lH8Op/NfdZhJ8o= 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=ESLVDkVp; arc=none smtp.client-ip=209.85.221.45 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="ESLVDkVp" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3b7961cf660so3872319f8f.1 for ; Mon, 11 Aug 2025 14:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1754947252; x=1755552052; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=a22h0n4F0ersJH5KHpU8SjX1DIiGxVRU1qnMUbwzwPY=; b=ESLVDkVp/EiC3woUeRifpYEPFEDDDTiozRvZbDRZmMJ3Cft/rVYYhPHim3yCq6YLnm SC2DCmrtHYuZ5Ep+EhqZ0wrPtvyEP1384VgvXpELrU9emuskjXaf+XsZq+FffeOoiKPo ArL1qVpZ24pa4gOpmN+0F0BYK4E/zu0HvtKod2JJAOAwQDuFYLQ4dRMUKhXn+dBmMwB3 5ZwntBSU98W3al9oqR+ehUl95SpGHYjPcL5vzXiRB7Ku72pS9XZFZXfNvDvgnlkEu8mR WPV7xymOSdyeKj3JywkKiKa0SUnBt5XUVFi8iKKBbMefGzdecnir/HTy5ukzSr0GLVg+ 7RCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754947252; x=1755552052; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a22h0n4F0ersJH5KHpU8SjX1DIiGxVRU1qnMUbwzwPY=; b=WUWa0B4kqQCHGqRQZzc6pd8Axhw/OvpGD/0ocaDiM5BUPtbowduW0oVQcZonMAzSbg ALzseVejrv2SsjD9UnaU9kfkvBuNQElZeXIP6rebiXP2b4x8Xa1tdX4EIV9d22Su02X7 dcwf2YuEs7I0/AC1v/xX4Hz2Qq3B3hVeQIh6VT+sg9btgdsnjZUyC+8zT4JXXtR1oYAm 5HIlIFQKLMsMp4KQWeAr/VtbiJVADbodpB1d/YrsELUWqoaIMHOMj+msXrr6E8vPf5nm f28UWLsTkPY272EsdGzoe099cuwX+Hav/8hBBUEsvEK4RlKHv0HTtYCC93BRJIv6cko5 DSSg== X-Forwarded-Encrypted: i=1; AJvYcCWFuQ8HwhiM2lzYGUltLcWyDS5p39n0k+qg/bMcZlEylAcFnxQzn9X0MFCR2ZBUSsWe4pTYJE+OKOOy@vger.kernel.org X-Gm-Message-State: AOJu0Yw2iK5YDpT2R8ktla6aBFC06JxQPxND9+PnHbQX+bg8S1fgCRRy BQHgCA+hkGOVKYwzYZ3J542mjsNr7IFCczDEzJeWzixwmp/V87KrIXl8Lweh0S7WPzs= X-Gm-Gg: ASbGncu7M91hu9bI06jnPVcv4kG6G3yqTw5VY1RApI6BeyOl74ZJsl29W8qpmAO4nPp f6pWn7XOtz6tCl/UnEY6d+TYqj13hndyKzIaaoDipT+Zu4Vx/0pKDbOPz2/RaLdmcilydEQylgX jGBfLvNvnKBgrf3nTMyMF86rt1sg5I7hI3Q0qyGNa/toK6XtvEJ3rLOgRJfHEagnrE9jLavHq0J nS+sKpUgziMH8QlJeSM3s+7iWvyzGtAB+cXRSG9YVboFSnpq20CNmjeYwSx4jNBAy1h5oJkmqMk LAFR4fFqB/OJIt0sA4KUFrGB6gEdx8N6x1ACCVi8xsmPVoLT9eoPH1MvXEyq4of37ZPAtisvc9m WrTSUDolQm9Ty/CMkhfqVkbyN+XAMECusFRuJ5dx4Y0nC2bO+8vx495NnIB3/lA== X-Google-Smtp-Source: AGHT+IFgvm4HXttFbfS6Io8u3RnoRmgzJRkHCgD+GWgq4k+QoqkEFTnni/7fyUNCj4FwnE1k5pCXmA== X-Received: by 2002:a5d:5848:0:b0:3a5:1c0d:85e8 with SMTP id ffacd0b85a97d-3b900b4de4amr12408716f8f.22.1754947251775; Mon, 11 Aug 2025 14:20:51 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-459ebede65asm220858905e9.8.2025.08.11.14.20.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Aug 2025 14:20:51 -0700 (PDT) Message-ID: Date: Mon, 11 Aug 2025 23:20:50 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/2] pwm: Add the S32G support in the Freescale FTM driver To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, Frank.Li@nxp.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ghennadi.Procopciuc@nxp.com, s32@nxp.com References: <20250810185221.2767567-1-daniel.lezcano@linaro.org> <20250810185221.2767567-3-daniel.lezcano@linaro.org> <47ed1b83-9ace-475b-8279-6c7f394c35f3@linaro.org> Content-Language: en-US From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/08/2025 23:11, Uwe Kleine-König wrote: > Hello Daniel, > > On Mon, Aug 11, 2025 at 11:44:32AM +0200, Daniel Lezcano wrote: >> On 11/08/2025 07:18, Uwe Kleine-König wrote: >>> All variants (up to now) have .has_fltctrl == .has_fltpol. Is there a >>> good reason that justifies two bools for the register description? >> >> Yeah, I agree it can be folded into a single has_flt_reg boolean. I can only >> guess that was done with the idea of sticking to the reference manual and >> perhaps having more variant to come with, eg., fltctrl=false and >> fltpol=true >> >> Do you want me to merge these boolean ? > > That's the obvious thing to do if you want the new variant supported :-) > > Unless you know that there is such a variant with .has_fltctrl != > .has_fltpol to appear soon, I prefer the simplified handling with only > one bool. > >>> Also I wonder about the fuss given that the two registers are not used >>> in the PWM driver. So this is only to prevent reading these registers >>> via regmap debug stuff? What happens if the memory locations are read >>> where the other implementations have these registers? >> >> The problem arises at resume time. >> >> /* restore all registers from cache */ >> clk_prepare(fpc->ipg_clk); >> regcache_cache_only(fpc->regmap, false); >> regcache_sync(fpc->regmap); >> >> Without skipping these registers, the kernel crashes on s32g2/3 > > That's a useful information for the commit log. Ok, thanks, I'll do the changes accordingly -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog