## Merge of peiker-mdm9607-bl2_0_1 into peiker-mdm9607-bl2_0_1-dev
## 2019-01-15@peiker/ol


# The following command has been used to generate the list of affected commits

  git log --first-parent UMC-9628P_v01.08..origin/peiker-mdm9607-bl2_0_1-dev



# List of affected Commits

commit b2c7c2c55d8c1d0c36462a82ed4b37343053fdcf (NOT USED)
-> we do not apply the original and the revert commit with respect to
-> a clean history
Author: Otto Linnemann <otto.linnemann@valeo.com>
Date:   Fri Dec 7 16:52:19 2018 +0100

    Revert "recude AFE pl.back and capture sizes"

    This reverts commit  6e3bd4d36d262adbe169070b9606b66807d98691 since it
    breaks  required  audio functionality  on  Linux  user land.  Required
    adapations for the VoIP stack will be done within userspace instead.

    [artf344243]

    Change-Id: Ica9b94975bec9c43acb64b87a365957902144259
    Signed-off-by: Otto Linnemann <otto.linnemann@valeo.com>


commit f4beb5dc35effd992be0299cc0052d089748dd74 (DONE)
Author: Saravanan Sekar <saravanan.sekar1@valeo.com>
Date:   Fri Nov 16 12:15:12 2018 +0000

    ARM: dts: msm: configure WDT interrupt settings

    The interrupt handler wdog_bark_handler not triggered incase of WDT
    bark or bite time expires and system reset is issued. As per Qcom
    suggestion the interrupt flag are modified.

    [artf268915]

    Change-Id: Ic6306cf90af46a9934f6e0e7dfca548d34f09057
    Signed-off-by: Saravanan Sekar <saravanan.sekar1@valeo.com>


commit f63c06dc6e029b4bdb89709bfee4afd1f240fb0d (NOT USED)
-> we use instead just the original commit and omit the double revert commits
Author: Saravanan Sekar <saravanan.sekar1@valeo.com>
Date:   Fri Nov 16 13:48:09 2018 +0100

    Revert "Revert "[artf268915] watchdog: mdm watchdog timer control from daemons""

    This reverts commit ced548582b74b901a723baf7502c5a3bd0c5de8c.

    Change-Id: I1eb683a585d54c7130e7d0f17a7d27e6561ac334


commit 50ceb8f6f3447e7890696b0d39fab0fdda7b698d
-> use merged commit 8440f0472014627a5da23ca300da59cab93c3948 instead
Merge: 8c2ae98c3a2d 8440f0472014
Author: Peter THECKANATH-OUSEPH <peter.theckanath-ouseph@valeo.com>
Date:   Fri Nov 2 09:56:10 2018 +0100

    Merge "[artf318498] Fix for stalling ifconfig down" into peiker-mdm9607-bl2_0_1-dev


commit 8c2ae98c3a2d4894b7b2d970fcca4a787376f0ac (NOT USED)
-> do not touch internal audio buffer sizes anymore!
-> The MDM9x28 DSP cannot handle this. Instead usage of 20ms frame sizes
-> needs to be addressed in user space (VoIP stack)
Merge: ced548582b74 6e3bd4d36d26
Author: Peter THECKANATH-OUSEPH <peter.theckanath-ouseph@valeo.com>
Date:   Mon Oct 22 10:31:49 2018 +0200

    Merge "recude min AFE playback and capture buffer sizes" into peiker-mdm9607-bl2_0_1-dev


commit ced548582b74b901a723baf7502c5a3bd0c5de8 (NOT USED)
-> since this revert commit is reverted again!
Author: Peter THECKANATH-OUSEPH <peter.theckanath-ouseph@valeo.com>
Date:   Fri Oct 5 14:26:44 2018 +0200

    Revert "[artf268915] watchdog: mdm watchdog timer control from daemons"

    This reverts commit 9e705722e311763cb4c39030509afd840e274c17.

    Change-Id: I90cbe5bc82d0fa3111e047a8a7bcf0d31a93e7dd


