Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4699022yba; Mon, 20 May 2019 02:05:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwinBRxsi1VgxZz89DZZDU/vxFtxiw3hj9VY1dpJiZMiHX2Q6fW14lJNQGDRsaAa84AXtAC X-Received: by 2002:a62:4d04:: with SMTP id a4mr7169671pfb.177.1558343124080; Mon, 20 May 2019 02:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558343124; cv=none; d=google.com; s=arc-20160816; b=YAhbeZNzKN6d/U03g5pvtS2pzmKFsxae7+rNRkYufEZie7bzvaINrPleicbbDmtpPn /6Jv2UQtQtJ0bVnyJZdZV2o7W6wmvDy0wSLQ6pgIyBJ51ZdZY7WkYnp78c0KFr8kfpct 6MQqJbNOGN7G69zc1Jo6HWtft3tiDIoho8FwHFQiSUFRvrMBx4bIFX17q9O0UmNyJr4p V4JFMKuupzIsAHXqmRGbDkOHRvqg4hbxU40aI1eMJRTF1G+jrv0G0I4BA26bQONkvPxu BhpniBqQeAD2Uc4WUjnjJ81gYFiF+IldgTMa3vEq9rBbHwgG4f9qmwoP+1N85wjcKpeH Ar4A== 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; bh=WNe5zD8EbypMGMCv2cvp7cUoDcbNDit9Pa0KbW5AHpM=; b=dTn/U1uka7WzIWmaV06fvXGykIIi9K1AzaQfqPnSNiqvkTJowYiByuSIZF4Z6gs+Be hGF0ThHOxcfLMlx9FyBwmGse5LAgZIrnIPfEpxT2EGI96akGHefdg7wFAoy6EzYg3ey/ kKMas7WtXvPJxF2wVjWc52q6Rh35/tHYszIQiZ8XEEawS+CEeZFL+W7KjrxfkrgPoRFx d+B+q27BtYIrCocKOTJLWCBdR0yjWcd0VQl8jqHtjmRzbkphzTjdBwAaF+xqml4xQjqs 6AtyvERCP7W1Uqe4vX+VhXLr4LuoT9koJDFqIocDLI66QXf/RdRD0X/9S7Qo/0MNzzNK vQoQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si17068361pgo.435.2019.05.20.02.04.57; Mon, 20 May 2019 02:05:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730485AbfETHpC (ORCPT + 99 others); Mon, 20 May 2019 03:45:02 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:34920 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730013AbfETHpC (ORCPT ); Mon, 20 May 2019 03:45:02 -0400 Received: by mail-vs1-f65.google.com with SMTP id q13so8332382vso.2; Mon, 20 May 2019 00:45:01 -0700 (PDT) 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=WNe5zD8EbypMGMCv2cvp7cUoDcbNDit9Pa0KbW5AHpM=; b=MQvx3HSmYRVgVSYgRhtnO9vLuxqgE0tZPweb/BOPq6VB/Mf+KekgVpCbUyOzGWupXo XyrcfO9cIKgZdOuZd2dS5jGC2/bGTKvSAzGQVyBy04NBU+ouuf30L7WjFEJdmxyettXW j5UU/sFupHZnmnkTBQAc0Ikfrcb6lbV9yu1g1dbdO/MAKmzLefqlSGrqEJR5+uG+II+W 5B+EhUXNjHyoMajVQZZdlYxGZNTKv7vTmk+SfU6l2tIw32Bnr/uGtHnhUSBc4dAHqQF0 wgC4nQwPBGDunW+sDvxeKh1kJdL2oFFB6eXq2zaEcghali++Mc354S0KW3R3X/6ymmCw m3/g== X-Gm-Message-State: APjAAAUijwEIic+i60MBKR57drBQWPKGdbQ/Ax9VVnQQ9o++7fbpJEhM 5fIqjSzlFO0tYzzKLBj3GXaRumH6L6+7fKGSEf8= X-Received: by 2002:a67:7c93:: with SMTP id x141mr25439751vsc.96.1558338301113; Mon, 20 May 2019 00:45:01 -0700 (PDT) MIME-Version: 1.0 References: <1556092536-17095-1-git-send-email-masonccyang@mxic.com.tw> <20190424212356.GA27103@bogus> <65853dc2-6f3c-1494-7e72-54877797cdd2@gmail.com> <20190507125730.GD29524@dell> <20190508061119.GB7627@dell> <44bc8f0a-cbdc-db4a-9a46-b8bae5cc37a2@cogentembedded.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 20 May 2019 09:44:48 +0200 Message-ID: Subject: Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF MFD bindings To: Mason Yang Cc: Sergei Shtylyov , Lee Jones , Boris Brezillon , Mark Brown , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Geert Uytterhoeven , Simon Horman , juliensu@mxic.com.tw, Linux Kernel Mailing List , Linux-Renesas , linux-spi , Marek Vasut , Mark Rutland , Rob Herring , zhengxunli@mxic.com.tw, Miquel Raynal 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 Hi Mason, On Mon, May 20, 2019 at 9:24 AM wrote: > > >>> - clocks: should contain 1 entries for the module's clock > > >>> - clock-names: should contain "rpc" > > >> > > >> I suspect we'd need the RPC/RPCD2 clocks mentioned as well (not > sure > > > yet)... > > > > > > Need it ? > > > > You seem to call clk_get_rate() on the module clock, I doubt that's > > correct topologically... > > I think it's correct but just like Geert mentioned that there is no any > patch > in drivers/clk/renesas/r8a77995-cpg-mssr.c adding RPC-related clocks. > > > I patched dt-bindings/clock/r8a77995-cpg-mssr.h for some simple testing > > -#define R8A77995_CLK_RPC 29 > -#define R8A77995_CLK_RPCD2 30 > +#define R8A77995_CLK_RPC 31 > +#define R8A77995_CLK_RPCD2 32 That change doesn't make sense to me... > by clk_prepare_enable() & clk_disable_unprepare() with CPG_MOD 917 > on D3 draak board, it is working fine. ... and is not sufficient to allow the above two calls. Besides, making explicit clk_prepare_enable() calls bypasses Runtime PM and the automatic disabling of unused clocks, thus hiding bugs related to Runtime PM. Which is probably why your driver doesn't work for Sergei... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds