summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-01-09Revert "usb: gadget: f_uac1: endianness fixes."Ajay Agarwal
This reverts commit f80170561bcab8a983ae413ca52f79327333853f. Required for clean picking of UAC opensource changes. Change-Id: I26daf26963d4a1aed7e7fd71e07bbcf3303bf51a Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: f_uac2: constify snd_pcm_ops structures"Ajay Agarwal
This reverts commit 54120399c6705d06660be005e986ce9f87c9c6c2. Required for clean picking of UAC opensource changes. Change-Id: Iac8e14182610f81ff7efa9885f692b844bf707e6 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: make snd_pcm_hardware const"Ajay Agarwal
This reverts commit debfef9994e9fc7b81afc0eb93891fc09d512fa6. Required for clean picking of UAC opensource changes. Change-Id: Ibea146b46a1d746e043cf7ef5839c58cf6caa74e Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: u_audio: fix pcm/card naming in g_audio_setup()"Ajay Agarwal
This reverts commit 2eb1ffe38317b32ff2498d00eb2aca3d3495c153. Required for clean picking of UAC opensource changes. Change-Id: If701e740b5fce8cc40de7832a87f13b2e36b329f Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: u_audio: update hw_ptr in iso_complete after data copied"Ajay Agarwal
This reverts commit 06e25fbb83b34f3ca4db69d7ebf7ce1d8f4da65b. Required for clean picking of UAC opensource changes. Change-Id: I9090ca1d75f0521f799f6849b3720909f987bbdc Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: u_audio: remove caching of stream buffer parameters"Ajay Agarwal
This reverts commit 32c666f9456fdf6b1fcaf87d6e924ae2724ed9ea. Required for clean picking of UAC opensource changes. Change-Id: I40d571178823c43126eccc55d11041b1baabc7f8 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: u_audio: remove cached period bytes value"Ajay Agarwal
This reverts commit ad983d197d386070d172991e924b11ea12afd90e. Required for clean picking of UAC opensource changes. Change-Id: I5d59361d347616c29dc40dcded7e0b132faf42a4 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: u_audio: protect stream runtime fields with stream ↵Ajay Agarwal
spinlock" This reverts commit 5e5109f539aa4c5086465169481ee01dd579d008. Required for clean picking of UAC opensource changes. Change-Id: If8690a51ff85f45d90581092425787f40ab4b711 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: u_audio: Check return value from config_ep_by_speed()"Ajay Agarwal
This reverts commit 108c841217974da6e7d9197e404c27dbeeaa8641. Required for clean picking of UAC opensource changes. Change-Id: Ib507670642862b73287deaa48efe9fd67b8891cc Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "usb: gadget: f_uac1: Add support for UAC1 function"Ajay Agarwal
This reverts commit b5c775efe4d1963081c25efaa4c026444b742d7a. Required for clean picking of UAC opensource changes. Change-Id: If7eb3a3f19cbff82c90f8ea156ac36e76d812577 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09Revert "defconfig: msm: Enable UAC1 driver on 8996 Auto"Ajay Agarwal
This reverts commit 82cf88b5b8b80a6d806c00cf5a43b39919c51fbc. Required for clean picking of UAC opensource changes. Change-Id: Ic4b124d9917cb7a9a9bf2438c1506ecde4a05d44 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-06msm: vidc: ignore processing responses in invalid stateDarshan Kumsi Srinivasa
No need to process response messages from video hardware after device went into invalid state. Processing responses may result in use-after-free memory fault because client might free all the resources after error. Change-Id: I3bfb26e5aa52aba33b7b62cda7820dcbc5fe033f Signed-off-by: Darshan Kumsi Srinivasa <darssr@codeaurora.org>
2019-01-03Merge "usb: gadget: f_hid: use free_ep_req()"Linux Build Service Account
2019-01-03Merge "Merge android-4.4.169 (dfca92b) into msm-4.4"Linux Build Service Account
2019-01-02Merge "msm: early_domain: return directly if early domain disabled"Linux Build Service Account
2019-01-02usb: gadget: f_hid: use free_ep_req()Felipe F. Tonello
We should always use free_ep_req() when allocating requests with alloc_ep_req(). Change-Id: Ifa23bf08baf00eb6a1516726de7655901a532cdc Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Git-commit: 14794d7133d0f16b4901207a489f04e4e700166a Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-02Merge "usb: gadget: f_hid: add dev to configfs"Linux Build Service Account
2019-01-02Merge "dwc3: gadget: Take copy of dwc->gadget_driver before releasing lock"Linux Build Service Account
2019-01-01defconfig: msm: Enable UAC1 driver on 8996 AutoAjay Agarwal
Enable UAC1 function driver on 8996 Auto target to support audio over USB with virtual ALSA card creation. Change-Id: Icead0b5f37b822e08f1c0714e62b275db60174a3 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-01Merge "Revert "rtc: alarm: Add power-on alarm feature""Linux Build Service Account
2019-01-01Merge "msm: ais: Update request from kernel to lk"Linux Build Service Account
2018-12-30Merge "usb: diag_ipc_bridge: Fix kref_put handling in case of transfers"Linux Build Service Account
2018-12-29Merge "defconfig: msm: Enable earlydomain handoff support"Linux Build Service Account
2018-12-29Merge "usb: gadget: f_uac1: Add support for UAC1 function"Linux Build Service Account
2018-12-27Revert "rtc: alarm: Add power-on alarm feature"Mao Jinlong
This reverts commit 2e1a4aefef66db901f9a906b79e30187f10dbecb. Power off alarm is not set via alarmtimer now. Remove the changes of power off alarm's previous design. Change-Id: I0f60bec0d94c93c4f2a89ae86a1b0a0d04aa9e48 Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2018-12-27msm: early_domain: return directly if early domain disabledAndy Sun
If early_domain_enabled is false, ed_core_data won't be allocated memory, accessing early_domain_request will cause kernel Oops. Change-Id: I8a64c574141a7647e699710b566cc5997d372478 Signed-off-by: Andy Sun <bins@codeaurora.org>
2018-12-27usb: gadget: remove useless parameter in alloc_ep_req()Felipe F. Tonello
The default_length parameter of alloc_ep_req was not really necessary and gadget drivers would almost always create an inline function to pass the same value to len and default_len. This patch removes that parameter and updates all calls to alloc_ep_req() to use the new API. Change-Id: Idfe0e0fde8faf5f713a8368d29a4bd155208ffa2 Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Git-commit: aadbe812463f8af1751debb0eaaeec8a778d7ff1 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git [ajaya@codeaurora.org: fix merge conflicts] Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-12-27usb: gadget: f_hid: add dev to configfsJohannes Berg
Even if the /dev/hidg* chardev is automatically created, one has to guess which one belongs to which function. In the case of multiple HID functions, or maybe even multiple peripherals, this becomes difficult. Add the dev (with major and minor number) to configfs to allow looking up (or even creating) the right device node for each function. This file is read-only. Change-Id: If11a531a4b65cbcfb5c5456712c5f965fd4eb4c2 Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Git-commit: ed6fe1f50f0c0fdea674dfa739af50011034bdfa Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-12-26Merge "usb: gadget: u_audio: Check return value from config_ep_by_speed()"Linux Build Service Account
2018-12-26Merge "usb: gadget: u_audio: protect stream runtime fields with stream spinlock"Linux Build Service Account
2018-12-26Merge "usb: gadget: u_audio: remove caching of stream buffer parameters"Linux Build Service Account
2018-12-26usb: diag_ipc_bridge: Fix kref_put handling in case of transfersAjay Agarwal
Currently the driver puts kref in the read/write completion callback irrespective of whether the transaction was successful or not. This is fine for diag transfers because the read/write function is not waiting for completion. But in case of IPC transfers, the read/write function waits for completion. If the transfer fails for some reason, then it will do a kref_put as well, along with the completion callback. This leads to double put of kref counter leading to null pointer dereference from diag_bridge_disconnect(on cable disconnect). Fix this by doing kref_put in the completion callback only if the URB is submitted successfully. Else do it from the error handling in read/write functions. Change-Id: I50645cac757293dd0b1df9afb356281b2922401b Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-12-24defconfig: msm: Enable earlydomain handoff supportVivek Kumar
Enable early domain handoff support for msm-auto perf defconfig Change-Id: I4364928a05299367906996d01782ea7fced099ba Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2018-12-24Merge android-4.4.169 (dfca92b) into msm-4.4Srinivasarao P
* refs/heads/tmp-dfca92b Linux 4.4.169 ALSA: isa/wavefront: prevent some out of bound writes rtc: snvs: Add timeouts to avoid kernel lockups rtc: snvs: add a missing write sync i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device node i2c: axxia: properly handle master timeout cifs: In Kconfig CONFIG_CIFS_POSIX needs depends on legacy (insecure cifs) ARM: 8814/1: mm: improve/fix ARM v7_dma_inv_range() unaligned address handling mv88e6060: disable hardware level MAC learning libata: whitelist all SAMSUNG MZ7KM* solid-state disks Input: omap-keypad - fix keyboard debounce configuration clk: mmp: Off by one in mmp_clk_add() ide: pmac: add of_node_put() drivers/tty: add missing of_node_put() drivers/sbus/char: add of_node_put() sbus: char: add of_node_put() SUNRPC: Fix a potential race in xprt_connect() bonding: fix 802.3ad state sent to partner when unbinding slave ARC: io.h: Implement reads{x}()/writes{x}() drm/msm: Grab a vblank reference when waiting for commit_done x86/earlyprintk/efi: Fix infinite loop on some screen widths scsi: vmw_pscsi: Rearrange code to avoid multiple calls to free_irq during unload scsi: libiscsi: Fix NULL pointer dereference in iscsi_eh_session_reset mac80211_hwsim: fix module init error paths for netlink mac80211: Fix condition validating WMM IE mac80211: don't WARN on bad WMM parameters from buggy APs f2fs: fix a panic caused by NULL flush_cmd_control Revert "drm/rockchip: Allow driver to be shutdown on reboot/kexec" powerpc/msi: Fix NULL pointer access in teardown code tracing: Fix memory leak of instance function hash filters tracing: Fix memory leak in set_trigger_filter() MMC: OMAP: fix broken MMC on OMAP15XX/OMAP5910/OMAP310 aio: fix spectre gadget in lookup_ioctx pinctrl: sunxi: a83t: Fix IRQ offset typo for PH11 powerpc/boot: Fix random libfdt related build errors timer/debug: Change /proc/timer_list from 0444 to 0400 lib/interval_tree_test.c: allow users to limit scope of endpoint lib/rbtree-test: lower default params lib/rbtree_test.c: make input module parameters lib/interval_tree_test.c: allow full tree search lib/interval_tree_test.c: make test options module parameters ANDROID: Revert fs/squashfs back to linux-4.4.y Conflicts: drivers/gpu/drm/msm/msm_atomic.c Change-Id: Iecec05c300fb06c0bcdd44a797795e854ea0d0fd Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2018-12-21Merge 4.4.169 into android-4.4Greg Kroah-Hartman
Changes in 4.4.169 lib/interval_tree_test.c: make test options module parameters lib/interval_tree_test.c: allow full tree search lib/rbtree_test.c: make input module parameters lib/rbtree-test: lower default params lib/interval_tree_test.c: allow users to limit scope of endpoint timer/debug: Change /proc/timer_list from 0444 to 0400 powerpc/boot: Fix random libfdt related build errors pinctrl: sunxi: a83t: Fix IRQ offset typo for PH11 aio: fix spectre gadget in lookup_ioctx MMC: OMAP: fix broken MMC on OMAP15XX/OMAP5910/OMAP310 tracing: Fix memory leak in set_trigger_filter() tracing: Fix memory leak of instance function hash filters powerpc/msi: Fix NULL pointer access in teardown code Revert "drm/rockchip: Allow driver to be shutdown on reboot/kexec" f2fs: fix a panic caused by NULL flush_cmd_control mac80211: don't WARN on bad WMM parameters from buggy APs mac80211: Fix condition validating WMM IE mac80211_hwsim: fix module init error paths for netlink scsi: libiscsi: Fix NULL pointer dereference in iscsi_eh_session_reset scsi: vmw_pscsi: Rearrange code to avoid multiple calls to free_irq during unload x86/earlyprintk/efi: Fix infinite loop on some screen widths drm/msm: Grab a vblank reference when waiting for commit_done ARC: io.h: Implement reads{x}()/writes{x}() bonding: fix 802.3ad state sent to partner when unbinding slave SUNRPC: Fix a potential race in xprt_connect() sbus: char: add of_node_put() drivers/sbus/char: add of_node_put() drivers/tty: add missing of_node_put() ide: pmac: add of_node_put() clk: mmp: Off by one in mmp_clk_add() Input: omap-keypad - fix keyboard debounce configuration libata: whitelist all SAMSUNG MZ7KM* solid-state disks mv88e6060: disable hardware level MAC learning ARM: 8814/1: mm: improve/fix ARM v7_dma_inv_range() unaligned address handling cifs: In Kconfig CONFIG_CIFS_POSIX needs depends on legacy (insecure cifs) i2c: axxia: properly handle master timeout i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device node rtc: snvs: add a missing write sync rtc: snvs: Add timeouts to avoid kernel lockups ALSA: isa/wavefront: prevent some out of bound writes Linux 4.4.169 Change-Id: Ic1bde8f64625c7787feb8e7411b15e70a2f76981 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2018-12-21Linux 4.4.169Greg Kroah-Hartman
2018-12-21ALSA: isa/wavefront: prevent some out of bound writesDan Carpenter
[ Upstream commit 84d7a4470dbac0dd9389050100b54a1625d04264 ] "header->number" can be up to USHRT_MAX and it comes from the ioctl so it needs to be capped. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21rtc: snvs: Add timeouts to avoid kernel lockupsTrent Piepho
[ Upstream commit cd7f3a249dbed2858e6c2f30e5be7f1f7a709ee2 ] In order to read correctly from asynchronously updated RTC registers, it's necessary to read repeatedly until their values do not change from read to read. It's also necessary to wait for three RTC clock ticks for certain operations. There are no timeouts in this code and these operations could possibly loop forever. To avoid kernel hangs, put in timeouts. The iMX7d can be configured to stop the SRTC on a tamper event, which will lockup the kernel inside this driver as described above. These hangs can happen when running under qemu, which doesn't emulate the SNVS RTC, though currently the driver will refuse to load on qemu due to a timeout in the driver probe method. It could also happen if the SRTC block where somehow placed into reset or the slow speed clock that drives the SRTC counter (but not the CPU) were to stop. The symptoms on a two core iMX7d are a work queue hang on rtc_timer_do_work(), which eventually blocks a systemd fsnotify operation that triggers a work queue flush, causing systemd to hang and thus causing all services that should be started by systemd, like a console getty, to fail to start or stop. Also optimize the wait code to wait less. It only needs to wait for the clock to advance three ticks, not to see it change three times. Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Shawn Guo <shawn.guo@linaro.org> Cc: Bryan O'Donoghue <pure.logic@nexus-software.ie> Signed-off-by: Trent Piepho <tpiepho@impinj.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21rtc: snvs: add a missing write syncGuy Shapiro
[ Upstream commit 7bb633b1a9812a6b9f3e49d0cf17f60a633914e5 ] The clear of the LPTA_EN flag should be synced before writing to the alarm register. Omitting this synchronization creates a race when trying to change existing alarm. Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device nodeHans de Goede
[ Upstream commit 0544ee4b1ad574aec3b6379af5f5cdee42840971 ] Some AMD based HP laptops have a SMB0001 ACPI device node which does not define any methods. This leads to the following error in dmesg: [ 5.222731] cmi: probe of SMB0001:00 failed with error -5 This commit makes acpi_smbus_cmi_add() return -ENODEV instead in this case silencing the error. In case of a failure of the i2c_add_adapter() call this commit now propagates the error from that call instead of -EIO. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21i2c: axxia: properly handle master timeoutAdamski, Krzysztof (Nokia - PL/Wroclaw)
[ Upstream commit 6c7f25cae54b840302e4f1b371dbf318fbf09ab2 ] According to Intel (R) Axxia TM Lionfish Communication Processor Peripheral Subsystem Hardware Reference Manual, the AXXIA I2C module have a programmable Master Wait Timer, which among others, checks the time between commands send in manual mode. When a timeout (25ms) passes, TSS bit is set in Master Interrupt Status register and a Stop command is issued by the hardware. The axxia_i2c_xfer(), does not properly handle this situation, however. For each message a separate axxia_i2c_xfer_msg() is called and this function incorrectly assumes that any interrupt might happen only when waiting for completion. This is mostly correct but there is one exception - a master timeout can trigger if enough time has passed between individual transfers. It will, by definition, happen between transfers when the interrupts are disabled by the code. If that happens, the hardware issues Stop command. The interrupt indicating timeout will not be triggered as soon as we enable them since the Master Interrupt Status is cleared when master mode is entered again (which happens before enabling irqs) meaning this error is lost and the transfer is continued even though the Stop was issued on the bus. The subsequent operations completes without error but a bogus value (0xFF in case of read) is read as the client device is confused because aborted transfer. No error is returned from master_xfer() making caller believe that a valid value was read. To fix the problem, the TSS bit (indicating timeout) in Master Interrupt Status register is checked before each transfer. If it is set, there was a timeout before this transfer and (as described above) the hardware already issued Stop command so the transaction should be aborted thus -ETIMEOUT is returned from the master_xfer() callback. In order to be sure no timeout was issued we can't just read the status just before starting new transaction as there will always be a small window of time (few CPU cycles at best) where this might still happen. For this reason we have to temporally disable the timer before checking for TSS bit. Disabling it will, however, clear the TSS bit so in order to preserve that information, we have to read it in ISR so we have to ensure that the TSS interrupt is not masked between transfers of one transaction. There is no need to call bus recovery or controller reinitialization if that happens so it's skipped. Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21cifs: In Kconfig CONFIG_CIFS_POSIX needs depends on legacy (insecure cifs)Steve French
[ Upstream commit 6e785302dad32228819d8066e5376acd15d0e6ba ] Missing a dependency. Shouldn't show cifs posix extensions in Kconfig if CONFIG_CIFS_ALLOW_INSECURE_DIALECTS (ie SMB1 protocol) is disabled. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21ARM: 8814/1: mm: improve/fix ARM v7_dma_inv_range() unaligned address handlingChris Cole
[ Upstream commit a1208f6a822ac29933e772ef1f637c5d67838da9 ] This patch addresses possible memory corruption when v7_dma_inv_range(start_address, end_address) address parameters are not aligned to whole cache lines. This function issues "invalidate" cache management operations to all cache lines from start_address (inclusive) to end_address (exclusive). When start_address and/or end_address are not aligned, the start and/or end cache lines are first issued "clean & invalidate" operation. The assumption is this is done to ensure that any dirty data addresses outside the address range (but part of the first or last cache lines) are cleaned/flushed so that data is not lost, which could happen if just an invalidate is issued. The problem is that these first/last partial cache lines are issued "clean & invalidate" and then "invalidate". This second "invalidate" is not required and worse can cause "lost" writes to addresses outside the address range but part of the cache line. If another component writes to its part of the cache line between the "clean & invalidate" and "invalidate" operations, the write can get lost. This fix is to remove the extra "invalidate" operation when unaligned addressed are used. A kernel module is available that has a stress test to reproduce the issue and a unit test of the updated v7_dma_inv_range(). It can be downloaded from http://ftp.sageembedded.com/outgoing/linux/cache-test-20181107.tgz. v7_dma_inv_range() is call by dmac_[un]map_area(addr, len, direction) when the direction is DMA_FROM_DEVICE. One can (I believe) successfully argue that DMA from a device to main memory should use buffers aligned to cache line size, because the "clean & invalidate" might overwrite data that the device just wrote using DMA. But if a driver does use unaligned buffers, at least this fix will prevent memory corruption outside the buffer. Signed-off-by: Chris Cole <chris@sageembedded.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21mv88e6060: disable hardware level MAC learningAnderson Luiz Alves
[ Upstream commit a74515604a7b171f2702bdcbd1e231225fb456d0 ] Disable hardware level MAC learning because it breaks station roaming. When enabled it drops all frames that arrive from a MAC address that is on a different port at learning table. Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21libata: whitelist all SAMSUNG MZ7KM* solid-state disksJuha-Matti Tilli
[ Upstream commit fd6f32f78645db32b6b95a42e45da2ddd6de0e67 ] These devices support read zero after trim (RZAT), as they advertise to the OS. However, the OS doesn't believe the SSDs unless they are explicitly whitelisted. Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Juha-Matti Tilli <juha-matti.tilli@iki.fi> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21Input: omap-keypad - fix keyboard debounce configurationTony Lindgren
[ Upstream commit 6c3516fed7b61a3527459ccfa67fab130d910610 ] I noticed that the Android v3.0.8 kernel on droid4 is using different keypad values from the mainline kernel and does not have issues with keys occasionally being stuck until pressed again. Turns out there was an earlier patch posted to fix this as "Input: omap-keypad: errata i689: Correct debounce time", but it was never reposted to fix use macros for timing calculations. This updated version is using macros, and also fixes the use of the input clock rate to use 32768KiHz instead of 32000KiHz. And we want to use the known good Android kernel values of 3 and 6 instead of 2 and 6 in the earlier patch. Reported-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21clk: mmp: Off by one in mmp_clk_add()Dan Carpenter
[ Upstream commit 2e85c57493e391b93445c1e0d530b36b95becc64 ] The > comparison should be >= or we write one element beyond the end of the unit->clk_table[] array. (The unit->clk_table[] array is allocated in the mmp_clk_init() function and it has unit->nr_clks elements). Fixes: 4661fda10f8b ("clk: mmp: add basic support functions for DT support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21ide: pmac: add of_node_put()Yangtao Li
[ Upstream commit a51921c0db3fd26c4ed83dc0ec5d32988fa02aa5 ] use of_node_put() to release the refcount. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21drivers/tty: add missing of_node_put()Yangtao Li
[ Upstream commit dac097c4546e4c5b16dd303a1e97c1d319c8ab3e ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. This place is not doing this, so fix it. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-21drivers/sbus/char: add of_node_put()Yangtao Li
[ Upstream commit 6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100 ] use of_node_put() to release the refcount. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>