Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp475737lqb; Fri, 24 May 2024 04:32:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaKmcdaU80TFYWm92x2dk7oCKNGtq3hetyr4dsw75c8UQkfUH9pWs1rmO3IZho7QJ2M6VEs6fLYTON9DUS7RtW9HQ3nGAKO9apQTJmIg== X-Google-Smtp-Source: AGHT+IFMpwiq8e2sacHyrVdmTtCYvC1Glo6zBdHcPTWDTbLGDPVRyLwRGhZtUwf4a2XEnkahmd+m X-Received: by 2002:a05:6122:202a:b0:4df:1d07:5ffa with SMTP id 71dfb90a1353d-4e4f0228038mr2173406e0c.3.1716550370031; Fri, 24 May 2024 04:32:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716550370; cv=pass; d=google.com; s=arc-20160816; b=Rmzep6A1Jbwe42FP5x3E62BycoajwbCXec3zhUkYmBBH0CvgsXzx5DRUXoraipChiw ugPpHdZSpziZWiNBbRgEgUZp+Q7GG5qH7WdljOdCmtgeUR4hMa2Vv4wYkzhAfrAn8/hc StscaTCEYTbscOl6sphTD9qQccnhOSUvvAAVkC8OCMB7H1MyvjSWUxIim+1WZBIgKv41 Pf7P+tHDqSZfExQnk3kB4ikPwb6ETk3hNIS8osmC2WupIwrW51XbgonGnOwYH6QSRwP+ 3ZER4nnz87gYopdR+uxgb+UuJKq3CrGIAjiveQC46o8Fw4ljQd3tg5tiiyGvqqnECxT5 IkWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=+FdDMqfYCOb2sKqwmEoU3h3Dyjm499FpbBKjwJhpYlE=; fh=Rb2c3zhQTLp7ThORU02lRUsmA7xU4FlkBbnQrs64e4o=; b=CsRRyUiZdiLfak8HBlTcwQPiDASreQZiHmwUwdN+5DDuQsERVg8oolAq+hTIriVRY4 pyoNx5nMWI9/BhTSZhcwjFJNkVUKBN9P17s94DguRq3yBpWZu+HlBhLRU4w1Jykko5+b HDPKXuL9osTltxxJ4saVV0TJ3YQ1JJd/OVaUBnIutJMQLACW1HZhZ7VQAUpDcPTPwAJL devdGOo27q6YyZye7MgQYNAbb8lddY8PZ4YSUf7in59DZkwxaFUB/gAoPnpLhikKBA5c XUigt2l7VVyfFJxvoCviYjcQINll33XD/84ttVZ0I+ej2JedAqlkJVR/2gwTUyu6ve9h otUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U9uHcxGt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 71dfb90a1353d-4e4f07457d8si117859e0c.76.2024.05.24.04.32.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 04:32:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U9uHcxGt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A9ABF1C20EFB for ; Fri, 24 May 2024 11:32:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED36C86253; Fri, 24 May 2024 11:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U9uHcxGt" Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 C5B6A9475; Fri, 24 May 2024 11:32:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716550363; cv=none; b=A7uN/5NUoyXhV7XG9wsHfryr07En0WZwxLMcjpsk+5vZHJ8vTprAXCgv+5d1FF2xbIpUXyiGjXl05TKFEk7gV4tggS+WCdua3kl8pJsW/cWyFpKwpM3rNYdVx1j7/95YufI7A2r/YmOGZVcTFj+ZM8d2cA5oMJDqQwAM+x8bW5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716550363; c=relaxed/simple; bh=+FdDMqfYCOb2sKqwmEoU3h3Dyjm499FpbBKjwJhpYlE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Sm3RC6c8ex6sye1oJQ3mR0DB68Hpmyc2xlDO40rroiTFvc/vVlj2dxjl/95GaN+4TYLd650g9ZCw1IsssEtgBpBa4qwVwtWrME6F/1AoZ3opcGAswHNVzE6W3jRDpoJ2ZtFbFt7pIxjkZ7TNou9PTPLx1ndemKrUO/6ODu9hq58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=U9uHcxGt; arc=none smtp.client-ip=209.85.219.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-df4d7e3dc94so3691419276.1; Fri, 24 May 2024 04:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716550361; x=1717155161; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+FdDMqfYCOb2sKqwmEoU3h3Dyjm499FpbBKjwJhpYlE=; b=U9uHcxGtMgfyGEdsMk9bVoAXftS6K4fgRv0otMMVRQY6OQ7GmmvSBePryykgJLoeTV QG1Sch4kWHLEOs8XtEfH50DUotQ5PqNyeA2XsiuoDcwsun0bxT5TDOaAd8zpVxpsPfA1 9vNcygkGgFc9f0eiEWyIUmA8s/sNy0N5YRVDMhoPbqyim8Z63ezt4/9/gR6+1xRthkp4 5UpCyhZtNbuW/F+/SJ3d5rhEIke4HSuQSgHHzOvBk6n9OTjkhJh0K3NeD+ciCHPMLrot +YFCB4x2AZmEERtyOBYWNuZCna7f0Vgbc9oI3DWh7ctmRygsxmPDHUXKgRgL3jUyYqtE oFLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716550361; x=1717155161; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+FdDMqfYCOb2sKqwmEoU3h3Dyjm499FpbBKjwJhpYlE=; b=FLpaxYGF1ejVCREJbaywtpgHtDPmt0OAlKNet5d1Fhvy0JcGeQ3hNQX6Wc5yUiMTxx wnHxXgLNInMHNN6DbAWnCX+CsDQ3HoQtIG/IVLkrv2PeAvTexXc3BJBr29+Knt9I2QHo E5FRTa1p5gb53ecVuE86zfJQ0uFGYjo0ShuXZ2AFsVajNzjfAI76DuilFct9sSHsBoN3 6n4Qtf6wpZQD0qRa/li5XLDt0J3KQ4UcwHXWF7h8K188XkRJGWRVRHNP+pCncFYjsJ0q nrHvN117gha92Nu66C02eDFQ8POVgUxq5kdVGn0mHrFRCFKT5PL840OLAvN+C78OIMEM 1ofQ== X-Forwarded-Encrypted: i=1; AJvYcCUroWUuJQfpom0lgL7dPnxTIH5pfmPKngMOdyfisq6Sl+h2gu7Fr5TVG6U+xcb+pFjZYKO9TWmz9hahyUMI4tx1s4Wt0t6eALUJ099hoZTfBHdZ0KX0/fmathT2Iz4qI0LkKaPfqeevZ7eQoh7WMhDwtgXSyUAIbqS1GY7RP+mo0Rhntw== X-Gm-Message-State: AOJu0Yxxo2MlfQO4MGSU/QK+PVaSI+vrxtQz+n41R5F/uHbtHI4aSLlr W7Ui1/DD5dbJWtmyl5+pGPj6a+JNKUjT1MBea1OVccHm1U+NXyX6g5UHsdH4WCmpp/Gsm+j9q0/ 9b0shDM93NDOFAdiIe559IMLlFllQrGdmbm3j7Q== X-Received: by 2002:a25:824d:0:b0:de5:5255:ceb5 with SMTP id 3f1490d57ef6-df77218a263mr1853899276.3.1716550360799; Fri, 24 May 2024 04:32:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?44GN44GP44Gh44KD44KT44GV44KT?= Date: Fri, 24 May 2024 20:32:29 +0900 Message-ID: Subject: Re: [PATCH v9 0/3] Add support for Allwinner PWM on D1/T113s/R329 SoCs To: John Watts Cc: privatesub2@gmail.com, aou@eecs.berkeley.edu, bigunclemax@gmail.com, conor+dt@kernel.org, devicetree@vger.kernel.org, fusibrandon13@gmail.com, jernej.skrabec@gmail.com, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev, mkl@pengutronix.de, p.zabel@pengutronix.de, palmer@dabbelt.com, paul.walmsley@sifive.com, robh@kernel.org, samuel@sholland.org, ukleinek@kernel.org, wens@csie.org Content-Type: text/plain; charset="UTF-8" Hi John, > Does Linux guarantee a flicker-free experience with setting up PWM > channels, or that it doesn't affect other channels? > How do other drivers handle this situation? I've noticed that drivers/pwm/pwm-fsl-ftm.c and drivers/pwm/pwm-microchip-core.c use a similar approach for shared resources between PWM channels. They simply fail if the settings are not applicable to the hardware, much like this driver does. However, I have yet to find a driver that aggressively changes another channel that is already running. Maybe you're right; Linux might not guarantee anything about this. I think all we can do is deliver the best experience to users within such limitations. Best regards, kikuchan.