platform/kernel/linux-rpi3.git
4 years agotools arch x86: Sync asm/cpufeatures.h with the with the kernel 87/221387/1
Arnaldo Carvalho de Melo [Tue, 21 May 2019 19:39:42 +0000 (16:39 -0300)]
tools arch x86: Sync asm/cpufeatures.h with the with the kernel

To pick up the changes in:

  ed5194c2732c ("x86/speculation/mds: Add basic bug infrastructure for MDS")
  e261f209c366 ("x86/speculation/mds: Add BUG_MSBDS_ONLY")

That don't affect anything in tools/.

This silences this perf build warning:

  Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
  diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/n/tip-jp1afecx3ql1jkuirpgkqfad@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: cherry-pick mainline commit b979540a7522 for perf build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I879810548387101141f808c1c972f691c906c3e1

4 years agotools arch x86: Sync asm/cpufeatures.h with the kernel sources 86/221386/1
Arnaldo Carvalho de Melo [Mon, 25 Mar 2019 17:25:33 +0000 (14:25 -0300)]
tools arch x86: Sync asm/cpufeatures.h with the kernel sources

To get the changes from:

  52f64909409c ("x86: Add TSX Force Abort CPUID/MSR")

That don't cause any changes in the generated perf binaries.

And silence this perf build warning:

  Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
  diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/n/tip-zv8kw8vnb1zppflncpwfsv2w@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: cherry-pick mainline commit 949af89af02c for perf build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I2c20b8306175133ee6445c69fb68575f2c4eba9e

4 years agoperf help: Remove needless use of strncpy() 59/220759/1
Arnaldo Carvalho de Melo [Thu, 6 Dec 2018 14:20:21 +0000 (11:20 -0300)]
perf help: Remove needless use of strncpy()

commit b6313899f4ed2e76b8375cf8069556f5b94fbff0 upstream.

Since we make sure the destination buffer has at least strlen(orig) + 1,
no need to do a strncpy(dest, orig, strlen(orig)), just use strcpy(dest,
orig).

