[PATCH] kernel: cpu: Handle hotplug failure for state CPUHP_AP_IDLE_DEAD

2018-09-05 Thread Prakruthi Deepak Heragu
4000 As seen, the time rolls over to 0 after 8792. Signed-off-by: Channagoud Kadabi Signed-off-by: Prakruthi Deepak Heragu --- kernel/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index 0db8938..51fa38f 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -837,

[PATCH] genirq: Avoid race between cpu hot plug and irq_desc() allocation paths

2018-09-05 Thread Prakruthi Deepak Heragu
609f38584306f5d9 ]--- Signed-off-by: Prasad Sodagudi Signed-off-by: Prakruthi Deepak Heragu --- kernel/irq/cpuhotplug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/irq/cpuhotplug.c b/kernel/irq/cpuhotplug.c index 5b1072e..17c5e71 100644 --- a/kernel/irq/cpuhotplug.c +++ b/kernel/irq

[PATCH 2/2] Embedded USB Debugger (EUD) driver

2018-07-31 Thread Prakruthi Deepak Heragu
Add support for control peripheral of EUD (Embedded USB Debugger) to listen to events such as USB attach/detach, charger enable/disable, pet EUD to indicate software is functional. Signed-off-by: Satya Durga Srinivasu Prabhala Signed-off-by: Prakruthi Deepak Heragu --- drivers/soc/qcom/Kconfig

[PATCH 1/2] dt-bindings: Documentation for qcom,eud

2018-07-31 Thread Prakruthi Deepak Heragu
Documentation for Embedded USB Debugger (EUD) device tree bindings. Signed-off-by: Satya Durga Srinivasu Prabhala Signed-off-by: Prakruthi Deepak Heragu --- .../devicetree/bindings/soc/qcom/qcom,msm-eud.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644

[PATCH 0/2] Add Embedded USB Debugger (EUD) driver

2018-07-31 Thread Prakruthi Deepak Heragu
receives an interrupt to pet the driver indicating that the software is functional. Prakruthi Deepak Heragu (2): dt-bindings: Documentation for qcom,eud Embedded USB Debugger (EUD) driver .../devicetree/bindings/soc/qcom/qcom,msm-eud.txt | 32 ++ drivers/soc/qcom/Kconfig

[PATCH 0/2] Add Embedded USB Debugger (EUD) driver

2018-07-31 Thread Prakruthi Deepak Heragu
receives an interrupt to pet the driver indicating that the software is functional. Prakruthi Deepak Heragu (2): dt-bindings: Documentation for qcom,eud Embedded USB Debugger (EUD) driver .../devicetree/bindings/soc/qcom/qcom,msm-eud.txt | 32 ++ drivers/soc/qcom/Kconfig

[PATCH v2] checkpatch: check for #if 0/#if 1

2018-07-26 Thread Prakruthi Deepak Heragu
The #if 0 or #if 1 is used to toggle features. Warn if #if 0 or #if 1 is present and suggest that they can be removed. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Prakruthi Deepak Heragu --- Changes in v2: - Rephrase the warning for #if 0 Changes in v1: - Rephrase the warning message

[PATCH v1] checkpatch: check for #if 0/#if 1

2018-07-25 Thread Prakruthi Deepak Heragu
The #if 0 or #if 1 is used to toggle features. Warn if #if 0 or #if 1 is present and suggest that they can be removed. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Prakruthi Deepak Heragu --- Changes in v1: - Rephrase the warning message to fit in a single line without 80 column

[PATCH] checkpatch: Require commit text and warn on long commit text lines

2018-07-13 Thread Prakruthi Deepak Heragu
Commit text is almost always necessary to explain why a change is needed. Also, warn on commit text lines longer than 75 characters. The commit text are indented and may wrap on a terminal if they are longer than 75 characters. Signed-off-by: David Keitel Signed-off-by: Prakruthi Deepak Heragu

[PATCH] checkpatch: Handle long multi-line macros better

2018-07-10 Thread Prakruthi Deepak Heragu
as part of the macro expression and doesn't throw an error. Signed-off-by: Prakruthi Deepak Heragu --- scripts/checkpatch.pl | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 599ae61..158c96d 100755 --- a/sc

[PATCH] checkpatch: forbid filesystem accesses from within the kernel

2018-07-05 Thread Prakruthi Deepak Heragu
As use of sys_open/close/read/write system calls from within the kernel code is inappropriate, an error is triggered if used. Signed-off-by: Prakruthi Deepak Heragu --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts

[PATCH v2] checkpatch: Check for invalid return codes

2018-07-05 Thread Prakruthi Deepak Heragu
ts of "return -1;" statements in this patch - it's obscene that this is used to indicate "some error occurred" in kernel space rather than a real errno value - even when an existing function (eg, request_irq) gave you an error code already. Signed-off-by: Prakruthi De

[PATCH] checkpatch: check for #if 0/#if 1

2018-07-05 Thread Prakruthi Deepak Heragu
preprocessor directives can be removed. Signed-off-by: Prakruthi Deepak Heragu --- scripts/checkpatch.pl | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 978c752..fa3e695 100755 --- a/scripts/checkpatch.pl

[PATCH] checkpatch: Add exceptions for dsb keyword usage

2018-07-05 Thread Prakruthi Deepak Heragu
mb() API can relpace the dsb() API in the kernel code. So, dsb() usage is discouraged. However, there are exceptions when dsb is used in a variable or a function name. Exceptions are when 'dsb' is prefixed with class [-_>*\.] and/or suffixed with class [-_\.;]. Signed-off-by: Pra

[PATCH] checkpatch: Add warnings for use of mdelay()

2018-07-04 Thread Prakruthi Deepak Heragu
mdelay() is not a preferred API to be used to insert delay in the kernel code unless the context is atomic. Instead, msleep() API can be used. This patch introduces this warning. Signed-off-by: Israel Schlesinger Signed-off-by: Stepan Moskovchenko Signed-off-by: Prakruthi Deepak Heragu

[PATCH v1] checkpatch: Check for invalid return codes

2018-07-03 Thread Prakruthi Deepak Heragu
tch - it's obscene that this is used to indicate "some error occurred" in kernel space rather than a real errno value - even when an existing function (eg, request_irq) gave you an error code already. Signed-off-by: Patrick Pannuto Signed-off-by: Stepan Moskovchenko

[PATCH] checkpatch: Check for illegal return codes

2018-07-03 Thread Prakruthi Deepak Heragu
ed" in kernel space rather than a real errno value - even when an existing function (eg, request_irq) gave you an error code already. Signed-off-by: Patrick Pannuto Signed-off-by: Stepan Moskovchenko Signed-off-by: Prakruthi Deepak Heragu --- scripts/checkpatch.pl | 6 ++ 1 fil

[PATCH] checkpatch: check for #if 0/#if 1

2018-07-03 Thread Prakruthi Deepak Heragu
From: Abhijeet Dharmapurikar The #if 0 and #if 1 are used to toggle features. Warn if #if 1 or #if 0 is present. If #if 0 is present, warn about that part of code being redundant and that it could be removed. Also, if #if 1 is present, suggest that if the code is required then the #if 1 can be