Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752773AbdCML5P (ORCPT ); Mon, 13 Mar 2017 07:57:15 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:35331 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbdCML5G (ORCPT ); Mon, 13 Mar 2017 07:57:06 -0400 Subject: Re: [PATCH v2] phy: rcar-gen3-usb2: fix implementation for runtime PM To: Yoshihiro Shimoda , kishon@ti.com References: <1489397969-26153-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <983f7c65-38f8-a04f-f809-ab6bbd8ac8f5@cogentembedded.com> Date: Mon, 13 Mar 2017 14:56:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1489397969-26153-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 594 Lines: 14 On 03/13/2017 12:39 PM, Yoshihiro Shimoda wrote: > This patch fixes an issue that this driver doesn't take care of the runtime > PM. This code assumed that devm_phy_create() called pm_runtime_enable(dev), > but it misunderstood the dev_phy_create()'s specification. > This driver should call its own pm_runtime_pm() before dev_phy_create(). You probably meant pm_runtime_enable()? Sorry for not noticing the 1st time... > Fixes: f3b5a8d9b50d ("phy: rcar-gen3-usb2: Add R-Car Gen3 USB2 PHY driver") > Signed-off-by: Yoshihiro Shimoda [...] MBR, Sergei