commit 9e705722e311763cb4c39030509afd840e274c17 (DONE)
Author: Saravanan Sekar <saravanan.sekar1@valeo.com>
Date:   Mon Oct 1 10:13:00 2018 +0000

    [artf268915] watchdog: mdm watchdog timer control from daemons

    Allows watchdog control application to access as /dev/watchdog device.
    Watchdog timer bite & bark time can be configured and timer count
    can be reset from user space.

    The is already done in 9x40 and ported to 9x07 with common rename
    and some cleanup related to devmem free

    Change-Id: Ic9c675f54f5f6e27e647dc43a5e3bcc8e05ed81e
    Signed-off-by: Saravanan Sekar <saravanan.sekar1@valeo.com>


commit 4521da87ef240e4b0433208fddd330b7d9fcfb5b (DONE)
-> use merged commit 340d974a46e1219105b9f59a5cfd61ec18108577 instead
Merge: f4c88405dbe0 340d974a46e1
Author: Peter THECKANATH-OUSEPH <peter.theckanath-ouseph@valeo.com>
Date:   Tue Oct 2 16:31:49 2018 +0200

    Merge "[artf269004] Enable kernel wakelocks" into peiker-mdm9607-bl2_0_1-dev


commit f4c88405dbe0a5c64cd437b4e12662148c5f622c (NOT USED)
-> we have received already a newer version from WNC
Author: Saravanan Sekar <saravanan.sekar1@valeo.com>
Date:   Tue Apr 17 11:56:16 2018 -0700

    iio: imu: Add support for invensense sensor driver

    Invensense gyro & accel sensor driver support is added for
    dead-reckoning feature.

    Pick-up from vendor repository and squashed to single commit
    https://invensense.githost.io/invn-public/MA_Lite/linux_driver

    [artf283867]

    Signed-off-by: Saravanan Sekar <saravanan.sekar1@valeo.com>

    MA Lite 8.1.4a

    Module:
    * 8.1.1-simple-test1a

    Supported Kernel Versions:
    * 3.18
    * 4.4
    * 4.9

    Supported TDK-InvenSense Sensors:
    * IAM20680

    MA Lite 8.1.5

    Module:
    * 8.1.2-simple-test1

    Supported Kernel Versions:
    * 3.18
    * 4.4
    * 4.9

    Supported TDK-InvenSense Sensors:
    * IAM20680

    Change log:
    * Timer based batch mode support for IAM20680

    Change-Id: I10f41764cb7e47116d10f2432c9abea8abd1cf7e


commit 0eeb2a22e266475eed8c94f73d300cac5cc5232e (DONE)
Author: Viktor Babrian <viktor.babrian.ext@valeo.com>
Date:   Thu Sep 6 14:14:00 2018 +0200

    [artf272102] PHY register access in MDM9607 emac driver

    Userspace tool phytool cannot access Ethernet PHY registers due to a silly bug in the mdm9607 emac driver.
    Also, extended register access is needed to be added because of the link status poll that happens frequently
    enough to interrupt userspace attempts to perform an extended register access.

    Change-Id: I000300a6b9f43fe5998b3ea9537cbd98940f9c85



commit 71adbb5ff1de6af088ca44d03e7f4d57970e3369 (DONE)
-> used merge commit 879a15ff71178da1d60f468608c199a4d375d386
Merge: d75d1604e029 879a15ff7117
Author: Peter THECKANATH-OUSEPH <peter.theckanath-ouseph@valeo.com>
Date:   Fri Sep 21 10:45:32 2018 +0200

    Merge "ARM: dts: msm: Add SPI2 device node on BLSP3" into peiker-mdm9607-bl2_0_1-dev



