[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f6394f4d-1be9-e241-4675-370e171deabc@codeaurora.org>
Date: Mon, 23 Oct 2017 16:19:46 +0530
From: Manu Gautam <mgautam@...eaurora.org>
To: Jack Pham <jackp@...eaurora.org>,
Kishon Vijay Abraham I <kishon@...com>
Cc: Felipe Balbi <balbi@...nel.org>, linux-arm-msm@...r.kernel.org,
linux-usb@...r.kernel.org,
Vivek Gautam <vivek.gautam@...eaurora.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
"open list:GENERIC PHY FRAMEWORK" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 14/17] phy: qcom-qusb2: Set vbus sw-override signal in
device mode
Hi Kishon,
Please review this so that I can re-submit patch-set based on this approach.
On 10/9/2017 1:33 PM, Manu Gautam wrote:
> Hi Kishon
>
> On 10/5/2017 2:38 PM, Manu Gautam wrote:
>> Kishon,
>> What would you suggest here?
>> Should we add new calls e.g. phy_get/set_current_speed like::
>>
>> diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
>> index 78bb0d7..41d9ec2 100644
>> --- a/include/linux/phy/phy.h
>> +++ b/include/linux/phy/phy.h
>> @@ -29,6 +29,14 @@ enum phy_mode {
>> PHY_MODE_USB_OTG,
>> };
>>
>> +enum phy_speed {
>> + PHY_SPEED_INVALID,
>> + PHY_SPEED_USB_LS,
>> + PHY_SPEED_USB_FS_HS,
>> + PHY_SPEED_USB_SS,
>> +};
>> +
>> /**
>> * struct phy_ops - set of function pointers for performing phy operations
>> * @init: operation to be performed for initializing phy
>> @@ -45,6 +53,7 @@ struct phy_ops {
>> int (*power_on)(struct phy *phy);
>> int (*power_off)(struct phy *phy);
>> int (*set_mode)(struct phy *phy, enum phy_mode mode);
>> + int (*set_speed)(struct phy *phy, enum phy_speed speed);
>> int (*reset)(struct phy *phy);
>> struct module *owner;
>> };
>>
> @Kishon,
> Let me know if we can add set_speed to phy_ops. We need this for glue
> driver to notify PHY of current connection speed to enable appropriate
> wakeup interrupts.
>
>
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists