Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1782066ybb; Sat, 4 Apr 2020 12:22:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKVE2PzDvwqiHEC0AGWPtACPC9lUd/509oCE1/znNk/fYHl3x9uiUZ2FV2eLFWkitkGIrt8 X-Received: by 2002:a9d:7282:: with SMTP id t2mr6548630otj.302.1586028123773; Sat, 04 Apr 2020 12:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586028123; cv=none; d=google.com; s=arc-20160816; b=bGnvjUIxKUxh3SsfD8HKLPYhCohEGExRSdH2VgPZdA4ZXS6bBy7tVgJkXJt2q6IeAc pwNc+XwAhHu42fscR28AoTnperPdJIVXGI9kt3+55sK9N6SkH/Pd5EsO80bwxxynM+iA fVqPDk28i2AR4jjPCuMjOr9Fl+n/gsX4cHJfn/BlujHpqSGvHi2S/LcCy5y0KAhAHBLN vODE2J9voWojlf0H2CH9N6tUyWBjAnEIBHfNX8lwtk8bu70XiCnsnDe1W8NXh1/ZNWXn /jmqpQah3q1aNq1GY+Ewh/vfwbzRD584jA7zOjQvA7uWi5irYyziWlcWlH5t3W8IffDD y/DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Z0CB3EQF9UD+0fLIe/MYfF3PosbEA1dLe15Mmt1FMSw=; b=qbjfQej98oOEKwfHQ38StanA3yh3s0Uuz4JchVFZ+RYe0bnpni0ZEx7g4we33kUwu+ vER/QJHr9KmWA8lpiRwKpwgm9IKxyB38WJLe8zVcAHUBpMZ/jNjHoR7Drnv7sVQTzMrJ 5S6tV0/G5+rZbGH+Wha9UTrqr8RdxfQCdefX6Yy2s93D6MuVjShAemC++L5iy+jN0orX uIWQy5EVKE4qwbWKMTe74zZfd6dqHepN1P9KCEYzk+F9qO2bJD1dFd3ECGFI6tEBP7+S SnF44yN+9AmGVDCodC22w5DKWrBCkxl5POtd5Sry0maXEtF9XOf6YWQfueU8DZgTqWVG xDVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lm9kPC0c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g9si5947737otn.100.2020.04.04.12.21.51; Sat, 04 Apr 2020 12:22:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lm9kPC0c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726328AbgDDTVb (ORCPT + 99 others); Sat, 4 Apr 2020 15:21:31 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35165 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbgDDTVb (ORCPT ); Sat, 4 Apr 2020 15:21:31 -0400 Received: by mail-oi1-f193.google.com with SMTP id t25so9413010oij.2; Sat, 04 Apr 2020 12:21:31 -0700 (PDT) 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=Z0CB3EQF9UD+0fLIe/MYfF3PosbEA1dLe15Mmt1FMSw=; b=lm9kPC0cG5nIrHMBUSj2bELw+jg37M9VQ174fAaALZ8u56W4/703ed3hB4cgKP9oss O7SMhDZHzxCEpESc2yzNJ1sG/HBQ72apJ90uinc5e8i6zpL24KmuVP7TAfjZAx5YG6lt 7M5WFFtri9SRV9zNFtLiCpaRGTfFNZRB/QaZgxWp0JBjYiWh/xYErWsZOEvrduStrIcn 6keLykIK4wX0D9ldsobGQrauIA1QhD4bK8SRRBapTy5IGM/UMFtaxpD5IevP7jJa/YNW hj4h/eZbb7BsvXwtMRmjEXyfIJHKOv47Ehf/g+Gbd0Nvn/lZeJ1D3TH13PhIJgDlId5D 2JYA== 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=Z0CB3EQF9UD+0fLIe/MYfF3PosbEA1dLe15Mmt1FMSw=; b=QIOLnTmWdrVjBDVnnBt3vox5TfAOVOY+Yv+hDmLfG1VwxqvCOTfaec/qpBJLXvHhmr eXnVi5HnRJx9tv3Y9IM6QQNCGDbnqgI4e48752ntimnKjmnRA6+Unap7tGnBLXTG4W1I cXw7yaaJo9/lfJ4BznajjKUooDw+nFSkvVGt/0JF4dqK1ZMFefrjyDwLmGO1pBCkW+aY qfUKN3MeWvrymB2JCuoWSrEFT5tmrK39MWwNxkNfOHsNwtn2NPoPgLTL+mmsB1Am3S1O RsmrLhQStpCIGhLR5S3DvBX3+lTLZ68aopZzniy26D9Eeg1KblJ/jE1xYTA2JZvd/oQ0 TQQQ== X-Gm-Message-State: AGi0PuZrEobGrJVZRW6CYMzdB3md6ZpeAlFwYvpPAyhIpn45M90YjWVi lCHFOi+MZmQxy8bu1wFzcgEn9aePPRLZDv1Smzrr0A== X-Received: by 2002:aca:b803:: with SMTP id i3mr7421515oif.92.1586028090586; Sat, 04 Apr 2020 12:21:30 -0700 (PDT) MIME-Version: 1.0 References: <20200403235324.27437-1-TheSven73@gmail.com> <20200404175836.GB55833@workstation.tuxnet> In-Reply-To: <20200404175836.GB55833@workstation.tuxnet> From: Sven Van Asbroeck Date: Sat, 4 Apr 2020 15:21:19 -0400 Message-ID: Subject: Re: [PATCH v1] pwm: pca9685: re-enable active pwm channels on pwm period change To: Clemens Gruber Cc: Thierry Reding , Matthias Schiffer , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Andy Shevchenko , linux-pwm@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 4, 2020 at 1:58 PM Clemens Gruber wrote: > > According to the PCA9685 datasheet revision 4, page 15, the RESTART bit > is not only cleared by writing a 1 to it, but also by other actions like > a write to any of the PWM registers. > > This seems to be the reason why I could not reproduce the reported > problem. Thanks Clemens for checking this. If .config will always write at least one of the pwm registers (which seems to be the case), then all pwm channels should stay on after a period change. And we (fortunately) won't need this patch.