Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp6295493lki; Thu, 4 Mar 2021 09:27:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLleOR5SynGIDAscgfrahb2euWtnXPbEVRFi9xrqQrqz7/4VHqxGZz59iehUxX9OvdJiVd X-Received: by 2002:a17:906:3e92:: with SMTP id a18mr5247573ejj.95.1614878874371; Thu, 04 Mar 2021 09:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614878874; cv=none; d=google.com; s=arc-20160816; b=VrsqmVsTS9tDpwuW/IK20HsYYs0ACMIEt0hHbgw/iV+HBWw1dT4EaBCDi/SQnu0010 40ZKPAhvzu4XuAc9N1AMkjbsmmu/uRobQbHxwhck4o5teg1HQ61lLtV9iFpBlxbUD3oe DLgnc//KSVpklKqKFURCBJn1py/QL6Zd9t9EtgrZnnxMv8Oz53TKDmbLpIlQpMQLU2cU MU5Q/BiKl0mujjJvl9tusjEgX5Jj25ywisYRgalL5JtRJZhEhZnFU6RDavjp0ziPsKQq n7qQdhMiIKhs8HOh/tdzWKaD27UheoqPoR+UFFvQ3MUsQdwdhNCKLpaV9zrjKpvYsKB8 gRvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DWI0TN3GCQFP2vA9S9QwKvOhEXn0PKUY4rRhtwCvJw0=; b=cod5WTXzHx1Y1RPv3cfwUHyonia04Atb6JXPNTu/DTbO5K1ugv7yL6AKRq+t3FClj/ FtgfFZIFlF4RaqZuFhL+lkfYRhdfukmx4o5BJYT/AV8FtX4i/5JN7VkVWUUe5g+QqbrR rf6T7KphbQ//GVSLbra5lpdU8//6/sJDXatJ8h/qk10xv+29pbQuAkjfZjSV/6OLGJKo CDT1j7XnSZgCRqkCvsrmGztP/z7zxGEsjxyJpvBrSGm4sb/7BLPXLh2+J7q87Ydjp27P A4t31UU/osbmMsT5h5tQS8ig/BSoCSflkiU0fES+NSkw++rDGP7aF/WR5lO0N1Hw6zSs HauA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=orSXMRVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si18325741ejc.661.2021.03.04.09.27.31; Thu, 04 Mar 2021 09:27:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=orSXMRVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241229AbhCDNRk (ORCPT + 99 others); Thu, 4 Mar 2021 08:17:40 -0500 Received: from mail.pqgruber.com ([52.59.78.55]:39562 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235987AbhCDNRe (ORCPT ); Thu, 4 Mar 2021 08:17:34 -0500 Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id 87AD3C72819; Thu, 4 Mar 2021 14:16:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1614863812; bh=DWI0TN3GCQFP2vA9S9QwKvOhEXn0PKUY4rRhtwCvJw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=orSXMRVnTbuhb25K+L1T+mnp6SoOw+zblvccKeHUJvl1ratlz+bhcbXnwZ2JNhnH2 0Ys00UssC97Cy+lWIaVYalTvd5hHmf1mSjFLOVIwKpS1uDyIncYtI8B76FaqxNUDfz LkZ9kC9uiE5zVrQpCh+0Dyn5z7gQi7TKvVJ2JtBs= Date: Thu, 4 Mar 2021 14:16:51 +0100 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , Lee Jones , linux-kernel@vger.kernel.org, Mika Westerberg , David Jander Subject: Re: [PATCH v5 4/7] pwm: pca9685: Reset registers to POR state in probe Message-ID: References: <20201215212228.185517-1-clemens.gruber@pqgruber.com> <20201215212228.185517-4-clemens.gruber@pqgruber.com> <20210301214633.5xgxwtxuodrb3nyn@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210301214633.5xgxwtxuodrb3nyn@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 01, 2021 at 10:46:33PM +0100, Uwe Kleine-K?nig wrote: > Hello Clemens, > > On Tue, Dec 15, 2020 at 10:22:25PM +0100, Clemens Gruber wrote: > > Reset the prescale and ON/OFF registers to their POR default state in > > the probe function. Otherwise, the PWMs could still be active after a > > watchdog reset and reboot, etc. > > My memories are swapped out because it's already so long ago I looked > into this series. I thought it was already said that taking over the > configured state in probe is the nice thing to do?! Yes, but Sven voiced some concerns about the introduced complexities when removing the resets. I was torn between the two options. I think it would be a good idea to first switch to the atomic API while keeping the resets and then evaluate removing them in a separate patch series. Thanks, Clemens