summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-07-05Merge "resolve DNS Packet drop issue" into tizen_studio_2.0_p4.0tizen_studio_2.0_p4.0Changseok Oh2-2/+2
2018-07-04Version UpRahul Dadhich2-1/+4
Change-Id: I7e5a21620c520505a442be5e069783184a1cb19f Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
2018-07-04resolve DNS Packet drop issueRahul Dadhich2-2/+2
Change-Id: Id2c19096cd568216c54134a1b9c4ac2e16cdfa43 Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
2017-09-01Merge branch 'tizen' into tizen_studio_2.0_p4.0TizenStudio_2.0_p4.0tizen_studio_p4.0tizen_studio_2.0_p5.0opensrc_p4.0Jinhyung Jo15-2/+1909
Change-Id: I7bd09765b3da441a96827b67f122fe025479da47 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-09-01package: update version (4.4.35.4)Jinhyung Jo2-1/+4
Change-Id: I207fc6c65d8174c7c75cc933d2ef45e2429bac00 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-08-25VIGS: Add DRM_IOCTL_SURFACE_CONVERTVladislav Andresov6-1/+222
This ioctl adds support of hardware surface convertion. Only y-invert operation has been implemented so far. Change-Id: Icf06dc84fd995eaa43c7990778d67e558c2c0274 Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com> Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
2017-08-25VIGS: add DRM_IOCTL_SDP_GA_EXEC command supportVasiliy Ulyanov8-0/+1681
The ioctl is needed to make ga_copy. Formely it was issued from userspace using an execbuffer but currently it is done directly via drmIoctl. Aditionally it was necessary to import a device-specific header. It has been placed to include/uapi/drm/sdp_drm.h like in device kernel. The header needs to be updated whenever the original one is changed. Change-Id: I6d78309f38b971d5d7014b1972ff2316eee27003 Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com> (cherry picked from commit 48b87ee9c5f0b41e96ab0b70c00a88adc8c26648)
2017-08-03Fix kernel devel builtsubmit/tizen/20170816.130518Alexander Aksenov1-0/+1
Kernel devel package is used now to build modules out-of-tree Change-Id: I70164fae7971270b5a38274a636c67dffa627162 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2017-06-28Merge 'spin' into tizenSeokYeon Hwang5-6/+34
2017-05-12Merge branch 'develop' into tizen_studio_p4.0Jinhyung Jo3-1/+10
Change-Id: Ie8774442fbf7b4f7c61963598728e00a9445e7a9 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-05-12package: update version (4.4.35.3)Jinhyung Jo2-1/+4
Change-Id: I041f3d12de44ef1ec1b09b4d6f79820ab749cd97 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-05-10VIGS: unbind ttm bo before swapoutVasiliy Ulyanov1-0/+6
TTM BUGs if ttm_tt appears bound while being swaped out. Certain precautions are now taken in swap_notify ttm_bo_driver callback. Change-Id: I0c461e6d179af4b424125c1615f95738ac429d47 Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com> (cherry picked from commit c1d6b3e728436abaf4833abc66be8bf0f299506f)
2017-03-07Merge branch 'develop' into tizen_studio_p4.0Jinhyung Jo4-8/+17
Change-Id: I34cfc0edd13fc6833562b23514e184663bc0b47f Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-03-06package: update version (4.4.35.2)Jinhyung Jo2-1/+4
Change-Id: Ie3c42ae3bc429fbae9b9110614fc2ab4e9827b86 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-03-06package: unify packaging regardless of versionJinhyung Jo2-4/+17
Change-Id: I37dd6d858e260252df75ad47a8d27d82c4f252c7 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-01-31Provide a common name for all Tizen kernelsMyungJoo Ham1-0/+1
So that TIC (Tizen Image Creator) can recognize whether a kernel is included in the target image or not. Change-Id: Iae8808cb5af7369c5ac175963bd067de1f3281a0 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2017-01-18package: update version (4.4.35.1)Jinhyung Choi2-1/+4
Change-Id: Ibf5773a18a748fb20fec6380d410ea9a1545ba56 Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
2017-01-18charset: enable CONFIG_NLS_ISO8859_1Jinhyung Choi1-1/+1
Change-Id: I88a106e8623871b047a3d9f698cd455ae831e364 Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
2016-12-19Merge branch 'develop' into tizen_studio_1.1_p3.0SeokYeon Hwang1480-9946/+17848
Change-Id: Ie0fa51ac5909498500911acc083d0afa4b3f4336 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2016-12-19package: update version (4.4.35.0)SeokYeon Hwang1-1/+1
Change-Id: I085f19efe9e2006b5439e1eba289c472a46404c5 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2016-12-19package: update kernel spec version (4.4.35)tizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170308.100420submit/tizen_4.0/20170828.100009submit/tizen_4.0/20170811.094300submit/tizen_3.0/20161219.112256submit/tizen_3.0.m2/20170104.093756submit/tizen/20161219.112149accepted/tizen/wearable/20161219.230202accepted/tizen/unified/20170309.040900accepted/tizen/tv/20161219.230145accepted/tizen/mobile/20161219.230126accepted/tizen/ivi/20161219.230221accepted/tizen/common/20161219.152320accepted/tizen/4.0/unified/20170828.223137accepted/tizen/4.0/unified/20170816.011109accepted/tizen/3.0/wearable/20161221.005409accepted/tizen/3.0/tv/20161221.005354accepted/tizen/3.0/mobile/20161221.005512accepted/tizen/3.0/ivi/20161221.005421accepted/tizen/3.0/common/20161221.180702accepted/tizen/3.0.m2/wearable/20170105.030247accepted/tizen/3.0.m2/tv/20170105.030040accepted/tizen/3.0.m2/mobile/20170105.025847tizen_4.0tizen_3.0_tvtizen_3.0.m2tizen_3.0accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobileSooyoung Ha1-1/+1
Change-Id: Ic40a9e3c4d760ba12eab2c4779951aa627cadd13 Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2016-12-19x86: tizen_emul_defconfig: enable SECURITY_SMACK_APPEND_SIGNALSRafal Krypa1-1/+3
Change-Id: I83941f8fa05825550a0cd6d8c6aee4c6a8f88082 Signed-off-by: Rafal Krypa <r.krypa@samsung.com> Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2016-12-18Smack: Signal delivery as an append operationCasey Schaufler3-7/+29
Under a strict subject/object security policy delivering a signal or delivering network IPC could be considered either a write or an append operation. The original choice to make both write operations leads to an issue where IPC delivery is desired under policy, but delivery of signals is not. This patch provides the option of making signal delivery an append operation, allowing Smack rules that deny signal delivery while allowing IPC. This was requested for Tizen. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> [mainline backport of commit c60b906673eebb4f65840fa9dc204401caf276ea] Change-Id: If4d2821381ebb608cefe66e4ca5c3c8469f846f8
2016-12-18x86: tizen_emul_defconfig: enable IPV6_NF_*jooseong lee1-2/+21
Enable ipv6table options for network access control - IP6_NF_FILTER : Add filter table - IP6_NF_TARGET_REJECT : Reject some packets following their permission. - IP6_NF_MANGLE : Add mangle table - IP6_NF_RAW : Add raw table Change-Id: Ie79ba766188f6113c96dcd5d59cde32e190cf28e Signed-off-by: jooseong lee <jooseong.lee@samsung.com> Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2016-12-18Smack: fix d_instantiate logic for sockfs and pipefsRafal Krypa1-7/+7
Since 4b936885a (v2.6.32) all inodes on sockfs and pipefs are disconnected. It caused filesystem specific code in smack_d_instantiate to be skipped, because all inodes on those pseudo filesystems were treated as root inodes. As a result all sockfs inodes had the Smack label set to floor. In most cases access checks for sockets use socket_smack data so the inode label is not important. But there are special cases that were broken. One example would be calling fcntl with F_SETOWN command on a socket fd. Now smack_d_instantiate expects all pipefs and sockfs inodes to be disconnected and has the logic in appropriate place. Change-Id: Id83469a5b29958ec7c2cdbafbbaa014276126351 Signed-off-by: Rafal Krypa <r.krypa@samsung.com> Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
2016-12-05Merge branch 'tizen' into tizen_linux_4.4.35SeokYeon Hwang49-725/+10198
2016-12-02Merge branch 'develop' into tizen_studio_1.1_p3.0SeokYeon Hwang9-57/+605
Change-Id: I4a31d1372c87199241b2d0d273934ca70a45e0da Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2016-12-02package: update version (4.4.16)spinMinkee Lee2-1/+7
Change-Id: Iafd015fd9969e30affb44fa4d8dacd4e886523ec Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
2016-12-01sensor: add pedometer sensor device driverSooyoung Ha4-47/+575
Change-Id: I284ce56f2f8ea9aa8909e6a3c1be044518f115b9 Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com> (cherry picked from commit 66ee7c4ee8cdc7afcb629ea3840eafddf5091a33)
2016-12-01keyboard: fix keyboard input issue on 64bit guestMunkyu Im1-8/+2
Some keycodes do not work on 64bit guest. So, reset previous keybit setting. Change-Id: I3d16f9106fe79e0493369c4953272cbeb04ebb49 Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
2016-12-01Merge branch 'tizen' into developSeokYeon Hwang2-1/+21
Change-Id: I1332757228f4fdbb8ebc73bd27442772a516b34d Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2016-11-30Merge tag 'v4.4.35' into tizentizen_linux_4.4.35SeokYeon Hwang1474-9927/+17786
This is the 4.4.35 stable release Change-Id: I016616a636a1c38e276e4c1c1b4728666b34a253 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
2016-11-29x86, pat: workaround to force PAT usageVasiliy Ulyanov1-0/+20
When run under haxm certain CPU features appear inaccesible from guest and at the moment there seems to be no proper way to set them up from the host side. The patch allows to forcefully enable x86 Page Attribute Table and therefore use different memory caching policies at the page level granularity. PAT significantly improves performance when mmaped device buffers are accessed. WARNING: once a proper solution is figured out for haxm case the patch should be reverted. Currently it is more like a hack to avoid terrible performance on certain scenarios like decoding high resolution video directly into the mmaped video buffer. Change-Id: Ib626a93b2ff16cc8bbdee186cfe67cff6b29e618 Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com> Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
2016-11-26Linux 4.4.35Greg Kroah-Hartman1-1/+1
2016-11-26netfilter: nft_dynset: fix element timeout for HZ != 1000Anders K. Pedersen1-2/+4
commit a8b1e36d0d1d6f51490e7adce35367ed6adb10e7 upstream. With HZ=100 element timeout in dynamic sets (i.e. flow tables) is 10 times higher than configured. Add proper conversion to/from jiffies, when interacting with userspace. I tested this on Linux 4.8.1, and it applies cleanly to current nf and nf-next trees. Fixes: 22fe54d5fefc ("netfilter: nf_tables: add support for dynamic set updates") Signed-off-by: Anders K. Pedersen <akp@cohaesio.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/cm: Mark stale CM id's whenever the mad agent was unregisteredMark Bloch1-16/+110
commit 9db0ff53cb9b43ed75bacd42a89c1a0ab048b2b0 upstream. When there is a CM id object that has port assigned to it, it means that the cm-id asked for the specific port that it should go by it, but if that port was removed (hot-unplug event) the cm-id was not updated. In order to fix that the port keeps a list of all the cm-id's that are planning to go by it, whenever the port is removed it marks all of them as invalid. This commit fixes a kernel panic which happens when running traffic between guests and we force reboot a guest mid traffic, it triggers a kernel panic: Call Trace: [<ffffffff815271fa>] ? panic+0xa7/0x16f [<ffffffff8152b534>] ? oops_end+0xe4/0x100 [<ffffffff8104a00b>] ? no_context+0xfb/0x260 [<ffffffff81084db2>] ? del_timer_sync+0x22/0x30 [<ffffffff8104a295>] ? __bad_area_nosemaphore+0x125/0x1e0 [<ffffffff81084240>] ? process_timeout+0x0/0x10 [<ffffffff8104a363>] ? bad_area_nosemaphore+0x13/0x20 [<ffffffff8104aabf>] ? __do_page_fault+0x31f/0x480 [<ffffffff81065df0>] ? default_wake_function+0x0/0x20 [<ffffffffa0752675>] ? free_msg+0x55/0x70 [mlx5_core] [<ffffffffa0753434>] ? cmd_exec+0x124/0x840 [mlx5_core] [<ffffffff8105a924>] ? find_busiest_group+0x244/0x9f0 [<ffffffff8152d45e>] ? do_page_fault+0x3e/0xa0 [<ffffffff8152a815>] ? page_fault+0x25/0x30 [<ffffffffa024da25>] ? cm_alloc_msg+0x35/0xc0 [ib_cm] [<ffffffffa024e821>] ? ib_send_cm_dreq+0xb1/0x1e0 [ib_cm] [<ffffffffa024f836>] ? cm_destroy_id+0x176/0x320 [ib_cm] [<ffffffffa024fb00>] ? ib_destroy_cm_id+0x10/0x20 [ib_cm] [<ffffffffa034f527>] ? ipoib_cm_free_rx_reap_list+0xa7/0x110 [ib_ipoib] [<ffffffffa034f590>] ? ipoib_cm_rx_reap+0x0/0x20 [ib_ipoib] [<ffffffffa034f5a5>] ? ipoib_cm_rx_reap+0x15/0x20 [ib_ipoib] [<ffffffff81094d20>] ? worker_thread+0x170/0x2a0 [<ffffffff8109b2a0>] ? autoremove_wake_function+0x0/0x40 [<ffffffff81094bb0>] ? worker_thread+0x0/0x2a0 [<ffffffff8109aef6>] ? kthread+0x96/0xa0 [<ffffffff8100c20a>] ? child_rip+0xa/0x20 [<ffffffff8109ae60>] ? kthread+0x0/0xa0 [<ffffffff8100c200>] ? child_rip+0x0/0x20 Fixes: a977049dacde ("[PATCH] IB: Add the kernel CM implementation") Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Erez Shitrit <erezsh@mellanox.com> Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/uverbs: Fix leak of XRC target QPsTariq Toukan1-5/+2
commit 5b810a242c28e1d8d64d718cebe75b79d86a0b2d upstream. The real QP is destroyed in case of the ref count reaches zero, but for XRC target QPs this call was missed and caused to QP leaks. Let's call to destroy for all flows. Fixes: 0e0ec7e0638e ('RDMA/core: Export ib_open_qp() to share XRC...') Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Noa Osherovich <noaos@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/core: Avoid unsigned int overflow in sg_alloc_tableMark Bloch1-1/+1
commit 3c7ba5760ab8eedec01159b267bb9bfcffe522ac upstream. sg_alloc_table gets unsigned int as parameter while the driver returns it as size_t. Check npages isn't greater than maximum unsigned int. Fixes: eeb8461e36c9 ("IB: Refactor umem to use linear SG table") Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/mlx5: Fix fatal error dispatchingEli Cohen1-2/+5
commit dbaaff2a2caa03d472b5cc53a3fbfd415c97dc26 upstream. When an internal error condition is detected, make sure to set the device inactive after dispatching the event so ULPs can get a notification of this event. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Reviewed-by: Mohamad Haj Yahia <mohamad@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/mlx5: Use cache line size to select CQE strideDaniel Jurgens1-2/+1
commit 16b0e0695a73b68d8ca40288c8f9614ef208917b upstream. When creating kernel CQs use 128B CQE stride if the cache line size is 128B, 64B otherwise. This prevents multiple CQEs from residing in a 128B cache line, which can cause retries when there are concurrent read and writes in one cache line. Tested with IPoIB on PPC64, saw ~5% throughput improvement. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/mlx4: Fix create CQ error flowMatan Barak1-1/+4
commit 593ff73bcfdc79f79a8a0df55504f75ad3e5d1a9 upstream. Currently, if ib_copy_to_udata fails, the CQ won't be deleted from the radix tree and the HW (HW2SW). Fixes: 225c7b1feef1 ('IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters') Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26IB/mlx4: Check gid_index return valueDaniel Jurgens1-1/+4
commit 37995116fecfce2b61ee3da6e73b3e394c6818f9 upstream. Check the returned GID index value and return an error if it is invalid. Fixes: 5070cd2239bd ('IB/mlx4: Replace mechanism for RoCE GID management') Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26PM / sleep: don't suspend parent when async child suspend_{noirq, late} failsBrian Norris1-4/+4
commit 6f75c3fd56daf547d684127a7f83c283c3c160d1 upstream. Consider two devices, A and B, where B is a child of A, and B utilizes asynchronous suspend (it does not matter whether A is sync or async). If B fails to suspend_noirq() or suspend_late(), or is interrupted by a wakeup (pm_wakeup_pending()), then it aborts and sets the async_error variable. However, device A does not (immediately) check the async_error variable; it may continue to run its own suspend_noirq()/suspend_late() callback. This is bad. We can resolve this problem by doing our error and wakeup checking (particularly, for the async_error flag) after waiting for children to suspend, instead of before. This also helps align the logic for the noirq and late suspend cases with the logic in __device_suspend(). It's easy to observe this erroneous behavior by, for example, forcing a device to sleep a bit in its suspend_noirq() (to ensure the parent is waiting for the child to complete), then return an error, and watch the parent suspend_noirq() still get called. (Or similarly, fake a wakeup event at the right (or is it wrong?) time.) Fixes: de377b397272 (PM / sleep: Asynchronous threads for suspend_late) Fixes: 28b6fd6e3779 (PM / sleep: Asynchronous threads for suspend_noirq) Reported-by: Jeffy Chen <jeffy.chen@rock-chips.com> Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26PM / sleep: fix device reference leak in test_suspendJohan Hovold1-1/+3
commit ceb75787bc75d0a7b88519ab8a68067ac690f55a upstream. Make sure to drop the reference taken by class_find_device() after opening the RTC device. Fixes: 77437fd4e61f (pm: boot time suspend selftest) Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26uwb: fix device reference leaksJohan Hovold2-3/+15
commit d6124b409ca33c100170ffde51cd8dff761454a1 upstream. This subsystem consistently fails to drop the device reference taken by class_find_device(). Note that some of these lookup functions already take a reference to the returned data, while others claim no reference is needed (or does not seem need one). Fixes: 183b9b592a62 ("uwb: add the UWB stack (core files)") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26mfd: core: Fix device reference leak in mfd_clone_cellJohan Hovold1-0/+2
commit 722f191080de641f023feaa7d5648caf377844f5 upstream. Make sure to drop the reference taken by bus_find_device_by_name() before returning from mfd_clone_cell(). Fixes: a9bbba996302 ("mfd: add platform_device sharing support for mfd") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26iwlwifi: pcie: fix SPLC structure parsingLuca Coelho1-31/+48
commit e0d9727c111a5917a1184c71c1a8e6f78c7fc41d upstream. The SPLC data parsing is too restrictive and was not trying find the correct element for WiFi. This causes problems with some BIOSes where the SPLC method exists, but doesn't have a WiFi entry on the first element of the list. The domain type values are also incorrect according to the specification. Fix this by complying with the actual specification. Additionally, replace all occurrences of SPLX to SPLC, since SPLX is only a structure internal to the ACPI tables, and may not even exist. Fixes: bcb079a14d75 ("iwlwifi: pcie: retrieve and parse ACPI power limitations") Reported-by: Chris Rorvick <chris@rorvick.com> Tested-by: Paul Bolle <pebolle@tiscali.nl> Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26rtc: omap: Fix selecting external oscLokesh Vutla1-2/+4
commit 3984903a2e3906d3def220e688040ce93368200a upstream. RTC can be clocked from an external 32KHz oscillator, or from the Peripheral PLL. The RTC has an internal oscillator buffer to support direct operation with a crystal. ---------------------------------------- | Device --------- | | | | | | | RTCSS | | | --------- | | | OSC |<------| RTC | | | | |------>| OSC |--- | | | | -------- | | | | | ----|clk | | | -------- | | | | | | PRCM |--- | | | | -------- -------- | ---------------------------------------- The RTC functional clock is sourced by default from the clock derived from the Peripheral PLL. In order to select source as external osc clk the following changes needs to be done: - Enable the RTC OSC (RTC_OSC_REG[4]OSC32K_GZ = 0) - Enable the clock mux(RTC_OSC_REG[6]K32CLK_EN = 1) - Select the external clock source (RTC_OSC_REG[3]32KCLK_SEL = 1) Fixes: 399cf0f63f6f2 ("rtc: omap: Add external clock enabling support") Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Dave Gerlach <d-gerlach@ti.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26clk: mmp: mmp2: fix return value check in mmp2_clk_init()Wei Yongjun1-1/+1
commit a29e52a6e66f4c0c895e7083e4bad2e7957f1fb5 upstream. Fix the retrn value check which testing the wrong variable in mmp2_clk_init(). Fixes: 1ec770d92a62 ("clk: mmp: add mmp2 DT support for clock driver") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26clk: mmp: pxa168: fix return value check in pxa168_clk_init()Wei Yongjun1-1/+1
commit deab07261d54b4db7b627d38e0efac97f176c6d6 upstream. Fix the retrn value check which testing the wrong variable in pxa168_clk_init(). Fixes: ab08aefcd12d ("clk: mmp: add pxa168 DT support for clock driver") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>