This silences this gcc 8.2 warning on Alpine Linux:

  In function 'add_man_viewer',
      inlined from 'perf_help_config' at builtin-help.c:284:3:
  builtin-help.c:192:2: error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
    strncpy((*p)->name, name, len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  builtin-help.c: In function 'perf_help_config':
  builtin-help.c:187:15: note: length computed here
    size_t len = strlen(name);
                 ^~~~~~~~~~~~

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: 078006012401 ("perf_counter tools: add in basic glue from Git")
Link: https://lkml.kernel.org/n/tip-2f69l7drca427ob4km8i7kvo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: cherry-pick stable linux-4.19.y commit 0bf5d53b53c8 for gcc 9 build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Id98e9ca8049d25d658b4f012fdede1b8745d875f

4 years agoperf header: Fix unchecked usage of strncpy() 58/220758/1
Arnaldo Carvalho de Melo [Thu, 6 Dec 2018 14:09:46 +0000 (11:09 -0300)]
perf header: Fix unchecked usage of strncpy()

commit 5192bde7d98c99f2cd80225649e3c2e7493722f7 upstream.

The strncpy() function may leave the destination string buffer
unterminated, better use strlcpy() that we have a __weak fallback
implementation for systems without it.

This fixes this warning on an Alpine Linux Edge system with gcc 8.2:

  util/header.c: In function 'perf_event__synthesize_event_update_name':
  util/header.c:3625:2: error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
    strncpy(ev->data, evsel->name, len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  util/header.c:3618:15: note: length computed here
    size_t len = strlen(evsel->name);
                 ^~~~~~~~~~~~~~~~~~~

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: a6e5281780d1 ("perf tools: Add event_update event unit type")
Link: https://lkml.kernel.org/n/tip-wycz66iy8dl2z3yifgqf894p@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: cherry-pick stable linux-4.19.y commit 6461a4543b34 for gcc 9 build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I2d116858af62b094276699c790b7ba090fe28513

4 years agoARM: configs: tizen_bcm2709_defconfig: Enable tethering config options 47/220647/2 accepted/tizen/unified/20191223.060218 submit/tizen/20191223.042319
Seung-Woo Kim [Fri, 20 Dec 2019 06:30:13 +0000 (15:30 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable tethering config options

In Tizen 6.0, network framework supports tethering from ethernet
to wifi. Enable required config options for tethering.

Ref: section 6-3 of https://git.tizen.org/cgit/platform/kernel/tizen-kernel-configs/tree/tizen/tizen_defconfig?h=tizen

Change-Id: I162d6eb89ce8d25d85659c7a2e632dbfe0909dc6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: Enable tethering config options 46/220646/2
Seung-Woo Kim [Fri, 20 Dec 2019 06:35:37 +0000 (15:35 +0900)]
ARM64: tizen_bcmrpi3_defconfig: Enable tethering config options

In Tizen 6.0, network framework supports tethering from ethernet
to wifi. Enable required config options for tethering.

Ref: section 6-3 of https://git.tizen.org/cgit/platform/kernel/tizen-kernel-configs/tree/tizen/tizen_defconfig?h=tizen

Change-Id: I5df076b13a3c02257f34e368dd99aaca2b3370b0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Create boot tarball for the lthor flashing 89/220389/2 accepted/tizen/unified/20191218.120926 submit/tizen/20191218.054411
Junghoon Kim [Wed, 18 Dec 2019 01:53:42 +0000 (10:53 +0900)]
scripts: mkbootimg_rpi3.sh: Create boot tarball for the lthor flashing

This patch is to create boot tarball for the lthor flashing. With this,
we can easily test the rpi3 kernel in the local environment.

Change-Id: Ib7bca6f7fa2c5a51be097042eda80c2d9297d4ac
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: Enable btrfs filesystem 88/220388/1
Junghoon Kim [Wed, 18 Dec 2019 01:43:55 +0000 (10:43 +0900)]
ARM64: tizen_bcmrpi3_defconfig: Enable btrfs filesystem

Enable btrfs filesystem to use it as the rootfs mount for the
RPI4 64-bit architecture.

Change-Id: Ieb13f6970dbfd8c947c501cfad1c7eb9ee4d2799
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: Enable btrfs filesystem 87/220387/1
Junghoon Kim [Wed, 18 Dec 2019 01:26:43 +0000 (10:26 +0900)]
ARM: tizen_bcm2709_defconfig: Enable btrfs filesystem

Enable btrfs filesystem to use it as the rootfs mount for the
RPI3 32-bit architecture.

Change-Id: I697e2fc9cbf4c8f69a94afed0e2244c3b8accad7
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agodrm/vc4: fix wrong filp usage in gem_info debugfs node 02/219502/1 accepted/tizen/unified/20191206.053944 submit/tizen/20191206.014708
Seung-Woo Kim [Thu, 5 Dec 2019 07:52:29 +0000 (16:52 +0900)]
drm/vc4: fix wrong filp usage in gem_info debugfs node

After the mainline commit 65101d8c9108 ("drm/vc4: Expose
performance counters to userspace") applied in v4.17, vc4 drm
has its own filp. So gem_info filp usage is not proper. Fix the
wrong filp usage in gem_info debugfs node.

Change-Id: I526a888f345378d66f96e9d6cd3d19527e56ddaa
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Enable HID_MULTITOUCH 98/218198/1 accepted/tizen/unified/20191122.053238 submit/tizen/20191122.013016
Seung-Woo Kim [Wed, 20 Nov 2019 08:12:09 +0000 (17:12 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable HID_MULTITOUCH

To support usb multi-touch device, enable CONFIG_HID_MULTITOUCH.

Change-Id: I2423291698367912d379787e94dc75659f414a31
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable HID_MULTITOUCH 97/218197/1
Seung-Woo Kim [Wed, 20 Nov 2019 08:10:48 +0000 (17:10 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable HID_MULTITOUCH

To support usb multi-touch device, enable CONFIG_HID_MULTITOUCH.

Change-Id: I36f625f08b980e7a5ed8cea9e061ba0d4d56d39b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agopackaging: replace -fPIC to -fPIE for perf executable 57/216757/1 accepted/tizen/unified/20191104.010844 submit/tizen/20191101.065513
Seung-Woo Kim [Fri, 1 Nov 2019 01:17:15 +0000 (10:17 +0900)]
packaging: replace -fPIC to -fPIE for perf executable

Build issue for perf is from linking perf executable, so pie flag
is suitabler than pic flag. Replace -fPIC to -fPIE for perf
executable and add the flag to missed perf install part.

Change-Id: I0911dc2b3ffc54724927846f5e081da9d7335c39
Suggested-by: Dongkyun Son <dongkyun.s@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agopackaging: Add -fPIC flag to perf build cflags 27/216727/1 submit/tizen/20191031.023155
Seung-Woo Kim [Thu, 31 Oct 2019 03:42:36 +0000 (12:42 +0900)]
packaging: Add -fPIC flag to perf build cflags

Current Tizen build environment requires -fPIC with relocation
and without the flag, there is build error for perf like below:

  armv7l
    armv7l-tizen-linux-gnueabi/bin/ld: perf-in.o: relocation R_ARM_MOVW_ABS_NC against `__stack_chk_guard' can not be used when making a shared object; recompile with -fPIC

  aarch64
    aarch64-tizen-linux-gnu/bin/ld: perf-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC
    aarch64-tizen-linux-gnu/bin/ld: perf-in.o(.text+0x4): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'

Add -fPIC flag to perf build.

Change-Id: Icca04801698c88180dfde493a3ef92e5c01612b5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Enable EXTCON for hdmi 76/215576/2 submit/tizen/20191031.012258
Seung-Woo Kim [Fri, 11 Oct 2019 04:47:47 +0000 (13:47 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable EXTCON for hdmi

Enable CONFIG_EXTCON for hdmi connection uevent.

Change-Id: I62cc93151019209661600af2a63f087d25112490
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable EXTCON for hdmi 75/215575/2
Seung-Woo Kim [Fri, 11 Oct 2019 04:46:34 +0000 (13:46 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable EXTCON for hdmi

Enable CONFIG_EXTCON for hdmi connection uevent.

Change-Id: I912b8dddf6e2fbc13075ad6f83fbd06ea55f6d90
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agodrm/vc4: add extcon hdmi connection uevent 74/215574/2
Seung-Woo Kim [Fri, 11 Oct 2019 04:43:33 +0000 (13:43 +0900)]
drm/vc4: add extcon hdmi connection uevent

Add extcon hdmi connection and disconnection ueven when extcon
module is enabled.

The vc4 hdmi detection is done by polling way, so extcon uevent
for connection is a bit slow after changing real hdmi cable state.

Change-Id: I962f7a39b7a3344f9793e436ef28c36b123571a8
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Fix to install modules on non sudo status 94/214494/1
Seung-Woo Kim [Mon, 23 Sep 2019 09:00:11 +0000 (18:00 +0900)]
scripts: mkbootimg_rpi3.sh: Fix to install modules on non sudo status

On sudo status, env variable is possible not to be preserved and
it causes failure on modules_install. So fix to install modules on
non sudo status and then move the directories and files to image
area.

Change-Id: Ie1e0ff695caf79b1ce3d25be8a70151a30fbfee0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agobuild: script: combine rpi3 32bit and 64bit scripts 68/213968/1
Jaehoon Chung [Tue, 17 Sep 2019 05:10:17 +0000 (14:10 +0900)]
build: script: combine rpi3 32bit and 64bit scripts

Combine rpi3 32bit and 64bit scripts.
e.g) build-rpi3.sh arm / arm64

Change-Id: I224b7944362245685e4557f2fe41837c3a685ad8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agopackaging: add perf package for perf tool and traceevent plugins 87/213387/1
Seung-Woo Kim [Thu, 5 Sep 2019 00:14:46 +0000 (09:14 +0900)]
packaging: add perf package for perf tool and traceevent plugins

Add perf package for perf tool and its traceevent plugins.

Note: they are built from below directories.
- perf: tools/perf
- traceevent plugins: tools/lib/traceevent

Change-Id: I418c52ec7dffb6b98e72e402af5bf67c3d837ba7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_LIMIT 34/212934/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.004342 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062007 accepted/tizen/unified/20190902.055156 submit/tizen/20190829.050836 submit/tizen/20190902.001331 submit/tizen_5.5/20191031.000010 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
Seung-Woo Kim [Wed, 28 Aug 2019 08:13:22 +0000 (17:13 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_LIMIT

From Tizen network security, NETFILTER_XT_MATCH_LIMIT is used for
ipv6. So enable NETFILTER_XT_MATCH_LIMIT config option.

Change-Id: Ife75ee0a766c64fb38a0e261f41a45678ab49bd4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_LIMIT 33/212933/1
Seung-Woo Kim [Wed, 28 Aug 2019 08:11:56 +0000 (17:11 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_LIMIT

From Tizen network security, NETFILTER_XT_MATCH_LIMIT is used for
ipv6. So enable NETFILTER_XT_MATCH_LIMIT config option.

Change-Id: Ieeba2c67481e299fb3d91ee4378f8b2a2baffc7b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_OWNER config 36/211236/1 accepted/tizen/unified/20190802.111347 submit/tizen/20190801.074211
Seung-Woo Kim [Wed, 31 Jul 2019 08:01:06 +0000 (17:01 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_OWNER config

Enable the NETFILTER_XT_MATCH_OWNER config option to use xt_owner
supplementary groups.

Change-Id: I10a8277e2c42cae8cd02eb892e2dac5124681a71
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_OWNER config 35/211235/1
Seung-Woo Kim [Wed, 31 Jul 2019 08:00:32 +0000 (17:00 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_OWNER config

Enable the NETFILTER_XT_MATCH_OWNER config option to use xt_owner
supplementary groups.

Change-Id: I1baf6d78dc7c28d7235bb1cce9b6132b2fba7148
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM: dts: bcm2710-rpi-3-b-plus: remove duplicated uart0_ctsrts_gpio30 node 40/210840/1
Seung-Woo Kim [Thu, 25 Jul 2019 07:34:59 +0000 (16:34 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: remove duplicated uart0_ctsrts_gpio30 node

The commit ad3b011329c8 ("ARM: dts: bcm2710-rpi-3-b-plus: Add cts
pin setting for bluetooth uart") introduced duplicated dt node,
uart0_ctsrts_gpio30, because it is already defined in bcm283x.dtsi.
Remove the duplicated dt node.

Change-Id: Ic9a39b88662198f30b585f48f2f0e896b62ab8f3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoRevert "Bluetooth : Set the optimized operation speed for BCM Uart" 05/210805/1
DoHyun Pyun [Thu, 25 Jul 2019 03:45:21 +0000 (12:45 +0900)]
Revert "Bluetooth : Set the optimized operation speed for BCM Uart"

This reverts commit 5cc55680fc9fe5bfd7590905c56e55dfa4aefbd5.

The proper operation speed of the RPI3 Uart is different for
each HW revision. So we will set the value in the user space's
firmware downloading tool after checking the HW version.

Change-Id: I95d80f3598015a27fbdc1375b3d6c089be67b8d0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoARM: dts: bcm2710-rpi-3-b-plus: Add cts pin setting for bluetooth uart 44/210644/1 accepted/tizen/unified/20190725.042923 submit/tizen/20190724.095831
Seung-Woo Kim [Tue, 23 Jul 2019 09:31:05 +0000 (18:31 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: Add cts pin setting for bluetooth uart

There is missing cts pin for uart0 used by bluetooth. Add the cts
pin setting as like bcm2837-rpi-3-b-plus.

Change-Id: Iefdf80ec0d523b85f7a6e579e1544a67b9139212
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agotty: amba-pl011: Make TX optimisation conditional 98/210598/1
Phil Elwell [Thu, 11 Jul 2019 12:13:39 +0000 (13:13 +0100)]
tty: amba-pl011: Make TX optimisation conditional

pl011_tx_chars takes a "from_irq" parameter to reduce the number of
register accesses. When from_irq is true the function assumes that the
FIFO is half empty and writes up to half a FIFO's worth of bytes
without polling the FIFO status register, the reasoning being that
the function is being called as a result of the TX interrupt being
raised. This logic would work were it not for the fact that
pl011_rx_chars, called from pl011_int before pl011_tx_chars, releases
the spinlock before calling tty_flip_buffer_push.

A user thread writing to the UART claims the spinlock and ultimately
calls pl011_tx_chars with from_irq set to false. This reverts to the
older logic that polls the FIFO status register before sending every
byte. If this happen on an SMP system during the section of the IRQ
handler where the spinlock has been released, then by the time the TX
interrupt handler is called, the FIFO may already be full, and any
further writes are likely to be lost.

The fix involves adding a per-port flag that is true iff running from
within the interrupt handler and the spinlock has not yet been released.
This flag is then used as the value for the from_irq parameter of
pl011_tx_chars, causing polling to be used in the unsafe case.

Fixes: 1e84d22322ce ("serial/amba-pl011: Refactor and simplify TX FIFO handling")

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
[sw0312.kim: cherry-pick from rpi-4.19.y to reduce bt reassembly issue]
Reference: https://github.com/raspberrypi/firmware/issues/1150
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia56b9fffb8805ca02d04ed9c9b810988e1b56642

5 years agopackaging: Add _wrong_version_format_terminate_build macro 93/210593/1
Seung-Woo Kim [Tue, 23 Jul 2019 01:28:13 +0000 (10:28 +0900)]
packaging: Add _wrong_version_format_terminate_build macro

Newer version of rpmbuild rejects double dash, "-", in version.
To support the style, add _worng_version_format_terminate_build
as 0.

Change-Id: Ieed243fb4ad7059b83d5328f0c38b15e4c74dc0e
Reference: https://github.com/rpm-software-management/rpm/commit/5e94633660d0e2b97
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agopackaging: remove macro in package Name 27/210527/1 accepted/tizen/unified/20190723.053546 submit/tizen/20190722.101515
Seung-Woo Kim [Mon, 22 Jul 2019 06:00:12 +0000 (15:00 +0900)]
packaging: remove macro in package Name

Some build system cannot recognize macro in package Name. Remove
the macro by replacing with same string.

Change-Id: I34c853be82476db3b32d49aadc77809a2f493436
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoBluetooth : Set the optimized operation speed for BCM Uart 48/210248/2 accepted/tizen/unified/20190717.220500 submit/tizen/20190717.094806
DoHyun Pyun [Wed, 17 Jul 2019 07:08:46 +0000 (16:08 +0900)]
Bluetooth : Set the optimized operation speed for BCM Uart

When ACL data packet transfers via Uart on the RPI3 board,
the packet loss or overflow issue is occured. After adjusting
the operation speed value, we can reduce these problems.

Change-Id: Id072102e173e0338c4ae3cb7a1a541fbf7f8066e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoBluetooth: fix wrong indent in __hci_req_update_{scan/adv}_rsp_data() 07/210207/1
Seung-Woo Kim [Wed, 17 Jul 2019 01:56:16 +0000 (10:56 +0900)]
Bluetooth: fix wrong indent in __hci_req_update_{scan/adv}_rsp_data()

The commit ac160e08af69 ("Bluetooth: Add Advertising Packet
Configuration") introduces wrong indent which causes build warning for
gcc-7. Fix the wrong indent.

Change-Id: Ia0bde8a8f9660ccf8fa312e3c3ec6c8cb76863f1
Fixes: ac160e08af69 ("Bluetooth: Add Advertising Packet Configuration")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable BCM Uart protocol 75/209875/1 accepted/tizen/unified/20190714.220712 submit/tizen/20190712.062853
Seung-Woo Kim [Fri, 12 Jul 2019 05:13:37 +0000 (14:13 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable BCM Uart protocol

RPI3 target uses the BCM BT chip of the Uart type. To avoid the
reassembly failed problem, we should enable BCM Uart protocol
and need to use it. It is enabled with CONFIG_SERIAL_DEV_BUS.

Change-Id: I960ddb6f6b3cb64261ebcdc750771943697948ae
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM: configs: tizen_bcm2709_defconfig: Enable BCM Uart protocol 74/209874/2
DoHyun Pyun [Fri, 12 Jul 2019 04:45:10 +0000 (13:45 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable BCM Uart protocol

RPI3 target uses the BCM BT chip of the Uart type. To avoid the
reassembly failed problem, we should enable BCM Uart protocol
and need to use it. It is enabled with CONFIG_SERIAL_DEV_BUS.

Change-Id: I3cf97b032e1ce92898f2329fae3691d4d5870726
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
[sw0312.kim: adjust defconfig with savedefconfig and update commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM: dts: bcm27xx: Fix to of_graph from bridge node for touchscreen 87/209287/4 accepted/tizen/unified/20190708.114147 submit/tizen/20190708.061153
Hoegeun Kwon [Thu, 4 Jul 2019 08:42:52 +0000 (17:42 +0900)]
ARM: dts: bcm27xx: Fix to of_graph from bridge node for touchscreen

Beginning with kernel v4.15, the i2c management of the touchscreen
panel driver has been changed to use of_graph from brdge node. So
change to of_graph and remove the unnecessary nodes.

Change-Id: I6ef786ed472ef2b350eb8683568d0ecb407182c0
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agodrm/vc4: Fix change to find_panel in the dsi_attach func 86/209286/4
Hoegeun Kwon [Thu, 4 Jul 2019 08:40:58 +0000 (17:40 +0900)]
drm/vc4: Fix change to find_panel in the dsi_attach func

There is a problem that crtc does not bind while continuously
requesting EPROBE_DEFER, if dsi_bind does not successfully bind.
We need to change the part of find_panel in bind to dsi_attach
function.

Change-Id: Ifce518f047f496079eb8fbe112dabbd9bc7488bb
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agonetfilter: xt_owner: bail out with EINVAL in case of unsupported flags 07/209207/3 accepted/tizen/unified/20190705.110629 submit/tizen/20190705.061049
Pablo Neira Ayuso [Fri, 7 Jun 2019 14:37:30 +0000 (16:37 +0200)]
netfilter: xt_owner: bail out with EINVAL in case of unsupported flags

Reject flags that are not supported with EINVAL.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[sw0312.kim: backport from mainline to apply supplementary groups on netfilter]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Id867ca48290a8e6627ad7d1b1f159669fc5c44a1

5 years agonetfilter: xt_owner: Add supplementary groups option 06/209206/3
Lukasz Pawelczyk [Fri, 10 May 2019 11:46:22 +0000 (13:46 +0200)]
netfilter: xt_owner: Add supplementary groups option

The XT_OWNER_SUPPL_GROUPS flag causes GIDs specified with XT_OWNER_GID
to be also checked in the supplementary groups of a process.

f_cred->group_info cannot be modified during its lifetime and f_cred
holds a reference to it so it's safe to use.

Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@samsung.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[sw0312.kim: backport from mainline to apply supplementary groups on netfilter]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I7a21fc112cde77ae708b84d4b48c8aee339a7642

5 years agoARM: configs: tizen_bcm2709_defconfig: Remove unused modules 62/209162/4
Hoegeun Kwon [Wed, 3 Jul 2019 05:16:46 +0000 (14:16 +0900)]
ARM: configs: tizen_bcm2709_defconfig:  Remove unused modules

Remove unused modules from the backlight.

Change-Id: I1fd5267690efd4a7bd5137b64dfadba5111dc2dd
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoBluetooth: Fix the potential crash issue 55/209255/2
DoHyun Pyun [Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)]
Bluetooth: Fix the potential crash issue

There is a logic error in the event function. We should
check the callback function's parameter before calling.

Change-Id: I06a4a8c50317e5ec4ae8fe35e4b788105e090196
Fixes: bde01c80dd51 ("Bluetooth: Set le data length command and event")
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agotools: Add build script for ARM kernel of rpi3 61/209161/3
Hoegeun Kwon [Wed, 3 Jul 2019 05:18:50 +0000 (14:18 +0900)]
tools: Add build script for ARM kernel of rpi3

Add build script for ARM kernel of rpi3.

Change-Id: I35a7dd2148350f775d3d96a478dac66190079d68
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoRevert "ARM: dts: bcm27xx: Fix to of_graph from bridge node for panel" 13/209213/1 accepted/tizen/unified/20190704.040506 submit/tizen/20190703.103920
Hoegeun Kwon [Wed, 3 Jul 2019 10:22:11 +0000 (19:22 +0900)]
Revert "ARM: dts: bcm27xx: Fix to of_graph from bridge node for panel"

This reverts commit b2f6ad21a0bab8e59926666f717a4f6c53066a2d.

There is a problem with the hdmi and revert the patch.

Change-Id: Ia69d10c067ff69d192162b0598f43028c4a05f9b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoARM: dts: bcm27xx: Fix to of_graph from bridge node for panel 61/209061/1 accepted/tizen/unified/20190702.114802 submit/tizen/20190702.072015
Hoegeun Kwon [Tue, 2 Jul 2019 02:08:59 +0000 (11:08 +0900)]
ARM: dts: bcm27xx: Fix to of_graph from bridge node for panel

Beginning with kernel v4.15, the i2c management of the touchscreen
panel driver has been changed to use of_graph from brdge node. So
change to of_graph and remove the unnecessary nodes.

Change-Id: Ibf131aebd964360874ebe2f3792f0912f6e8988d
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoBluetooth: Set le data length command and event 38/208738/2 accepted/tizen/unified/20190701.111735 submit/tizen/20190701.041905
Sudha Bheemanna [Fri, 16 Sep 2016 10:07:22 +0000 (15:37 +0530)]
Bluetooth: Set le data length command and event

Sets the data length for the le data packet with in the
advised limits. MGMT command and event are added to handle
the setting of data length.

Change-Id: Ia5c2167743cc9a29190e5631973e9d52d41caa1d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Read host suggested default le data length 94/208694/3
Sudha Bheemanna [Fri, 16 Sep 2016 07:24:31 +0000 (12:54 +0530)]
Bluetooth: Read host suggested default le data length

This patch adds MGMT command and code for supporting reading
default le data length value set at the controller.

Change-Id: I2b81982dc26ed5af4a8f8a3d3913db5d64625260
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Write host suggested default le data length 93/208693/3
Sudha Bheemanna [Fri, 16 Sep 2016 06:39:57 +0000 (12:09 +0530)]
Bluetooth: Write host suggested default le data length

This patch adds MGMT command and code for supporting write
default le data length command to the controller.

Change-Id: I3d2c8b622b7913a3ed542342e3ba8076c30dc279
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Read LE Max data length command 92/208692/3
Sudha Bheemanna [Fri, 16 Sep 2016 05:08:30 +0000 (10:38 +0530)]
Bluetooth: Read LE Max data length command

This patch adds the MGMT command and code to support reading
the maximum data length supported command for LE.

Change-Id: I4dc0041f2070de2ccb6a4164c8823612863c941e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Fix IPSP connection callback event issue. 89/208689/3
h.sandeep [Fri, 16 Sep 2016 09:15:24 +0000 (14:45 +0530)]
Bluetooth: Fix IPSP connection callback event issue.

This patch fixes the IPSP connection callback event issue
between kernel and bluez layer.

Change-Id: Ia4d625aa8a6dbc9da89a7d9f12308af9c90d0594
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: IPSP Connect/Disconnect apis 88/208688/3
Sudha Bheemanna [Thu, 15 Sep 2016 07:23:03 +0000 (12:53 +0530)]
Bluetooth: IPSP Connect/Disconnect apis

This patch adds MGMT code to support IPSP connect and
disconnect apis and handle connection state changed event.

Change-Id: I1c41ec4f38cf9a108e443def3bc23c1b964e2985
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add support to enable/disable IPSP 87/208687/3
Sudha Bheemanna [Thu, 15 Sep 2016 04:42:09 +0000 (10:12 +0530)]
Bluetooth: Add support to enable/disable IPSP

This patch supports MGMT commands and code to enable or disable
IPSP 6LowPan features.

Change-Id: Ia866ecfa517c7d7e4320f17d94d80dfeb9261e59
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Fix issue in the Set LE privacy function. 86/208686/3
Sudha Bheemanna [Thu, 8 Sep 2016 10:51:01 +0000 (16:21 +0530)]
Bluetooth: Fix issue in the Set LE privacy function.

This patch fixes not to check the hdev power before setting
LE Privacy.

Change-Id: I344ea13b1d90527e3e7554ec616cdc640b85159c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Store the key if auth type is P192 85/208685/3
Sudha Bheemanna [Mon, 12 Sep 2016 07:16:44 +0000 (12:46 +0530)]
Bluetooth: Store the key if auth type is P192

This patch allows to store the key after authentication
if auth type is "HCI_LK_AUTH_COMBINATION_P192"

Change-Id: Ie44dbe7dfec361edab61aceaf9b2ca4057b88fa5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Cancel the Sniff timer 84/208684/3
Sudha Bheemanna [Thu, 8 Sep 2016 11:31:39 +0000 (17:01 +0530)]
Bluetooth: Cancel the Sniff timer

This patch adds code to cancel the sniff timer.

Change-Id: I756d3b08acf6462044d1fb204064fe12ce1238c1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Enable sniff mode for incoming connection 83/208683/3
Sudha Bheemanna [Thu, 8 Sep 2016 11:10:50 +0000 (16:40 +0530)]
Bluetooth: Enable sniff mode for incoming connection

Add provision to set the link poilicy to enable sniff mode
for incoming connection.

Change-Id: Ifff9e9f0838f26a6c96d81f4cbaae43429aa231f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Modify fast connectable type. 82/208682/3
Sudha Bheemanna [Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)]
Bluetooth: Modify fast connectable type.

This patch modifies the fast connectable function
to just set the type.

Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Send Authentication Request command on pairing failure 81/208681/3
Sudha Bheemanna [Thu, 8 Sep 2016 09:41:28 +0000 (15:11 +0530)]
Bluetooth: Send Authentication Request command on pairing failure

This patch allows to send HCI_OP_AUTH_REQUESTED command
to the remote device if pairing failure happens because
of pin or key missing error.

Change-Id: I9c28394dc06b22fd5fe9e58ac0b7d728c086bde4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Enable inquiry and page scan 80/208680/3
Sudha Bheemanna [Thu, 8 Sep 2016 09:24:54 +0000 (14:54 +0530)]
Bluetooth: Enable inquiry and page scan

This patch enables the inquiry and page scan after ACL
disconnection with one device and if there are no other
devices connected.

Change-Id: Ifb28be7d23f237d35112b2e0739ed55169baacf7
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Change authentication requirement. 79/208679/3
Sudha Bheemanna [Thu, 8 Sep 2016 07:34:11 +0000 (13:04 +0530)]
Bluetooth: Change authentication requirement.

This patch updates the authentication requirement to general
MITM if local and remote device IO capabilities are not
NO_INPUT_NO_OUTPUT.

Change-Id: Ie3955c3f8287418e74af20d40bdf30d0f1963e31
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Set link Supervision timeout for a connection 78/208678/3
Sudha Bheemanna [Thu, 8 Sep 2016 06:54:43 +0000 (12:24 +0530)]
Bluetooth: Set link Supervision timeout for a connection

This patch allows to set the supervision timeout for a connection
if the device role is master.

Change-Id: I7897167ec07803f3059f2ab4d3314b0b7a951533
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Set filter policy for LE connection 77/208677/3
Sudha Bheemanna [Thu, 8 Sep 2016 05:51:06 +0000 (11:21 +0530)]
Bluetooth: Set filter policy for LE connection

This patch sets the filter policy to a default value 0x01 during
LE auto connection if the destination address is not set. And it
updates the destination address once the LE connection complete
event is recieved during LE auto connection. And for it checks
valid destination address before cancelling LE connection when
connection timeout occurs.

Change-Id: I9877556c0b0ab4826f5f4934ead4d85b7837036d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[squash patches, LE connection policy, set dest address and check dest address before cancelling connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Get Advertising TX power 76/208676/3
Sudha Bheemanna [Wed, 7 Sep 2016 09:52:08 +0000 (15:22 +0530)]
Bluetooth: Get Advertising TX power

This patch adds MGMT command to read the advertising TX power.

Change-Id: Ide9e5d332f034928d2eae2cbd68a025a0d42be1b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Set the link for SCO connection 75/208675/3
Sudha Bheemanna [Thu, 8 Sep 2016 07:07:45 +0000 (12:37 +0530)]
Bluetooth: Set the link for SCO connection

This patch sets the link policy for SCO/eSCO connection.

Change-Id: I71caef5a3887f73a10329b6886c8cf52b80e8d37
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[add link policy setting in sco connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add MGMT command to set SCO settings 74/208674/3
Sudha Bheemanna [Tue, 6 Sep 2016 11:08:36 +0000 (16:38 +0530)]
Bluetooth: Add MGMT command to set SCO settings

Added code to set sco settings.

Change-Id: I37aa572436241b06e00d1e9e75964aac747eeba5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[remove sco link policy part]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add multiple LE advertise state change event 73/208673/3
Sudha Bheemanna [Thu, 8 Sep 2016 05:01:17 +0000 (10:31 +0530)]
Bluetooth: Add multiple LE advertise state change event

This patch adds code for providing multiple LE advertisement state
changed event to upper layer.

Change-Id: I58fb8044e74402376ec30b121081edce7c8709d1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci_vendor_mutli_adv_state_change_evt and remove hci event structure from mgmt]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add LE device found MGMT event 72/208672/3
Sudha Bheemanna [Thu, 8 Sep 2016 04:40:03 +0000 (10:10 +0530)]
Bluetooth: Add LE device found MGMT event

This patch adds new MGMT event for LE device discovery and allows
the handling of all advertisement packets in platform.

Change-Id: I1927acb75eff0b60a5899898c6d7a000e1a108ef
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: fix vendor ext rssi link alert event 71/208671/3
Seung-Woo Kim [Wed, 28 Sep 2016 16:59:05 +0000 (01:59 +0900)]
Bluetooth: fix vendor ext rssi link alert event

This patch fixes style for rssi link alert event from vendor
specific group ext.

Change-Id: I0e7003e417c5f5a590cce8264caccad515dd3c10
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add H/W TX timeout error MGMT event 70/208670/3
Sudha Bheemanna [Wed, 7 Sep 2016 11:17:58 +0000 (16:47 +0530)]
Bluetooth: Add H/W TX timeout error MGMT event

This patch sends the H/W TX timeout error MGMT event if HCI command
timeout occurs after sending HCI commands.

Change-Id: I5eb593f2fe4d31c404dd94ef582790e47d03b10a
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add hardware error MGMT event 69/208669/3
Sudha Bheemanna [Wed, 7 Sep 2016 10:12:22 +0000 (15:42 +0530)]
Bluetooth: Add hardware error MGMT event

Add code to handle hardware error MGMT event.

Change-Id: I5875ea2aeae7aba95c1f8e15b456704dc6bcdee4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add LE vendor specific event handler 68/208668/3
Sudha Bheemanna [Thu, 8 Sep 2016 05:26:15 +0000 (10:56 +0530)]
Bluetooth: Add LE vendor specific event handler

This patch adds the vendor specific LE meta event handler.
It handles the vendor specific handles like,
LE_MULTI_ADV_STATE_CHANGE_SUB_EVENT, LE_RSSI_LINK_ALERT.

Change-Id: I1f344a31e36f9c7442fe0bd8b598e67d9f5fb9bf
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci vendor speicif group event function]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add set LE scan parameter feature 67/208667/3
Sudha Bheemanna [Thu, 25 Aug 2016 07:16:07 +0000 (12:46 +0530)]
Bluetooth: Add set LE scan parameter feature

Added new MGMT command to set LE scan parameters

Change-Id: I5ea660f97e93dfcc72273971ad0250e7f582f718
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Set Manufacturer data feature 66/208666/3
Sudha Bheemanna [Thu, 25 Aug 2016 06:43:09 +0000 (12:13 +0530)]
Bluetooth: Set Manufacturer data feature

Added new MGMT command to set the manufacturer data
in the BR/EDR packet.

Change-Id: Ie08062f4cad0c676deab94fd95fdc1a8c5602135
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add LE connection parameter update procedure 65/208665/3
Sudha Bheemanna [Thu, 25 Aug 2016 06:28:22 +0000 (11:58 +0530)]
Bluetooth: Add LE connection parameter update procedure

Added new MGMT command to update LE connection parameters

Change-Id: I6ae16513437cd42d40e75958aa8415baa1cbedbb
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add stop LE auto connection feature 64/208664/3
Sudha Bheemanna [Thu, 25 Aug 2016 06:11:34 +0000 (11:41 +0530)]
Bluetooth: Add stop LE auto connection feature

Added new MGMT command to disable LE auto connection.

Change-Id: I1f5f61b83227501ad54019008b405fd47fd722a3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add BT LE discovery feature 63/208663/3
Sudha Bheemanna [Thu, 25 Aug 2016 05:53:02 +0000 (11:23 +0530)]
Bluetooth: Add BT LE discovery feature

This patch adds new MGMT commands to start LE discovery separately
and handles LE discovery state.

Change-Id: I85958b8c2b5c7e28f57c69e86037ab1e61a75db0
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Update device name on remote_name_event 62/208662/3
Sudha Bheemanna [Thu, 25 Aug 2016 04:47:19 +0000 (10:17 +0530)]
Bluetooth: Update device name on remote_name_event

This patch updates the device name on receiving the HCI event
remote_name_event during connection establishment.

Change-Id: I9a217e6760b1803a70af201a3f6903e722079749
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add RSSI Monitor feature 61/208661/3
Sudha Bheemanna [Wed, 24 Aug 2016 11:51:15 +0000 (17:21 +0530)]
Bluetooth: Add RSSI Monitor feature

Added feature support for monitoring the RSSI value.
Commands and events for enabling, disabling and setting
rssi threshold values are added.

Change-Id: I850643a9228afc017e54217a11826b9c6a68a96b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Functions to modify WhiteList 60/208660/3
Sudha Bheemanna [Wed, 24 Aug 2016 09:32:56 +0000 (15:02 +0530)]
Bluetooth: Functions to modify WhiteList

This patch provides MGMT commands to manage the white
list which includes, adding, removing and clearing the
devices from white list.

Change-Id: If71107129d3a090ae81448a8122b76accd4f5522
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add Advertising Packet Configuration 59/208659/3
Sudha Bheemanna [Wed, 24 Aug 2016 06:47:16 +0000 (12:17 +0530)]
Bluetooth: Add Advertising Packet Configuration

This patch provides new MGMT commands to configure
the advertising data and scan response data packets for
LE peripheral devices.

Change-Id: I914d13795f4fb58e5f2e1cadb55086f4bcbc82df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE. 58/208658/3
h.sandeep [Thu, 1 Sep 2016 06:30:57 +0000 (12:00 +0530)]
Bluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.

Added the basic skeleton code for tizen_mgmt_handlers and
mgmt_tizen.h header file.

Change-Id: I8f3100aa79e6673840ba561f0a9c50238ca0880b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoBluetooth: Add "TIZEN_BT" flag 57/208657/3
Sudha Bheemanna [Tue, 23 Aug 2016 11:37:10 +0000 (17:07 +0530)]
Bluetooth: Add "TIZEN_BT" flag

Added the tizen specific flag for use in adding tizen patches.

Change-Id: Ia391644fddbe600c8d845e0bf0808f587aa73e0c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agopackaging: change dependent openssl version to 1.1 08/208208/1 accepted/tizen/unified/20190624.075234 submit/tizen/20190624.002507
Seung-Woo Kim [Thu, 20 Jun 2019 00:28:54 +0000 (09:28 +0900)]
packaging: change dependent openssl version to 1.1

OpenSSL 1.0.2 will be deprecated from tizen, so migration to newer
version is required. Change dependent openssl version to 1.1.

Change-Id: Icba12412b200cd1d5a8407dc4440b23d49bdde65
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi3: boot: Update the boot firmwares with the latest version 08/207708/2 accepted/tizen/unified/20190614.051536 submit/tizen/20190614.014912
Junghoon Kim [Tue, 11 Jun 2019 08:20:08 +0000 (17:20 +0900)]
rpi3: boot: Update the boot firmwares with the latest version

Update the boot firmwares with the latest version from the vendor git
repo.

The commit base is e289f6a59ff2 ("kernel: Bump to 4.19.46").

Change-Id: If425a4d64a145a79ce505b13bb1a5a23495654fb
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agoARM: configs: tizen_bcm2709_defconfig: Sync with savedefconfig 86/207686/1
Junghoon Kim [Tue, 11 Jun 2019 04:10:53 +0000 (13:10 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Sync with savedefconfig

Sync the tizen_bcm2709_defconfig with savedefconfig.

Change-Id: I8dbc7b6a42a43530de8818620816659387ecf11a
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agoARM64: configs: tizen_bcmrpi3_defconfig: Sync with savedefconfig 85/207685/1
Junghoon Kim [Tue, 11 Jun 2019 01:47:56 +0000 (10:47 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Sync with savedefconfig

Sync the tizen_bcmrpi3_defconfig with savedefconfig.

Change-Id: I12389974ccade867052f68f1b839d85e7214981c
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agopackaging: Change the kernel version of the spec file 84/207684/1
Junghoon Kim [Tue, 11 Jun 2019 01:34:10 +0000 (10:34 +0900)]
packaging: Change the kernel version of the spec file

This patch changes the kernel version of the spec file to 4.19.49.

Change-Id: Idc451fa46d64c0a968b4f146b8ff127245c3564e
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agoinclude/linux/notifier.h: SRCU: fix ctags
Sam Protsenko [Fri, 2 Nov 2018 22:47:53 +0000 (15:47 -0700)]
include/linux/notifier.h: SRCU: fix ctags

ctags indexing ("make tags" command) throws this warning:

    ctags: Warning: include/linux/notifier.h:125:
    null expansion of name pattern "\1"

This is the result of DEFINE_PER_CPU() macro expansion.  Fix that by
getting rid of line break.

Similar fix was already done in commit 25528213fe9f ("tags: Fix
DEFINE_PER_CPU expansions"), but this one probably wasn't noticed.

Link: http://lkml.kernel.org/r/20181030202808.28027-1-semen.protsenko@linaro.org
Fixes: 9c80172b902d ("kernel/SRCU: provide a static initializer")
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[sw0312.kim: cherry-pick mainline commit 94e297c50b52 to remove warning from "make tags" command]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ie71be48606c666e11d3675f9c525c3417343e846

5 years agoARM: tizen_bcm2709_defconfig: enable ZC3XX camera module
Seung-Woo Kim [Thu, 23 May 2019 01:55:50 +0000 (10:55 +0900)]
ARM: tizen_bcm2709_defconfig: enable ZC3XX camera module

Currently, in test environment, usb camera 046d:08af is used and
it requires CONFIG_USB_GSPCA_ZC3XX. Enable ZC3XX camera module.

Change-Id: I2999e9b2288e0bd0bc74cab14a06bb785e8ea410
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoARM64: config: tizen_bcmrpi3: enable ZC3XX camera module
Seung-Woo Kim [Thu, 23 May 2019 02:01:50 +0000 (11:01 +0900)]
ARM64: config: tizen_bcmrpi3: enable ZC3XX camera module

Currently, in test environment, usb camera 046d:08af is used and
it requires CONFIG_USB_GSPCA_ZC3XX. Enable ZC3XX camera module.

Change-Id: I840a774c718bc5ffd0898fd29140c3f52ed7757c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoscripts: mkbootimg_rpi3.sh: Support 32bit boot image.
Hoegeun Kwon [Thu, 16 May 2019 05:32:14 +0000 (14:32 +0900)]
scripts: mkbootimg_rpi3.sh: Support 32bit boot image.

Support 32bit boot image, and add rule that check the bit between 32
and 64bit as '.config' file.

Change-Id: I247583233eb617c3f7f1695d8c5060d27934bcdd
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoARM: tizen_bcm2709_defconfig: Disable unused modules and helper
Hoegeun Kwon [Wed, 15 May 2019 10:11:16 +0000 (19:11 +0900)]
ARM: tizen_bcm2709_defconfig: Disable unused modules and helper

Disable unused modules and helper related display.

Change-Id: I130a9d803384b338350eab9b6e7cbc42111de5b9
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoARM: tizen_bcm2709_defconfig: Disable FB_BCM2708
Hoegeun Kwon [Wed, 15 May 2019 10:10:45 +0000 (19:10 +0900)]
ARM: tizen_bcm2709_defconfig: Disable FB_BCM2708

There is a crash between bcm2708_fb and drm_fb driver during kernel
booting, and logo image is broken. Disable CONFIG_FB_BCM2708 because
it uses the default fb and vc4-drm driver.

Change-Id: Ic5c533dbb884c5b2c3e87d9a131f3ce499d86279
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 years agoASoC: ac108: Fixes kernel bug message when starting to capture
Jaechul Lee [Thu, 9 May 2019 00:26:53 +0000 (09:26 +0900)]
ASoC: ac108: Fixes kernel bug message when starting to capture

The code in the trigger function is moved to prepare function that is
called right before trigger function. clock operation would be ran by
parepare function without disabling preemption.

BUG: scheduling while atomic: arecord/1244/0x00000004
Preemption disabled at:
[<ffffff80087c4a08>] snd_pcm_stream_lock+0x30/0x68

Call trace:
[<ffffff800808b250>] dump_backtrace+0x0/0x270
[<ffffff800808b4e4>] show_stack+0x24/0x30
[<ffffff8008ae87c4>] dump_stack+0xac/0xe8
[<ffffff80080cc814>] __schedule_bug+0x7c/0xd8
[<ffffff8008afb558>] __schedule+0x718/0x880
[<ffffff8008afb6fc>] schedule+0x3c/0xa0
[<ffffff8008aff028>] schedule_timeout+0x190/0x408
[<ffffff8008afc4b8>] wait_for_common+0xa8/0x150
[<ffffff8008afc5c4>] wait_for_completion_timeout+0x2c/0x38
[<ffffff80086e5a0c>] bcm2835_i2c_xfer+0x16c/0x400
[<ffffff80086deedc>] __i2c_transfer+0x12c/0x570
[<ffffff80086df38c>] i2c_transfer+0x6c/0xc0
[<ffffff80086df430>] i2c_master_send+0x50/0x68
[<ffffff8008584454>] regmap_i2c_write+0x34/0x70
[<ffffff800857fe34>] _regmap_raw_write+0x7cc/0x7e0
[<ffffff800857feb8>] _regmap_bus_raw_write+0x70/0x88
[<ffffff800857ea48>] _regmap_write+0x70/0x160
[<ffffff800857ec10>] _regmap_update_bits+0xd8/0xf8
[<ffffff80085800b0>] regmap_update_bits_base+0x68/0x98
[<ffffff8008805838>] ac10x_update_bits+0x48/0x88
[<ffffff8008805c00>] ac108_trigger+0x118/0x130

Change-Id: I73ef21247e1dfbd0acd3272b6a73311377eb000d
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
5 years agorpi3: Update the boot firmwares with the latest version
Junghoon Kim [Wed, 8 May 2019 04:33:34 +0000 (13:33 +0900)]
rpi3: Update the boot firmwares with the latest version

This patch updates the boot firmwares with the latest version from the
vendor git repo.

The git base is the commit 3dde44c13f17 ("firmware: arm_loader: Further
conditionals for passing in a frame buffer").

Change-Id: Ia487afd7c2aa448f27e5f386be1b4584ee657144
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agopackaging: Define necessary packages for building 4.19 kernel
Junghoon Kim [Wed, 8 May 2019 01:55:14 +0000 (10:55 +0900)]
packaging: Define necessary packages for building 4.19 kernel

This patch defines necessary packages for building 4.19 kernel including
bison, flex, and libopenssl-devel.

Change-Id: Iccd5bfdbd313599a9fb1dd86c0db264a1114bb41
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agopackaging: Change the kernel version of the spec files
Junghoon Kim [Tue, 7 May 2019 10:52:49 +0000 (19:52 +0900)]
packaging: Change the kernel version of the spec files

This patch changes the kernel version of the spec files to 4.19.40.

Change-Id: I85d3ae4fd90431431aedb5968a53f6c08ea6f3f9
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agomisc: tizen-inform-reboot: Use ksys_open() and ksys_close() wrappers
Junghoon Kim [Mon, 29 Apr 2019 22:43:58 +0000 (07:43 +0900)]
misc: tizen-inform-reboot: Use ksys_open() and ksys_close() wrappers

Using ksys_open() and ksys_close() wrappers allow us to avoid the
in-kernel calls to the sys_open() and sys_close() syscalls.

Change-Id: Iea33654daef917f88cede31675c66e8b5becad77
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
5 years agoARM64: dts: bcm2710-rpi-3-b: Changes GPIO26 to GPIO25 for play/pause
Jaechul Lee [Mon, 29 Apr 2019 02:13:30 +0000 (11:13 +0900)]
ARM64: dts: bcm2710-rpi-3-b: Changes GPIO26 to GPIO25 for play/pause

GPIO26 is already used by PIO TCT and key names are changed clearly.

Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Change-Id: Idd74bc7e4f5c26b9d4aee89d62b8f3810ee7736f

5 years agoARM: config: tizen_bcm2709: update defconfig file
Jaehoon Chung [Wed, 24 Apr 2019 05:34:11 +0000 (14:34 +0900)]
ARM: config: tizen_bcm2709: update defconfig file

Update defconfig file.
- Disable unnecessary module build configurations.
- Change some configuration to builtin from module

Change-Id: I0979a9cb3238b23101ad46e602fa5eb8101100bd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoARM: tizen_bcm2709_defconfig: Removes unnecessary modules
Jaechul Lee [Wed, 24 Apr 2019 05:15:39 +0000 (14:15 +0900)]
ARM: tizen_bcm2709_defconfig: Removes unnecessary modules

removed unnecessary modules

Change-Id: I0c34919620e9673b00a2e73071ba0da670878ab0
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
5 years agoASoC: ac108: Adds default 4channels mic volume
Jaechul Lee [Thu, 18 Apr 2019 06:02:37 +0000 (15:02 +0900)]
ASoC: ac108: Adds default 4channels mic volume

It needs to be set default volume to max value.

Change-Id: Icdcf255e3a57bb5dffb225116723a3d9a4cf11fe
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>