summaryrefslogtreecommitdiff
path: root/Documentation
AgeCommit message (Collapse)Author
2018-12-10Revert "fscrypt: add Speck128/256 support"Alistair Strachan
This reverts commit eb13e0b69296ad1d3a9a3fa0cb6570aaf99f9f0c. Resolves conflicts with a later CL, e7724207f71e "fscrypt: log the crypto algorithm implementations". Also leaves the include/uapi/linux/fs.h constants in place to prevent future accidental re-use. Bug: 116008047 Change-Id: I2d64d8d3e384400b7bdfc06a353c3844d4ebb377 Signed-off-by: Alistair Strachan <astrachan@google.com> Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2018-12-10UPSTREAM: media: rc: add ioctl to get the current timeoutSean Young
Since the kernel now modifies the timeout, make it possible to retrieve the current value. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit 95d1544eb643847e05df06c3de252609593c9073) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Conflicts: Documentation/media/uapi/rc/lirc-set-rec-timeout.rst
2018-12-10UPSTREAM: media: rc: report receiver and transmitter type on device registerSean Young
On the raspberry pi, we might have two lirc devices; one for sending and one for receiving. This change makes it much more apparent which one is which. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit ed8c34d7ec35b0a265f1b4d9ed6ab75e9f6facd7) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-12-10UPSTREAM: media: rc: no need to announce major numberSean Young
Since commit a60d64b15c20 ("media: lirc: lirc interface should not be a raw decoder"), the message in the documentation is incorrect as the module name is rc_core, not lirc_dev. Since the message is not useful, just make the message debug and remove it from the documentation. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit 5817b3d15e67f8a7280e06e0dfb2c7ede5897cd3) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-12-10UPSTREAM: media: lirc: when transmitting scancodes, block until transmit is doneSean Young
The semantics for lirc IR transmit with raw IR is that the write call should block until the IR is transmitted. Some drivers have no idea when this actually is (e.g. mceusb), so there is a wait. This is useful for userspace, as it might want to send a IR button press, a gap of a predefined number of milliseconds, and then send a repeat message. It turns out that for transmitting scancodes this feature is even more useful, as user space has no idea how long the IR is. So, maintain the existing semantics for IR scancode transmit. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit dde7edff359461d07074ef2f0c4dc85b775d493f) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Conflicts: Documentation/media/uapi/rc/lirc-write.rst
2018-12-10UPSTREAM: media: lirc: remove name from lirc_devSean Young
This is a duplicate of rcdev->driver_name. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit bf01c82474bf1f5c07d90a0959a95ff51374cc6f) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-12-10UPSTREAM: media: lirc: remove LIRCCODE and LIRC_GET_LENGTHSean Young
LIRCCODE is a lirc mode where a driver produces driver-dependent codes for receive and transmit. No driver uses this any more. The LIRC_GET_LENGTH ioctl was used for this mode only. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit 4e3cd001fde13dfd4a91888f908b2a07fd0a4047) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-12-10UPSTREAM: [media] rc: change wakeup_protocols to list all protocol variantsSean Young
For IR wakeup, a driver has to program the hardware to wakeup at a specific IR sequence, so it makes no sense to allow multiple wakeup protocols to be selected. In the same manner the sysfs interface only allows one scancode to be provided. In addition, we need to know the specific variant of the protocol. In short, these changes are made to the wakeup_protocols sysfs entry: - list all the protocol variants rather than the protocol groups, e.g. "nec nec-x nec-32" rather than just "nec". - only allow one protocol variant to be selected rather than multiple - wakeup_filter can only be set once a protocol has been selected in wakeup_protocols. This is an API change, however the only user of this API is the img-ir, but the wakeup code was never merged to mainline, so it was never used. Signed-off-by: Sean Young <sean@mess.org> Cc: James Hogan <james.hogan@imgtec.com> Cc: Sifan Naeem <sifan.naeem@imgtec.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit 0751d33c27eacfcd4e15a3425a9e035614ab9713) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Conflicts: Documentation/media/uapi/rc/rc-sysfs-nodes.rst
2018-12-10UPSTREAM: [media] doc-rst: Fix issues with RC documentationMauro Carvalho Chehab
The kernel-doc script is now broken if it doesn't find all exported symbols documented. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit 5b6137dc84f627e8497e554890ae02378c54f9f0) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Conflicts: Documentation/media/kapi/rc-core.rst
2018-12-05dt-bindings: sound: Add 'rockchip,grf' for rockchip i2s-tdmSugar Zhang
This patch adds 'rockchip,grf' property for rockchip i2s-tdm. Change-Id: If71fb12ac2d8969f291f69f694e0768427730983 Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-12-05dt-bindings: sound: rockchip-i2s: Add reset propertySugar Zhang
This patch adds the reset property for reset mechanism. Change-Id: Ia60cc1f140860613b35ec42d703094bff8b46893 Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-12-05dt-bindings: clock: Binding documentation for Rockchip pvtm 32k clockElaine Zhang
Change-Id: Ic8ff577553bf9267f8b4e7ec72974a61d035be2d Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-12-04Merge tag 'v4.4.166' into linux-linaro-lsk-v4.4Mark Brown
This is the 4.4.166 stable release
2018-12-01namei: allow restricted O_CREAT of FIFOs and regular filesSalvatore Mesoraca
commit 30aba6656f61ed44cba445a3c0d38b296fa9e8f5 upstream. Disallows open of FIFOs or regular files not owned by the user in world writable sticky directories, unless the owner is the same as that of the directory or the file is opened without the O_CREAT flag. The purpose is to make data spoofing attacks harder. This protection can be turned on and off separately for FIFOs and regular files via sysctl, just like the symlinks/hardlinks protection. This patch is based on Openwall's "HARDEN_FIFO" feature by Solar Designer. This is a brief list of old vulnerabilities that could have been prevented by this feature, some of them even allow for privilege escalation: CVE-2000-1134 CVE-2007-3852 CVE-2008-0525 CVE-2009-0416 CVE-2011-4834 CVE-2015-1838 CVE-2015-7442 CVE-2016-7489 This list is not meant to be complete. It's difficult to track down all vulnerabilities of this kind because they were often reported without any mention of this particular attack vector. In fact, before hardlinks/symlinks restrictions, fifos/regular files weren't the favorite vehicle to exploit them. [s.mesoraca16@gmail.com: fix bug reported by Dan Carpenter] Link: https://lkml.kernel.org/r/20180426081456.GA7060@mwanda Link: http://lkml.kernel.org/r/1524829819-11275-1-git-send-email-s.mesoraca16@gmail.com [keescook@chromium.org: drop pr_warn_ratelimited() in favor of audit changes in the future] [keescook@chromium.org: adjust commit subjet] Link: http://lkml.kernel.org/r/20180416175918.GA13494@beast Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Suggested-by: Solar Designer <solar@openwall.com> Suggested-by: Kees Cook <keescook@chromium.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Loic <hackurx@opensec.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-30soc: rockchip: support rk1808 pm configXiaoDong Huang
Change-Id: I6926cedc25bc9356608eeb8ad3e8751241f487ac Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-29drm/rockchip: rk618: Add support for dsiWyon Bi
Change-Id: I14e43f6edccf62392ac6a005ce12cf0961583573 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27dt-bindings: sound: rockchip: i2s-tdm: add property for RX/TX path route mappingXing Zheng
This patch add property 'rockchip,i2s-rx-route' and 'rockchip,i2s-tx-route' for capture/playback data route mapping. Change-Id: I8c790bfaf33b8e72c19e0b0ad5115d5d45de1662 Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-11-27drm/rockchip: rk618: Add support for hdmiWyon Bi
Change-Id: I009e39d4d81e3e0c3f3937ea830f170f08272e21 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27Revert "drm/rockchip: inno_hdmi: add support for rk618"Wyon Bi
This reverts commit 9ff817b7ab53d371c4721c8caced7d0933efe8b3. Change-Id: Id0f247c9a867928a62a00874cbb17f1f3b80cef2 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27drm/rockchip: rk618: refactor display pipelineWyon Bi
It's hard to do platform specific initialization in the current pipeline. This patch convert to generic bridge interface and let it attach to a platform specific encoder. CRTC --> Encoder --> Bridge --> Connector --> Panel (platform) This patch changed the pipeline to: CRTC --> Encoder --> Bridge --> Connector --> Panel (platform) (platform) Change-Id: I43e0dab05e41965767f55cfe15b3674a71911312 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27mfd: rk618: Fix subdevices nameWyon Bi
Change-Id: I4e88bdabdbc2c26ac3c734da914eca6e467bde1d Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-22arm64: dts: rockchip: rk3326-evb-lp3-v10: Separate android firmwareBian Jin chen
Split DT source files to separate out android firmware for Android Pie & Oreo Change-Id: I202f2350a3d8dcf8ef6762dd39784472a4ce7281 Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
2018-11-16dt-bindings: devfreq: rockchip_dmc: Add rk1808 supportYouMin Chen
Change-Id: I38d5ab66f5d5345e05db42d16e46ed79973bb4fc Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16dt-bindings: devfreq: rockchip_dfi: Add rk1808 supportYouMin Chen
Change-Id: I8bd056dcc93f3c9c94b1b490340f8b040bb77d43 Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-14UPSTREAM: regulator: tps65132: add device-tree bindingVenkat Reddy Talla
Add tps65132 regulator device-tree binding documentation Change-Id: I176467cd3301e75b211ec76ae1af258ed2c7e33e Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> (cherry picked from commit 682d33c65c28bca28238e84dc3f3b629008d1079)
2018-11-12[media]: dt/bindings: Add bindings for OV7725Leo Wen
Add device tree binding documentation for the OV7725 sensor. Change-Id: I9a804ba72b1e37b817fbc88dcb1cb44afd155882 Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12[media]: dt/bindings: Add bindings for OV7251Leo Wen
Add device tree binding documentation for the OV7251 sensor. Change-Id: I39774f9018483f768d7dc18207d2f5b2d5a41eef Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12[media]: dt/bindings: Add bindings for OV7750Leo Wen
Add device tree binding documentation for the OV7750 sensor. Change-Id: I48acb7fbd0b5537bd16e579fd6edd91777bd64f0 Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12[media]: dt/bindings: Add bindings for OV2735Leo Wen
Add device tree binding documentation for the OV2735 sensor. Change-Id: Ieab6251eefba56141026be56c6b1c7a71551a6ea Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-06Documentation/devicetree/bindings: remove unused regulator/act8846.txtTao Huang
Change-Id: I5ff5dfc1714339b170d10e0ee8f287e7cf2a3efd Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-05Merge tag 'v4.4.162' into linux-linaro-lsk-v4.4Mark Brown
This is the 4.4.162 stable release
2018-11-03drivers/mfd: remove unused ricoh619 driverTao Huang
Change-Id: I8e2be84e4356399b32816b829c5e07614717f848 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02drivers: remove unused rt5025 driversTao Huang
Change-Id: Iee99365df115f30399737705d3c6b773a0f2cb34 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02dt-bindings: media: Document add rk1808 to Rockchip CIF bindingsWenlong Zhuang
Change-Id: I9a48e57d3ed33a338f3d0216e77942b1954b6c26 Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2018-10-29f2fs: checkpoint disablingDaniel Rosenberg
Note that, it requires "f2fs: return correct errno in f2fs_gc". This adds a lightweight non-persistent snapshotting scheme to f2fs. To use, mount with the option checkpoint=disable, and to return to normal operation, remount with checkpoint=enable. If the filesystem is shut down before remounting with checkpoint=enable, it will revert back to its apparent state when it was first mounted with checkpoint=disable. This is useful for situations where you wish to be able to roll back the state of the disk in case of some critical failure. Signed-off-by: Daniel Rosenberg <drosen@google.com> [Jaegeuk Kim: use SB_RDONLY instead of MS_RDONLY] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2018-10-29arm64: dts: rockchip: Add new dts file for rk3399-sapphire-excavator-edp avb.Guochun Huang
Change-Id: I5099d44819423b1dd0130cbb063c90e0783739b7 Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2018-10-27f2fs: add new idle interval timing for discard and gc pathsSahitya Tummala
This helps to control the frequency of submission of discard and GC requests independently, based on the need. Suggested-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Sahitya Tummala <stummala@codeaurora.org> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2018-10-27f2fs: split IO error injection according to RWChao Yu
This patch adds to support injecting error for write IO, this can simulate IO error like fail_make_request or dm_flakey does. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2018-10-23dt-bindings: usb: dwc3: add dis-u1u2-quirkWilliam Wu
This patch adds a quirk for some special platforms (e.g. rk1808 platform) which has problem to exit to U0 state from U1 or U2 state when dwc3 work as peripheral mode. To workaround this issue, we can add this quirk to reject transition to U1 and U2 state. Change-Id: I611b3562800e77079193cd5e96f6fe30bb3ca88a Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22dt-bindings: phy: add bindings doc for rockchip combphyWilliam Wu
It adds the device tree bindings for PCIE/USB3 combo PHY found on Rockchip SoCs. Change-Id: Ia9c62cfc248b055fc2d7ced66b5b7620f7e220e2 Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-20x86/fpu: Finish excising 'eagerfpu'Andy Lutomirski
commit e63650840e8b053aa09ad934877e87e9941ed135 upstream. Now that eagerfpu= is gone, remove it from the docs and some comments. Also sync the changes to tools/. Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com> Cc: Rik van Riel <riel@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/cf430dd4481d41280e93ac6cf0def1007a67fc8e.1476740397.git.luto@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-20ARM: dts: at91: add new compatibility string for macb on sama5d3Nicolas Ferre
[ Upstream commit 321cc359d899a8e988f3725d87c18a628e1cc624 ] We need this new compatibility string as we experienced different behavior for this 10/100Mbits/s macb interface on this particular SoC. Backward compatibility is preserved as we keep the alternative strings. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-19dt-bindings: Document add imx323Cai YiWei
Change-Id: I364b1a6fffdd4e2ac2461a16f872d22190c2c163 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-10-16dt-bindings: media: add rkisp1 for rk1808Hu Kejun
Change-Id: If59a6fbb62dbd03c88e282c925bbb98efc8d8cc0 Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-16dt-bindings: media: add mipi rx dphy for rk1808Hu Kejun
Change-Id: I88d7ff22df8bcf722545179f3dd26d094b76bd21 Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-11dt-bindings: soc: rockchip: add pvtm for rk1808 SoCsLiang Chen
Change-Id: I89c153f98d027e6e0b5d9b1816c70f3ec2c66f6d Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-10-11dt-bindings: soc: rockchip: add coregrf compatible string for rk1808Liang Chen
Change-Id: I55687ca089a43e9b3d8f293717747866e33e77cc Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-10-11drm/bridge: analogix_dp: rework hpd gpio detectionWyon Bi
Change-Id: I0d62201095ab82f5ed0ddcfd53abaef6089a2e9d Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-10-11dt-bindings: hwlock: add the rockchip hwspinlock bindings documentFrank Wang
Add binding documentation for the Rockchip Hardware spinlock. Change-Id: Iec1bf55196f910323a2158ecd04f31223135242d Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2018-10-10Merge branch 'linux-linaro-lsk-v4.4-android' of ↵Tao Huang
git://git.linaro.org/kernel/linux-linaro-stable.git * linux-linaro-lsk-v4.4-android: (1212 commits) ANDROID: sdcardfs: Change current->fs under lock ANDROID: sdcardfs: Don't use OVERRIDE_CRED macro ANDROID: restrict store of prefer_idle as boolean BACKPORT: arm/syscalls: Optimize address limit check UPSTREAM: syscalls: Use CHECK_DATA_CORRUPTION for addr_limit_user_check BACKPORT: arm64/syscalls: Check address limit on user-mode return BACKPORT: x86/syscalls: Check address limit on user-mode return BACKPORT: lkdtm: add bad USER_DS test UPSTREAM: bug: switch data corruption check to __must_check BACKPORT: lkdtm: Add tests for struct list corruption UPSTREAM: bug: Provide toggle for BUG on data corruption UPSTREAM: list: Split list_del() debug checking into separate function UPSTREAM: rculist: Consolidate DEBUG_LIST for list_add_rcu() BACKPORT: list: Split list_add() debug checking into separate function FROMLIST: ANDROID: binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl. BACKPORT: arm64/vdso: Fix nsec handling for CLOCK_MONOTONIC_RAW ANDROID: arm64: mm: fix 4.4.154 merge BACKPORT: zsmalloc: introduce zs_huge_class_size() BACKPORT: zram: drop max_zpage_size and use zs_huge_class_size() ANDROID: tracing: fix race condition reading saved tgids ... Change-Id: I9f23db35eb926b6fa0d7af7dbbb55c9a37d536fc