Re: [PATCH v16 2/7] power: add power sequence library

2017-07-20 Thread Peter Chen
On Wed, Jul 19, 2017 at 01:34:11PM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 19, 2017 10:56:00 AM Peter Chen wrote: > > On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > > > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > > > On Mon, Jul

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-20 Thread Peter Chen
On Wed, Jul 19, 2017 at 01:34:11PM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 19, 2017 10:56:00 AM Peter Chen wrote: > > On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > > > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > > > On Mon, Jul 17, 2017 at 03:39:07PM

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-19 Thread Rafael J. Wysocki
On Wednesday, July 19, 2017 10:56:00 AM Peter Chen wrote: > On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > > >> > Sorry, I

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-19 Thread Rafael J. Wysocki
On Wednesday, July 19, 2017 10:56:00 AM Peter Chen wrote: > On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > > >> > Sorry, I should describe more. >

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-18 Thread Peter Chen
On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > >> > Sorry, I should describe more. > >> > > >> > Let's take USB bus as an

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-18 Thread Peter Chen
On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > >> > Sorry, I should describe more. > >> > > >> > Let's take USB bus as an example, when the new USB

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-18 Thread Rafael J. Wysocki
On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: >> > Sorry, I should describe more. >> > >> > Let's take USB bus as an example, when the new USB device is at the >> > host port, the device structure at

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-18 Thread Rafael J. Wysocki
On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: >> > Sorry, I should describe more. >> > >> > Let's take USB bus as an example, when the new USB device is at the >> > host port, the device structure at device model is not

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-17 Thread Peter Chen
On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > > Sorry, I should describe more. > > > > Let's take USB bus as an example, when the new USB device is at the > > host port, the device structure at device model is not created until > > it is discoverable by the USB bus. If this

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-17 Thread Peter Chen
On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > > Sorry, I should describe more. > > > > Let's take USB bus as an example, when the new USB device is at the > > host port, the device structure at device model is not created until > > it is discoverable by the USB bus. If this

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-17 Thread Rafael J. Wysocki
On Monday, July 10, 2017 10:28:15 AM Peter Chen wrote: > On Sat, Jul 08, 2017 at 02:14:56PM +0200, Rafael J. Wysocki wrote: > > On Saturday, July 08, 2017 01:51:15 PM Peter Chen wrote: > > > On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > > > > On Friday, July 07, 2017

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-17 Thread Rafael J. Wysocki
On Monday, July 10, 2017 10:28:15 AM Peter Chen wrote: > On Sat, Jul 08, 2017 at 02:14:56PM +0200, Rafael J. Wysocki wrote: > > On Saturday, July 08, 2017 01:51:15 PM Peter Chen wrote: > > > On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > > > > On Friday, July 07, 2017

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-09 Thread Peter Chen
On Sat, Jul 08, 2017 at 02:14:56PM +0200, Rafael J. Wysocki wrote: > On Saturday, July 08, 2017 01:51:15 PM Peter Chen wrote: > > On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > > > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > > > On Fri, Jul 07, 2017 at

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-09 Thread Peter Chen
On Sat, Jul 08, 2017 at 02:14:56PM +0200, Rafael J. Wysocki wrote: > On Saturday, July 08, 2017 01:51:15 PM Peter Chen wrote: > > On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > > > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > > > On Fri, Jul 07, 2017 at

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-08 Thread Rafael J. Wysocki
On Saturday, July 08, 2017 01:51:15 PM Peter Chen wrote: > On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > > > > > - Can I write new

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-08 Thread Rafael J. Wysocki
On Saturday, July 08, 2017 01:51:15 PM Peter Chen wrote: > On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > > > > > - Can I write new

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Peter Chen
On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > > > - Can I write new code for it or I need to depend on something? > > > > > > There is

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Peter Chen
On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > > > - Can I write new code for it or I need to depend on something? > > > > > > There is

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Rafael J. Wysocki
On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > - Can I write new code for it or I need to depend on something? > > > > There is nothing this code needs to depend on AFAICS, but there are existing > >

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Rafael J. Wysocki
On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > - Can I write new code for it or I need to depend on something? > > > > There is nothing this code needs to depend on AFAICS, but there are existing > >

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Peter Chen
On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > - Can I write new code for it or I need to depend on something? > > There is nothing this code needs to depend on AFAICS, but there are existing > solutions in this problem space (ACPI power management, genpd), so it

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Peter Chen
On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > - Can I write new code for it or I need to depend on something? > > There is nothing this code needs to depend on AFAICS, but there are existing > solutions in this problem space (ACPI power management, genpd), so it

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 07:54:00 PM Peter Chen wrote: > On Wed, Jul 05, 2017 at 02:44:56AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > > > We have an well-known problem that the device needs to do some power > > > sequence before it can be

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 07:54:00 PM Peter Chen wrote: > On Wed, Jul 05, 2017 at 02:44:56AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > > > We have an well-known problem that the device needs to do some power > > > sequence before it can be

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-05 Thread Peter Chen
On Wed, Jul 05, 2017 at 02:44:56AM +0200, Rafael J. Wysocki wrote: > On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > > We have an well-known problem that the device needs to do some power > > sequence before it can be recognized by related host, the typical > > example like hard-wired

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-05 Thread Peter Chen
On Wed, Jul 05, 2017 at 02:44:56AM +0200, Rafael J. Wysocki wrote: > On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > > We have an well-known problem that the device needs to do some power > > sequence before it can be recognized by related host, the typical > > example like hard-wired

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-04 Thread Rafael J. Wysocki
On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > We have an well-known problem that the device needs to do some power > sequence before it can be recognized by related host, the typical > example like hard-wired mmc devices and usb devices. > > This power sequence is hard to be

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-04 Thread Rafael J. Wysocki
On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > We have an well-known problem that the device needs to do some power > sequence before it can be recognized by related host, the typical > example like hard-wired mmc devices and usb devices. > > This power sequence is hard to be