Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1406366pxu; Thu, 17 Dec 2020 09:12:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK0pkj61Q5skpwpc9vLhdU4dn+LYZvmHA1CvbZuEu4gzXkdFDqoc6Vn2uf/o0PcdIqNgfr X-Received: by 2002:a17:907:6e9:: with SMTP id yh9mr36225325ejb.131.1608225140738; Thu, 17 Dec 2020 09:12:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608225140; cv=none; d=google.com; s=arc-20160816; b=S8wZ2aCnm4RY1ZNL3Zm0n5BP+LyzcdLhO/OOXed8bLk6q+6MqqwsxFnMKRJhOI/CdU xNvZA9erN6CRRassK6bbS4g1CpG1cElQYIZ1wGimynOt+00pVGX0gCjrBojmEEPVIXMh qHIEGmaXoHkW16kcQJVFflWcjN52hQoCPzg56p0K/f/YflacPcvUVnETDG1ERea+7fXS 9Suk/plh8L5VXhW8YSuyzXXOr/9csWoFq4oti/m2u1HO+6W7VcRmEDgBX7OKkfpGCkwX OkC6Pt923S9poN/B40uLcS4bEJA6GkatOTENNro0eofjZfQzPQbLr1XMC3tu/jv9Fc1p QckQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IVWkc2hjiETBBpFaxuhkqsl8mzCX2jQxdE5JeIF+Z0Y=; b=C/9Yn3FUTa3pZaaMcA2ajz/tX7yrzzD20ryBb/HU6CiVkZlVzbGZyWrtIm84H74SmQ dc35OLKxsfPs1E5aCRylLQrJEB6Y5RSFGuyzq0+utnvRdtV3yULsHUtHY4rWCEhzyFkT u6q46BNjZBjkW36uBNEjAN67H/UbfSGClH9SdkzwX8mJjmWU+ICu/sUb4veMR3gWFD21 V+t7JIFMIF7Zojb+q6cuH6OVvgujD7HmJjuZYy7gwUE+z7qYe/0cnmASbQ5TkhEoI5qn fesAWze3xgbM3E2Gt/RWwK0lNffbhffEWGqbTryNvGGb8i0lAkEaqYMGNzBry1jER6Jm m9ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CU6N4d/b"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv23si3084118ejb.408.2020.12.17.09.11.57; Thu, 17 Dec 2020 09:12:20 -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=@gmail.com header.s=20161025 header.b="CU6N4d/b"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728181AbgLQRLD (ORCPT + 99 others); Thu, 17 Dec 2020 12:11:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbgLQRLD (ORCPT ); Thu, 17 Dec 2020 12:11:03 -0500 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBE66C061794; Thu, 17 Dec 2020 09:10:22 -0800 (PST) Received: by mail-vs1-xe30.google.com with SMTP id q10so15314492vsr.13; Thu, 17 Dec 2020 09:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IVWkc2hjiETBBpFaxuhkqsl8mzCX2jQxdE5JeIF+Z0Y=; b=CU6N4d/bdV4lyjdny521D22gA6ha4lMOfjgVpiPKJ8cMTUupgq9lg2BLsv/0ob4fZz zIjU7IbSh/CpQNNeeFgtoC9UPiGcGRQhByluuO5UdxUhL4FUhL9NyVbrK5mi04J2HZIB vXbjyjQo36hd33+JYsD41DBMtoBY1yQ5gsO+xKZmFmJQNCjTINeOBYRrv70HQrUnbSeh tdX3bYRKup0qyB0DuczCDf9aPYw3SuXTJ2LtRkunrm8HE1gr9eyLdEJPvLy+mRNhVsqM lJhgBPbZQuE8QWYKYf/qL58Vn+kbXVAK8hFZU0ugwwUJ6Mi/LkrOPgPyPqi4nbaLX/n4 or5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IVWkc2hjiETBBpFaxuhkqsl8mzCX2jQxdE5JeIF+Z0Y=; b=Lzdv+BJBUAUyOMCQcP3Jy43IZw3yaALgF0OwH/3cS85zr8DXILZatWpzS2u3/OTDMK zJfmNFhdP3edFYBev7MlSVjRPl0QA02gIOCMS/Od5t61i0dOGe0KSv/TE368J1G6R2hv 0S7Vk581/gSW2XGstA6FZ/pWmyKNs2B81uDBimcpDbC6EMLgyFQcq8Av7Y4neUJyvMCF P8DfKvbBykmGCxUqDZbTPD8j3AyVTzANbhwx+T9Js7sKxLr4FUNeI7FtqiFNsPTVIPIG gge5wZTdj6H1fQVu9YW+Xp1mxHH8UZbawDXglyadRh61fwP3vvsqOmQHq2ShgfWI76hw Xb0Q== X-Gm-Message-State: AOAM530X4j0eKigsq8NWZzmgvEa6Kh0ZmjHTiJ03PmpXb5y6/3NkhJ59 umCYnSK0ZjWkEUwboy89DsFVFP/tKN53qZhvJWk= X-Received: by 2002:a67:2287:: with SMTP id i129mr90630vsi.15.1608225021351; Thu, 17 Dec 2020 09:10:21 -0800 (PST) MIME-Version: 1.0 References: <20201215212228.185517-1-clemens.gruber@pqgruber.com> In-Reply-To: From: Sven Van Asbroeck Date: Thu, 17 Dec 2020 12:10:10 -0500 Message-ID: Subject: Re: [PATCH v5 1/7] pwm: pca9685: Switch to atomic API To: Clemens Gruber Cc: linux-pwm@vger.kernel.org, Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Lee Jones , Linux Kernel Mailing List , Mika Westerberg , David Jander Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2020 at 11:48 AM Clemens Gruber wrote: > > I can initialize the values to 0 of course and check the file for other > places with missing initializations. > > Or would it be better to check the return codes of regmap_read/write in > such cases? I'm not sure. I think that checking the regmap_read/write return values is overkill in this driver. These functions can't realistically fail, except if the i2c bus is bad, i.e. h/w failure or intermittency. And that's an externality which I believe we can ignore. Maybe Thierry or Uwe have further insights here.