Incorrect values are received when queried for SLIM RXX MUX.
This is due to incorrect logic in the put and get functions
of this kctl. Correct the logic to fix this issue.
CRs-Fixed: 1074866
Change-Id: Ib1fda1fcbc09e132f1b3deaf4a65fe8617ff9d10
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Instead of setting charge_done property from smb-lib when
handling chg_state_change interrupt, move it to a separate
function which reads the hardware register directly and
updates it. Since this doesn't require a set_property callback,
remove it.
Change-Id: I1005b135f5e16111257902413ef2b44c09cb1cfc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This change enables USB MIDI class function driver using
CONFIG_USB_CONFIGFS_F_MIDI.
Change-Id: I969ae3a99f2987abeca51823fe346f383cb23b55
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
In order to support higher bit rate like 384Khz
higher buffer sizes are required. Hence change
the max limit from 2 * PAGE_SIZE to 24 * PAGE_SIZE.
Change-Id: I9d57f3011fee086b2d54997d85bc9a37ccc07e4a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
The clock gating work has been moved to using hrtimer based
delay guaranteeing hibern8 to finish before we gate the clocks.
This allows us to gate the ref clock along with other ufs clocks
during aggressive clock gating. The latencies involved in voting/
devoting ref clk is acceptable and helps in saving more power.
Change-Id: I92b86fad25041311d00fbfc58b3d5620ade7ee38
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
The PA_Hibern8Time and PA_TActivate time in most devices are well
under 1ms combined thereby the overall hibern8 enter/exit latencies
are under 1ms as well. Entering hibern8 as soon as possible saves
power consumption, hence reduce the auto hibern8 timeout to 1ms.
Change-Id: If58590fc397ec8eb88906c103247bb48710805db
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Clock gating work must be executed only after auto hibern8
timeout has expired in the hardware or after aggressive
hibern8 on idle software timeout. Using jiffy based low
resolution delayed work is not reliable to guarantee this,
hence use a high resolution timer to make sure we schedule
the gate work precisely more than hibern8 timeout.
Change-Id: Ib2119bc58a1cdb7a5908db1b8775cb4f13db18f7
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
In some cases with IPA3 received qmi_service_exit from
modem but still uses invalid qmi-handler to send QMI-msg
to modem which leads to crash. The fix is to add the
check before sending QMI msg to modem.
Change-Id: Iac48747a188b234cc640285e181984985fc3c012
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
The measured battery current can be read from the parallel slave
charger. Expose this through the CURRENT_NOW property in the parallel
power supply.
Change-Id: Icd717147adc018a076a72bd5ce1a52a765f34f7b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Use the PARALLEL_DISABLE property to enable or disable parallel
charging. When writing to this property the effect is immediate.
Change-Id: Ia9cd9d352935be19e9383141cf279a34796ff642
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
The PARALLEL_DISABLE property is used to enable or disable parallel
charging.
Change-Id: If2845efa942abc5849890b45de525222632b32db
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
When parallel charging is enabled the charge current read by the fuel
gauage will not include the parallel charging current. Enable VCHG to
report the parallel charge current.
Change-Id: I6090d4163e760dc02a7dce45f1246bb59b2e195b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Add a new property to read the lpg-lut size for the
qpnp-pwm device tree nodes for pmicobalt.
CRs-Fixed: 1060896
Change-Id: I93bf7c406471b5877008e2000260adfa62336b93
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Add support to read the qcom,lpg-lut-size property from
the device tree instead of using the value returned by the
of_get_address API.
CRs-Fixed: 1060896
Change-Id: I0f84baf29a141719dd44dabb67e9d599d9646d49
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Move 720p@240fps usecase to the correct voltage corner.
While at is, fix other voltage corners.
CRs-Fixed: 1076216
Change-Id: Id9a3487c8469fe7921148ac8c8cc16afa66593d5
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Yue Cao claims that current host rate limiting of challenge ACKS
(RFC 5961) could leak enough information to allow a patient attacker
to hijack TCP sessions. He will soon provide details in an academic
paper.
This patch increases the default limit from 100 to 1000, and adds
some randomization so that the attacker can no longer hijack
sessions without spending a considerable amount of probes.
Based on initial analysis and patch from Linus.
Note that we also have per socket rate limiting, so it is tempting
to remove the host limit in the future.
v2: randomize the count of challenge acks per second, not the period.
Fixes: 282f23c6ee ("tcp: implement RFC 5961 3.2")
Reported-by: Yue Cao <ycao009@ucr.edu>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: I1bf93d033e788c37899837f0c9e930bc4e20aa4c
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: 75ff39ccc1bd5d3c455b6822ab09e533c551f758
[d-cagle@codeaurora.org: Resolve trivial merge conflict]
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
Move target specific initialization and setup into target
specific init functions. The change is required to port the GPU
driver to support future generation GPUs.
CRs-Fixed: 1053516
Change-Id: I808e247669fab61a6a64131858fe2f9e19754242
Signed-off-by: George Shen <sqiao@codeaurora.org>
This fixes CVE-2016-0758.
In the ASN.1 decoder, when the length field of an ASN.1 value is extracted,
it isn't validated against the remaining amount of data before being added
to the cursor. With a sufficiently large size indicated, the check:
datalen - dp < 2
may then fail due to integer overflow.
Fix this by checking the length indicated against the amount of remaining
data in both places a definite length is determined.
Whilst we're at it, make the following changes:
(1) Check the maximum size of extended length does not exceed the capacity
of the variable it's being stored in (len) rather than the type that
variable is assumed to be (size_t).
(2) Compare the EOC tag to the symbolic constant ASN1_EOC rather than the
integer 0.
(3) To reduce confusion, move the initialisation of len outside of:
for (len = 0; n > 0; n--) {
since it doesn't have anything to do with the loop counter n.
Change-Id: I13b15885df9dc0c17a3e1670ae9606bf3ce4ba05
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: Peter Jones <pjones@redhat.com>
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: 23c8a812dc3c621009e4f0e5342aa4e2ede1ceaa
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
USB GSI endpoint related TRB ring is allocated with EP_OPS. Each USB
endpoint related TRB ring is zeroed with usb_ep_disable() operation. Hence
if USB composition switch or USB cable disconnect is performed when there
is active data transfer with USB GSI endpoint, it results into IPA GSI
accessing 0x0 address causing bus errors. Hence fix this issue by not
memsetting TRB ring with zero for USB GSI endpoint.
CRs-Fixed: 1072782
Change-Id: I92df514e31d5168b8dff4b249f4d8fd3e70c0118
Signed-off-by: Mayank Rana <mrana@codeaurora.org>