11 Nov, 2017
2 commits
-
Now that the SPDX tag is in all greybus files, that identifies the
license in a specific and legally-defined manner. So the extra GPL text
wording can be removed as it is no longer needed at all.This is done on a quest to remove the 700+ different ways that files in
the kernel describe the GPL license text. And there's unneeded stuff
like the address (sometimes incorrect) for the FSF which is never
needed.No copyright headers or other non-license-description text was removed.
Cc: Vaibhav Hiremath
Reviewed-by: Alex Elder
Acked-by: Vaibhav Agarwal
Acked-by: David Lin
Acked-by: Johan Hovold
Acked-by: Viresh Kumar
Acked-by: Mark Greer
Acked-by: Rui Miguel Silva
Acked-by: "Bryan O'Donoghue"
Signed-off-by: Greg Kroah-Hartman -
It's good to have SPDX identifiers in all files to make it easier to
audit the kernel tree for correct licenses.Update the drivers/staging/greybus files files with the correct SPDX
license identifier based on the license text in the file itself. The
SPDX identifier is a legally binding shorthand, which can be used
instead of the full boiler plate text.This work is based on a script and data from Thomas Gleixner, Philippe
Ombredanne, and Kate Stewart.Cc: Vaibhav Hiremath
Cc: "Bryan O'Donoghue"
Cc: Thomas Gleixner
Cc: Kate Stewart
Cc: Philippe Ombredanne
Acked-by: Vaibhav Agarwal
Acked-by: David Lin
Reviewed-by: Alex Elder
Acked-by: Johan Hovold
Acked-by: Viresh Kumar
Acked-by: Mark Greer
Acked-by: Rui Miguel Silva
Signed-off-by: Greg Kroah-Hartman
21 Aug, 2017
1 commit
-
Fixed alignment so that it matched open parenthesis
Signed-off-by: Srishti Sharma
Signed-off-by: Greg Kroah-Hartman
12 Feb, 2017
1 commit
-
This patch fixes only obvious lines.
There are still more issues.Signed-off-by: Gioh Kim
Signed-off-by: Greg Kroah-Hartman
19 Sep, 2016
1 commit
-
No need to support older kernel versions in the Greybus Vibrator driver,
so remove the checks as needed, we can now rely on all of the correct
driver core apis being present.Signed-off-by: Greg Kroah-Hartman
18 Aug, 2016
1 commit
-
In the beginning, module side can control the vibrator timeout value,
it can disable vibrator until timeout. But after Runtime PM control added
in, AP side didn't know when module can be suspended, the vibrator
task will be interrupted by suspending event.Because of this problem, the module can not be in charge of counting down
the timeout value, it is now up to the AP to manage this. So add workqueue
to handle the vibrator timeout.Signed-off-by: Ann Chen
Reviewed-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
23 Jul, 2016
1 commit
-
Integrate greybus drivers with the Linux Kernel RuntimePM framework
for vibrator driver.Testing Done: AP side (kernel) can control the vibrator driver with
suspend and resume.Signed-off-by: Ann Chen
Reviewed-by: David Lin
Reviewed-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
01 Jun, 2016
1 commit
-
We don't use these anymore. Drop them.
Note that some macro's specific to bridged PHY devices aren't removed in
the patch, as gbsim will break otherwise. They will be removed
separately.Compile tested.
Signed-off-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
23 Mar, 2016
1 commit
-
This converts all drivers to use the gb_connection_get_data() and
gb_connection_set_data() functions to make it a bit more explicit as to
what is going on.Signed-off-by: Greg Kroah-Hartman
Reviewed-by: Alex Elder
Signed-off-by: Greg Kroah-Hartman
22 Jan, 2016
1 commit
-
Convert the legacy vibrator protocol driver to a bundle driver.
Reviewed-by: Viresh Kumar
Signed-off-by: Johan Hovold
Signed-off-by: Greg Kroah-Hartman
16 Oct, 2015
1 commit
-
We are removing struct device from the gb_connection structure in the
near future. The gb_bundle structure's struct device should be used as
a replacement.This patch moves the vibrator driver to use the bundle pointer instead
of the connection pointer.Signed-off-by: Greg Kroah-Hartman
Reviewed-by: Alex Elder
15 Oct, 2015
1 commit
-
Add missing error handling when registering the vibrator protocol during
module init.Signed-off-by: Johan Hovold
Signed-off-by: Greg Kroah-Hartman
15 Sep, 2015
1 commit
-
Do not release the minor number until after the device has been
deregistered.Signed-off-by: Johan Hovold
Reviewed-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
12 Aug, 2015
1 commit
-
This is done from a common place now, no need to replicate it.
Signed-off-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
11 Aug, 2015
1 commit
-
We already have macros for these, use them instead of writing fixed
values.Signed-off-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
09 Jul, 2015
1 commit
-
idr and ida structures have internal memory allocated that needs to be
freed when modules are removed. So call the proper idr_destroy() or
ida_destroy() functions on the module exit path to free the memory.Signed-off-by: Greg Kroah-Hartman
Reviewed-by: Alex Elder
15 May, 2015
1 commit
-
All we need is a simple ida, so use that interface instead of the more
"complex" idr one. Bonus is we don't need to fix the locking issue I
forgot about when using an idr, as ida has one built-in.Signed-off-by: Greg Kroah-Hartman
Reviewed-by: Alex Elder
08 May, 2015
1 commit
-
All protocols use the same value to distinguish between request and
response message types. This is a requirement.Use GB_MESSAGE_TYPE_RESPONSE rather than GB_OPERATION_TYPE_RESPONSE
for the name of the flag used to distiguish between request and
response messages.Get rid of the redundant response flag definitions that are
associated with specific protocols.Describe the symbolic values as "operation types" rather than
"message types" where they are defined. The message type for a
request is the same as the operation type; the message type for a
response is the operation type OR'd with GB_MESSAGE_TYPE_RESPONSE.Signed-off-by: Alex Elder
Signed-off-by: Greg Kroah-Hartman
25 Mar, 2015
1 commit
-
As mentioned in kernel coding guidelines.
Signed-off-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
18 Mar, 2015
1 commit
-
Fix memory leak in connection_init error path.
Signed-off-by: Johan Hovold
Reviewed-by: Viresh Kumar
Signed-off-by: Greg Kroah-Hartman
22 Jan, 2015
3 commits
-
These aren't used anymore and so can be removed.
Signed-off-by: Viresh Kumar
Reviewed-by: Alex Elder
Signed-off-by: Greg Kroah-Hartman -
This gets rid of lots of duplication of code.
Signed-off-by: Viresh Kumar
Reviewed-by: Alex Elder
Signed-off-by: Greg Kroah-Hartman -
Some files are still prefixed with "gb-" with the reasoning that the modules
would be named so, i.e. gb-*.ko. But this can be done by playing a bit in
Makefile instead and keep uniform naming of .c files.Lets try it.
Signed-off-by: Viresh Kumar
Reviewed-by: Alex Elder
Signed-off-by: Greg Kroah-Hartman