[PATCH v2 5/5] staging: greybus: loopback: convert to use msecs internally

2016-12-27 Thread Bryan O'Donoghue
The API presented by operation.h expects milliseconds to be passed in. This patch drops the conversion from user-input microseconds-to-jiffies and from jiffies-to-milliseconds and instead converts directly from microseconds-to-milliseconds. The new minimum timeout will be one millisecond as opposed

[PATCH v2 2/5] staging: greybus: operation: add generic asynchronous timeout operation support

2016-12-27 Thread Bryan O'Donoghue
This patch adds a generic mechanism for handling timeouts of asynchronous operations to operation.c. After doing a gb_operation_request_send() it schedules a delayed worker. When the delayed worker's timer expires the worker runs and does a gb_operation_cancel(). A gb_operation_cancel() operation w

[PATCH v2 3/5] staging: greybus: operation: add private data with get/set accessors

2016-12-27 Thread Bryan O'Donoghue
Asynchronous operation completion handler's lives are made easier if there is a generic pointer that can store private data associated with the operation. This patch adds a pointer field to operation.h and get/set methods to access that pointer. Signed-off-by: Bryan O'Donoghue --- drivers/stagin

[PATCH v2 0/5] drivers/staging/greybus: add async operations

2016-12-27 Thread Bryan O'Donoghue
V2: Scotty : "What are you standing around for - do you not know a jailbreak when you see one" ? Making sure to run format-patch against the right tree this time.. Updated meta-comments to highlight adding a generic async timeout - Johan Captured the result code of schedule_work/queue_work - Brya

[PATCH v2 1/5] staging: greybus: operation: add asynchronous gb_operation_cancel

2016-12-27 Thread Bryan O'Donoghue
Later patches don't want or need to serialize the cancellation of an operation. This patch adds gb_operation_cancel_async() as a simple subset of the existing gb_operation_cancel() sans the synchronous wait on the cancellation queue. Signed-off-by: Bryan O'Donoghue --- drivers/staging/greybus/op

[PATCH v2 4/5] staging: greybus: loopback: convert loopback to use generic async operations

2016-12-27 Thread Bryan O'Donoghue
Loopback has its own internal method for tracking and timing out asynchronous operations however previous patches make it possible to use functionality provided by operation.c to do this instead. Using the code in operation.c means we can completely subtract the timer, the work-queue, the kref and

Re: [PATCH] staging: octeon: Call SET_NETDEV_DEV()

2016-12-27 Thread Florian Fainelli
On 12/20/2016 07:20 PM, David Miller wrote: > From: Florian Fainelli > Date: Tue, 20 Dec 2016 17:02:37 -0800 > >> On 12/14/2016 05:13 PM, Florian Fainelli wrote: >>> The Octeon driver calls into PHYLIB which now checks for >>> net_device->dev.parent, so make sure we do set it before calling into