commit d75d1604e029ed730341b7e57ceb22f084034919 (DONE)
Author: Viktor Babrian <viktor.babrian.ext@valeo.com>
Date:   Thu Sep 6 13:22:35 2018 +0200

    [artf269006] Drivers for Ethernet PHY DP83TC81 from TI

    Latest kernel drivers for DP83TC81 received from TI and ported to mdm9607 kernel 3.18.x.

    Change-Id: I00f9110ec212a6a1724a96b3789f276dc54f17f5



commit b9e0adb3fbcdab8499bdd71b3d49cbbde1795f0e (DONE)
-> use merged commit 650913625743e2f788cf30a67962bf9956f6e37d
Merge: 70d5d022a5a7 650913625743
Author: Peter Teckanath Ouseph <peter.theckanath-ouseph@valeo.com>
Date:   Thu Aug 16 08:36:03 2018 +0200

    Merge "pcm format adjustment for USB voice audio" into peiker-mdm9607-bl2_0_1-dev



commit 70d5d022a5a7cd43556aa816d5a6658decd44297 (DONE)
Author: Otto Linnemann <otto.linnemann@valeo.com>
Date:   Tue Jul 31 16:29:09 2018 +0200

    workaround to fix an audio codec debugging issue

    The driver for  the Ti TLV320AIC3104 audio codec  provides a debugging
    function which dumps  all codec registers. This does  not work anymore
    with MDM9607  SoC due  to some weird  bugs (I2C  tranmission timeouts)
    which are addressed by reading smaller chunks of data.

    The given commit was provided by Viktor Babrian, many thanks for it.

    CQCM00110607

    Change-Id: I0809a014451a02ac3818a337d9e8a209352363cd
    Signed-off-by: Otto Linnemann <otto.linnemann@valeo.com>



commit 24adf5a8af59d5d2ab421e24138e3f397c3c9c29 (DONE)
Author: leqiao peng <leqiao.peng@valeo.com>
Date:   Fri Aug 3 13:59:25 2018 +0200

    CQCM00109090 Add Busybox "SMACK support" and fix ubifs assertion

    1) Add smack support for the Busybox ver.1.23.2

    2) Fix the "assert in ubifs_xattr_set" when the SMACK is enabled.
    More detail in post: https://lkml.org/lkml/2018/2/13/732

    Change-Id: Ieec9f246df8c5d10a6372ea9f9bd201441590574
    Signed-off-by: leqiao peng <leqiao.peng@valeo.com>



commit 75b1f553214a58f25bef397c75c2e9bf63f7d6a6 (DONE)
Author: leqiao peng <leqiao.peng@valeo.com>
Date:   Mon May 28 10:50:02 2018 +0200

    CQCM00107549 NAD SW Security: restrict the unprivileged access to syslog

    security flaw reported by Security Test
    related Artifact artf200831

    when restriction applied, non-privileged account has no
    permission to /var/log/syslog, kern.log and dmesg on device.

    Change-Id: I2878bb5725ead3f9c98db1440b9ace7ef2ac5958
    Signed-off-by: leqiao peng <leqiao.peng@valeo.com>



commit 157c8118f4311b67bda996508e7539c618002766 (DONE)
Author: Otto Linnemann <otto.linnemann@valeo.com>
Date:   Tue Nov 14 17:50:59 2017 +0100

    fix of broken AIC3104 codec driver from WNC

    and again setup AIC3104 instead  of temporarily used 3106 driver which
    has been obviously overwritten by defective previous merge operation.

    topic: CQCM00102179

    CQCM00099320

    Change-Id: I61dcb8bea39970b76b02995f63f17aa45833b3f8
    Signed-off-by: Otto Linnemann <otto.linnemann@valeo.com>


commit 40ad62d42b5fc851860d71566e75c6cbc2d4d8c5 (DONE)
Author: leqiao peng <leqiao.peng@valeo.com>
Date:   Mon Dec 18 12:53:43 2017 +0100

    CQCM00101803 NAD SW Kernel Security: Enable Enforced Module Signing

    when enabled, the Linux kernel will only load those kernel modules that are signed with the proper key.

    This is hardening of the system by disallowing unsigned kernel modules, or kernel modules signed with the wrong key, to be loaded.

    Changes at:
    1) update "mdm9607_defconfig" by enabling related kernel options
    2) use the prepared key and cert (instead of those from dynamic generation)

    Effects:
    All "*.ko" files at device path /lib/module/ should be signed.
    If not properly signed, load command insmod will return error.
    e.g. "insmod wlan.ko"
    insmod: can't insert '/lib/modules/3.18.48/extra/wlan.ko': Required key not available

    Change-Id: I057262942454ef4265de6b3e34f6e35612b5e1e4
    Signed-off-by: leqiao peng <leqiao.peng@valeo.com>



commit 57867cd50aebe1aaf4e5c0e9b21ca99be7f0c81a (DONE)
Author: Laurent Gauthier <laurent.gauthier.ext@valeo.com>
Date:   Thu Jan 11 12:29:39 2018 +0100

    CQCM00102379 Enable string filtering for iptables

    This feature is required to implement a blacklist. An example
    of use is:

      iptables -t raw -A PREROUTING -p udp --dport 53 -m string --hex-string ***** -j DROP"

    This drops the matching DNS packets which query for a
    black-listed domain name.

    Change-Id: Id06115b9d857a69157a62c89d1bbf9068823b254
    Signed-off-by: Laurent Gauthier <laurent.gauthier.ext@valeo.com>


commit af88df7e9a73909680f91d39e9146ad3be45294e (DONE)
Author: Kishore Jagadeesha <kishore.jagadeesha@valeo.com>
Date:   Mon Dec 4 13:52:42 2017 +0100

    CQCM00100642 trustzone kernel driver


    Change-Id: I58eb4727112869d6895975ab4d8c2921c71bef22


commit 7d9ddd7d331d0b3ca07a49d8ed6d8c72739c3a0c  (DONE)
Author: Laurent Gauthier <laurent.gauthier.ext@valeo.com>
Date:   Wed Nov 22 18:05:06 2017 +0100

    CQCM00099796 UART3 prevents the Linux system suspend on the TBOX

    Disable the UART3 in order to ensure that the system can be suspended.

    This issue occured on about 30% of the TBOX power-cycles, and when it
    was present the system was unable to suspend itself, which results in
    a much higher than usual power consumption.

    The root-cause is that the device tree should not enable UART3 at all
    as it does not appear to be connected, resulting in unpredictable behavior.

    Change-Id: Ifbd296b4dc78de10a3d9ef50e3e7988b7d0bc3e0
    Signed-off-by: Laurent Gauthier <laurent.gauthier.ext@valeo.com>


commit 40619c3d0fd07209d2b014fbe35cf65e7a6fcad1 (INTENTIONALLY NOT USED)
-> we do not want to change the sample rate with respect to high definition
-> voice quality of proxied voice data.
Author: Laurent Gauthier <laurent.gauthier.ext@valeo.com>
Date:   Thu Sep 14 14:00:51 2017 +0200

    CQCM00095850 Enable USB audio on UMC-9628P_v01.04

    This set of changes fixes an issue with the initialization of the
    audio sub-system, and changes the default sampling rate of the
    USB audio gadget from 16 kHz to 8 kHz.

    Change-Id: Ie7affc2787fb54360125613f35a12de69b3ef473
    Signed-off-by: Laurent Gauthier <laurent.gauthier.ext@valeo.com>


commit cd5c5cafd2add9c7916e534de7f3f247a36ead3e (DONE)
Author: Bernd Westermann <bernd.westermann.ext@valeo.com>
Date:   Sun Aug 20 19:01:56 2017 +0200

    CQCM00094351: enable posix mqueue support in kernel

    Change-Id: I1b9a0d3733231168d9d44967a37d4ef63fc58345
