754868 Commits

Author SHA1 Message Date
Srinivasarao P
f3f0576c22 Merge android-4.14.158 (84afceb) into msm-4.14
* refs/heads/tmp-84afceb:
  Linux 4.14.158
  net: fec: fix clock count mis-match
  platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size
  platform/x86: hp-wmi: Fix ACPI errors caused by too small buffer
  ASoC: stm32: i2s: fix IRQ clearing
  ASoC: stm32: i2s: fix 16 bit format support
  ASoC: stm32: i2s: fix dma configuration
  pinctrl: stm32: fix memory leak issue
  mailbox: mailbox-test: fix null pointer if no mmio
  hwrng: stm32 - fix unbalanced pm_runtime_enable
  media: stm32-dcmi: fix DMA corruption when stopping streaming
  crypto: stm32/hash - Fix hmac issue more than 256 bytes
  HID: core: check whether Usage Page item is after Usage ID items
  futex: Prevent exit livelock
  futex: Provide distinct return value when owner is exiting
  futex: Add mutex around futex exit
  futex: Provide state handling for exec() as well
  futex: Sanitize exit state handling
  futex: Mark the begin of futex exit explicitly
  futex: Set task::futex_state to DEAD right after handling futex exit
  futex: Split futex_mm_release() for exit/exec
  exit/exec: Seperate mm_release()
  futex: Replace PF_EXITPIDONE with a state
  futex: Move futex exit handling into futex code
  futex: Prevent robust futex exit race
  y2038: futex: Move compat implementation into futex.c
  mtd: spi-nor: cast to u64 to avoid uint overflows
  mtd: rawnand: atmel: fix possible object reference leak
  mtd: rawnand: atmel: Fix spelling mistake in error message
  net: macb driver, check for SKBTX_HW_TSTAMP
  net: macb: Fix SUBNS increment and increase resolution
  watchdog: sama5d4: fix WDD value to be always set to max
  ext4: add more paranoia checking in ext4_expand_extra_isize handling
  net: sched: fix `tc -s class show` no bstats on class with nolock subqueues
  sctp: cache netns in sctp_ep_common
  tipc: fix link name length check
  openvswitch: remove another BUG_ON()
  openvswitch: drop unneeded BUG_ON() in ovs_flow_cmd_build_info()
  slip: Fix use-after-free Read in slip_open
  openvswitch: fix flow command message size
  net: psample: fix skb_over_panic
  macvlan: schedule bc_work even if error
  media: atmel: atmel-isc: fix INIT_WORK misplacement
  media: atmel: atmel-isc: fix asd memory allocation
  pwm: Clear chip_data in pwm_put()
  net: macb: fix error format in dev_err()
  media: v4l2-ctrl: fix flags for DO_WHITE_BALANCE
  xfrm: Fix memleak on xfrm state destroy
  mei: bus: prefix device names on bus with the bus name
  USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P
  staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids
  staging: rtl8723bs: Drop ACPI device ids
  staging: rtl8192e: fix potential use after free
  clk: at91: generated: set audio_pll_allowed in at91_clk_register_generated()
  clk: at91: fix update bit maps on CFG_MOR write
  mm, gup: add missing refcount overflow checks on s390
  mtd: Remove a debug trace in mtdpart.c
  powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property()
  scsi: libsas: Check SMP PHY control function result
  ACPI / APEI: Switch estatus pool to use vmalloc memory
  ACPI / APEI: Don't wait to serialise with oops messages when panic()ing
  scsi: libsas: Support SATA PHY connection rate unmatch fixing during discovery
  apparmor: delete the dentry in aafs_remove() to avoid a leak
  iommu/amd: Fix NULL dereference bug in match_hid_uid
  net: hns3: Change fw error code NOT_EXEC to NOT_SUPPORTED
  bpf: drop refcount if bpf_map_new_fd() fails in map_create()
  kvm: properly check debugfs dentry before using it
  net: dev: Use unsigned integer as an argument to left-shift
  bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()
  sctp: don't compare hb_timer expire date before starting it
  net: fix possible overflow in __sk_mem_raise_allocated()
  sfc: initialise found bitmap in efx_ef10_mtd_probe
  tipc: fix skb may be leaky in tipc_link_input
  blktrace: Show requests without sector
  net/smc: prevent races between smc_lgr_terminate() and smc_conn_free()
  decnet: fix DN_IFREQ_SIZE
  ip_tunnel: Make none-tunnel-dst tunnel port work with lwtunnel
  sfc: suppress duplicate nvmem partition types in efx_ef10_mtd_probe
  gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change
  serial: 8250: Fix serial8250 initialization crash
  net/core/neighbour: fix kmemleak minimal reference count for hash tables
  PCI/MSI: Return -ENOSPC from pci_alloc_irq_vectors_affinity()
  net/core/neighbour: tell kmemleak about hash tables
  tipc: fix memory leak in tipc_nl_compat_publ_dump
  mtd: Check add_mtd_device() ret code
  lib/genalloc.c: include vmalloc.h
  drivers/base/platform.c: kmemleak ignore a known leak
  fork: fix some -Wmissing-prototypes warnings
  lib/genalloc.c: use vzalloc_node() to allocate the bitmap
  lib/genalloc.c: fix allocation of aligned buffer from non-aligned chunk
  vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n
  ocfs2: clear journal dirty flag after shutdown journal
  net/wan/fsl_ucc_hdlc: Avoid double free in ucc_hdlc_probe()
  tipc: fix a missing check of genlmsg_put
  atl1e: checking the status of atl1e_write_phy_reg
  net: dsa: bcm_sf2: Propagate error value from mdio_write
  net: stmicro: fix a missing check of clk_prepare
  net: (cpts) fix a missing check of clk_prepare
  um: Make GCOV depend on !KCOV
  f2fs: fix to dirty inode synchronously
  net/net_namespace: Check the return value of register_pernet_subsys()
  net/netlink_compat: Fix a missing check of nla_parse_nested
  pwm: clps711x: Fix period calculation
  crypto: mxc-scc - fix build warnings on ARM64
  powerpc/pseries: Fix node leak in update_lmb_associativity_index()
  powerpc/83xx: handle machine check caused by watchdog timer
  regulator: tps65910: fix a missing check of return value
  IB/rxe: Make counters thread safe
  drbd: fix print_st_err()'s prototype to match the definition
  drbd: do not block when adjusting "disk-options" while IO is frozen
  drbd: reject attach of unsuitable uuids even if connected
  drbd: ignore "all zero" peer volume sizes in handshake
  powerpc/powernv/eeh/npu: Fix uninitialized variables in opal_pci_eeh_freeze_status
  vfio/spapr_tce: Get rid of possible infinite loop
  powerpc/44x/bamboo: Fix PCI range
  powerpc/mm: Make NULL pointer deferences explicit on bad page faults.
  powerpc/prom: fix early DEBUG messages
  powerpc/perf: Fix unit_sel/cache_sel checks
  ath6kl: Fix off by one error in scan completion
  ath6kl: Only use match sets when firmware supports it
  scsi: csiostor: fix incorrect dma device in case of vport
  scsi: qla2xxx: deadlock by configfs_depend_item
  RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer
  openrisc: Fix broken paths to arch/or32
  serial: max310x: Fix tx_empty() callback
  Bluetooth: hci_bcm: Handle specific unknown packets after firmware loading
  drivers/regulator: fix a missing check of return value
  powerpc/xmon: fix dump_segments()
  powerpc/book3s/32: fix number of bats in p/v_block_mapped()
  vxlan: Fix error path in __vxlan_dev_create()
  clocksource/drivers/fttmr010: Fix invalid interrupt register access
  IB/qib: Fix an error code in qib_sdma_verbs_send()
  xfs: Fix bulkstat compat ioctls on x32 userspace.
  xfs: Align compat attrlist_by_handle with native implementation.
  gfs2: take jdata unstuff into account in do_grow
  dm flakey: Properly corrupt multi-page bios.
  HID: doc: fix wrong data structure reference for UHID_OUTPUT
  pinctrl: sh-pfc: sh7734: Fix shifted values in IPSR10
  pinctrl: sh-pfc: sh7264: Fix PFCR3 and PFCR0 register configuration
  KVM: s390: unregister debug feature on failing arch init
  bnxt_en: query force speeds before disabling autoneg mode.
  bnxt_en: Return linux standard errors in bnxt_ethtool.c
  exofs_mount(): fix leaks on failure exits
  net/mlx5: Continue driver initialization despite debugfs failure
  pinctrl: xway: fix gpio-hog related boot issues
  vfio-mdev/samples: Use u8 instead of char for handle functions
  xen/pciback: Check dev_data before using it
  kprobes/x86/xen: blacklist non-attachable xen interrupt functions
  serial: 8250: Rate limit serial port rx interrupts during input overruns
  HID: intel-ish-hid: fixes incorrect error handling
  btrfs: only track ref_heads in delayed_ref_updates
  mtd: rawnand: sunxi: Write pageprog related opcodes to WCMD_SET
  mmc: meson-gx: make sure the descriptor is stopped on errors
  VSOCK: bind to random port for VMADDR_PORT_ANY
  kvm: vmx: Set IA32_TSC_AUX for legacy mode guests
  gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB
  iwlwifi: move iwl_nvm_check_version() into dvm
  microblaze: move "... is ready" messages to arch/microblaze/Makefile
  microblaze: adjust the help to the real behavior
  ubi: Do not drop UBI device reference before using
  ubi: Put MTD device after it is not used
  xfs: require both realtime inodes to mount
  rtl818x: fix potential use after free
  mwifiex: debugfs: correct histogram spacing, formatting
  mwifiex: fix potential NULL dereference and use after free
  crypto: user - support incremental algorithm dumps
  scsi: lpfc: Enable Management features for IF_TYPE=6
  ACPI / LPSS: Ignore acpi_device_fix_up_power() return value
  ARM: ks8695: fix section mismatch warning
  PM / AVS: SmartReflex: NULL check before some freeing functions is not needed
  RDMA/vmw_pvrdma: Use atomic memory allocation in create AH
  ARM: OMAP1: fix USB configuration for device-only setups
  arm64: smp: Handle errors reported by the firmware
  arm64: mm: Prevent mismatched 52-bit VA support
  parisc: Fix HP SDC hpa address output
  parisc: Fix serio address output
  ARM: dts: imx53-voipac-dmm-668: Fix memory node duplication
  ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
  ARM: dts: Fix up SQ201 flash access
  scsi: lpfc: Fix dif and first burst use in write commands
  scsi: lpfc: Fix kernel Oops due to null pring pointers
  pwm: bcm-iproc: Prevent unloading the driver module while in use
  block: drbd: remove a stray unlock in __drbd_send_protocol()
  mac80211: fix station inactive_time shortly after boot
  ceph: return -EINVAL if given fsc mount option on kernel w/o support
  net: bcmgenet: reapply manual settings to the PHY
  scripts/gdb: fix debugging modules compiled with hot/cold partitioning
  watchdog: meson: Fix the wrong value of left time
  can: rx-offload: can_rx_offload_irq_offload_fifo(): continue on error
  can: rx-offload: can_rx_offload_irq_offload_timestamp(): continue on error
  can: rx-offload: can_rx_offload_offload_one(): use ERR_PTR() to propagate error value in case of errors
  can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM
  can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
  can: rx-offload: can_rx_offload_queue_tail(): fix error handling, avoid skb mem leak
  can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open
  can: peak_usb: report bus recovery as well
  bridge: ebtables: don't crash when using dnat target in output chains
  net: fec: add missed clk_disable_unprepare in remove
  clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call
  x86/resctrl: Prevent NULL pointer dereference when reading mondata
  idr: Fix idr_alloc_u32 on 32-bit systems
  clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18
  clk: at91: avoid sleeping early
  reset: fix reset_control_ops kerneldoc comment
  clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume
  ASoC: kirkwood: fix external clock probe defer
  reset: Fix memory leak in reset_control_array_put()
  ASoC: compress: fix unsigned integer overflow check
  ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX
  clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate
  Revert "KVM: nVMX: reset cache/shadows when switching loaded VMCS"
  UPSTREAM: dt-bindings: arm: coresight: Add support for coresight-loses-context-with-cpu
  BACKPORT: coresight: etm4x: Save/restore state across CPU low power states
  BACKPORT: ARM: 8900/1: UNWINDER_FRAME_POINTER implementation for Clang

Conflicts:
	Documentation/devicetree/bindings/arm/coresight.txt
	arch/arm/Makefile
	drivers/hid/hid-core.c
	kernel/exit.c

Reverted the downstream patch "HID: core: add usage_page_preceding flag for hid_concatenate_usage_page()"
as original issue got fixed with upstream changes.

Change-Id: I3b833825b3d1104fa07378caef144639074d0a0d
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-04-16 16:59:09 +05:30
Srinivasarao P
5cae863d50 Merge android-4.14.157 (13855a6) into msm-4.14
* refs/heads/tmp-13855a6:
  Linux 4.14.157
  x86/hyperv: mark hyperv_init as __init function
  KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel
  powerpc/book3s64: Fix link stack flush on context switch
  powerpc/64s: support nospectre_v2 cmdline option
  staging: comedi: usbduxfast: usbduxfast_ai_cmdtest rounding error
  USB: serial: option: add support for Foxconn T77W968 LTE modules
  USB: serial: option: add support for DW5821e with eSIM support
  USB: serial: mos7840: fix remote wakeup
  USB: serial: mos7720: fix remote wakeup
  USB: serial: mos7840: add USB ID to support Moxa UPort 2210
  appledisplay: fix error handling in the scheduled work
  USB: chaoskey: fix error case of a timeout
  usb-serial: cp201x: support Mark-10 digital force gauge
  usbip: Fix uninitialized symbol 'nents' in stub_recv_cmd_submit()
  usbip: tools: fix fd leakage in the function of read_attr_usbip_status
  virtio_ring: fix return code on DMA mapping fails
  media: imon: invalid dereference in imon_touch_event
  media: cxusb: detect cxusb_ctrl_msg error in query
  media: b2c2-flexcop-usb: add sanity checking
  media: uvcvideo: Fix error path in control parsing failure
  cpufreq: Add NULL checks to show() and store() methods of cpufreq
  media: usbvision: Fix races among open, close, and disconnect
  media: vivid: Fix wrong locking that causes race conditions on streaming stop
  media: vivid: Set vid_cap_streaming and vid_out_streaming to true
  nfc: port100: handle command failure cleanly
  nbd: prevent memory leak
  x86/speculation: Fix redundant MDS mitigation message
  x86/speculation: Fix incorrect MDS/TAA mitigation status
  x86/insn: Fix awk regexp warnings
  ARC: perf: Accommodate big-endian CPU
  ARM: 8904/1: skip nomap memblocks while finding the lowmem/highmem boundary
  ocfs2: remove ocfs2_is_o2cb_active()
  cpufreq: Skip cpufreq resume if it's not suspended
  arm64: fix for bad_mode() handler to always result in panic
  net: phy: dp83867: increase SGMII autoneg timer duration
  net: phy: dp83867: fix speed 10 in sgmii mode
  mm/memory_hotplug: don't access uninitialized memmaps in shrink_zone_span()
  md/raid10: prevent access of uninitialized resync_pages offset
  ath9k_hw: fix uninitialized variable data
  ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe
  KVM: MMU: Do not treat ZONE_DEVICE pages as being reserved
  Bluetooth: Fix invalid-free in bcsp_close()
  cfg80211: call disconnect_wk when AP stops
  ipv6: Fix handling of LLA with VRF and sockets bound to VRF
  mm/memory_hotplug: Do not unlock when fails to take the device_hotplug_lock
  i2c: uniphier-f: fix timeout error after reading 8 bytes
  spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch
  PCI: keystone: Use quirk to limit MRRS for K2G
  pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD
  pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT
  pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues
  cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces
  of: unittest: allow base devicetree to have symbol metadata
  net: bcmgenet: return correct value 'ret' from bcmgenet_power_down
  ACPICA: Use %d for signed int print formatting instead of %u
  vrf: mark skb for multicast or link-local as enslaved to VRF
  dlm: don't leak kernel pointer to userspace
  dlm: fix invalid free
  scsi: lpfc: Correct loss of fc4 type on remote port address change
  scsi: lpfc: fcoe: Fix link down issue after 1000+ link bounces
  scsi: megaraid_sas: Fix goto labels in error handling
  scsi: megaraid_sas: Fix msleep granularity
  scsi: mpt3sas: Fix driver modifying persistent data in Manufacturing page11
  scsi: mpt3sas: Don't modify EEDPTagMode field setting on SAS3.5 HBA devices
  scsi: mpt3sas: Fix Sync cache command failure during driver unload
  net: dsa: bcm_sf2: Turn on PHY to allow successful registration
  rtlwifi: rtl8192de: Fix misleading REG_MCUFWDL information
  wireless: airo: potential buffer overflow in sprintf()
  brcmsmac: never log "tid x is not agg'able" by default
  rtl8xxxu: Fix missing break in switch
  wlcore: Fix the return value in case of error in 'wlcore_vendor_cmd_smart_config_start()'
  wil6210: fix locking in wmi_call
  btrfs: avoid link error with CONFIG_NO_AUTO_INLINE
  audit: print empty EXECVE args
  clk: sunxi-ng: enable so-said LDOs for A64 SoC's pll-mipi clock
  openvswitch: fix linking without CONFIG_NF_CONNTRACK_LABELS
  sched/fair: Don't increase sd->balance_interval on newidle balance
  sched/topology: Fix off by one bug
  net: do not abort bulk send on BQL status
  ocfs2: fix clusters leak in ocfs2_defrag_extent()
  ocfs2: don't put and assigning null to bh allocated outside
  arm64: makefile fix build of .i file in external module case
  ntb: intel: fix return value for ndev_vec_mask()
  ntb_netdev: fix sleep time mismatch
  net: hns3: bugfix for buffer not free problem during resetting
  igb: shorten maximum PHC timecounter update interval
  mm/memory_hotplug: make add_memory() take the device_hotplug_lock
  fs/hfs/extent.c: fix array out of bounds read of array extent
  hfs: update timestamp on truncate()
  hfsplus: update timestamps on truncate()
  hfs: fix return value of hfs_get_block()
  hfsplus: fix return value of hfsplus_get_block()
  hfs: prevent btree data loss on ENOSPC
  hfsplus: prevent btree data loss on ENOSPC
  hfs: fix BUG on bnode parent update
  hfsplus: fix BUG on bnode parent update
  linux/bitmap.h: fix type of nbits in bitmap_shift_right()
  linux/bitmap.h: handle constant zero-size bitmaps correctly
  selftests/powerpc/cache_shape: Fix out-of-tree build
  selftests/powerpc/switch_endian: Fix out-of-tree build
  selftests/powerpc/signal: Fix out-of-tree build
  powerpc/xmon: Relax frame size for clang
  vfs: avoid problematic remapping requests into partial EOF block
  um: Make line/tty semantics use true write IRQ
  i2c: uniphier-f: fix race condition when IRQ is cleared
  i2c: uniphier-f: fix occasional timeout error
  i2c: uniphier-f: make driver robust against concurrency
  block: fix the DISCARD request merge
  macsec: let the administrator set UP state even if lowerdev is down
  macsec: update operstate when lower device changes
  mm/page-writeback.c: fix range_cyclic writeback vs writepages deadlock
  fs/ocfs2/dlm/dlmdebug.c: fix a sleep-in-atomic-context bug in dlm_print_one_mle()
  arm64: lib: use C string functions with KASAN enabled
  sparc64: Rework xchg() definition to avoid warnings.
  powerpc/process: Fix flush_all_to_thread for SPE
  bpf: devmap: fix wrong interface selection in notifier_call
  thermal: rcar_thermal: Prevent hardware access during system suspend
  selftests: watchdog: Fix error message.
  selftests: watchdog: fix message when /dev/watchdog open fails
  selftests/ftrace: Fix to test kprobe $comm arg only if available
  mfd: max8997: Enale irq-wakeup unconditionally
  mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well
  mfd: mc13xxx-core: Fix PMIC shutdown when reading ADC values
  mfd: arizona: Correct calling of runtime_put_sync
  net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode
  qlcnic: fix a return in qlcnic_dcb_get_capability()
  mISDN: Fix type of switch control variable in ctrl_teimanager
  f2fs: fix to spread clear_cold_data()
  rtc: s35390a: Change buf's type to u8 in s35390a_init
  ceph: fix dentry leak in ceph_readdir_prepopulate
  powerpc/pseries: Export raw per-CPU VPA data via debugfs
  sparc: Fix parport build warnings.
  spi: omap2-mcspi: Set FIFO DMA trigger level to word length
  s390/perf: Return error when debug_register fails
  atm: zatm: Fix empty body Clang warnings
  sunrpc: safely reallow resvport min/max inversion
  SUNRPC: Fix a compile warning for cmpxchg64()
  dm raid: avoid bitmap with raid4/5/6 journal device
  usbip: tools: fix atoi() on non-null terminated string
  USB: misc: appledisplay: fix backlight update_status return code
  PCI: vmd: Detach resources after stopping root bus
  macintosh/windfarm_smu_sat: Fix debug output
  ALSA: i2c/cs8427: Fix int to char conversion
  PM / Domains: Deal with multiple states but no governor in genpd
  kprobes, x86/ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack
  xfs: fix use-after-free race in xfs_buf_rele
  net: ena: Fix Kconfig dependency on X86
  net: fix warning in af_unix
  net: dsa: mv88e6xxx: Fix 88E6141/6341 2500mbps SERDES speed
  scsi: dc395x: fix DMA API usage in sg_update_list
  scsi: dc395x: fix dma API usage in srb_done
  ASoC: tegra_sgtl5000: fix device_node refcounting
  clk: at91: audio-pll: fix audio pmc type
  clk: mmp2: fix the clock id for sdh2_clk and sdh3_clk
  nvmet-fcloop: suppress a compiler warning
  crypto: ccree - avoid implicit enum conversion
  scsi: iscsi_tcp: Explicitly cast param in iscsi_sw_tcp_host_get_param
  scsi: isci: Change sci_controller_start_task's return type to sci_status
  scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler
  KVM/x86: Fix invvpid and invept register operand size in 64-bit mode
  KVM: nVMX: reset cache/shadows when switching loaded VMCS
  scsi: ips: fix missing break in switch
  qed: Align local and global PTT to propagate through the APIs.
  amiflop: clean up on errors during setup
  pwm: lpss: Only set update bit if we are actually changing the settings
  pinctrl: sunxi: Fix a memory leak in 'sunxi_pinctrl_build_state()'
  RDMA/bnxt_re: Fix qp async event reporting
  m68k: fix command-line parsing when passed from u-boot
  w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size).
  misc: mic: fix a DMA pool free failure
  gsmi: Fix bug in append_to_eventlog sysfs handler
  btrfs: handle error of get_old_root
  mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail
  spi: sh-msiof: fix deferred probing
  cdrom: don't attempt to fiddle with cdo->capability
  skd: fixup usage of legacy IO API
  ath10k: allocate small size dma memory in ath10k_pci_diag_write_mem
  brcmsmac: AP mode: update beacon when TIM changes
  EDAC, thunderx: Fix memory leak in thunderx_l2c_threaded_isr()
  powerpc/eeh: Fix use of EEH_PE_KEEP on wrong field
  powerpc/boot: Disable vector instructions
  powerpc: Fix signedness bug in update_flash_db()
  synclink_gt(): fix compat_ioctl()
  pty: fix compat ioctls
  gfs2: Fix marking bitmaps non-full
  printk: fix integer overflow in setup_log_buf()
  ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback
  mwifiex: Fix NL80211_TX_POWER_LIMITED
  platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi
  platform/x86: asus-nb-wmi: Support ALS on the Zenbook UX430UQ
  drm/i915/userptr: Try to acquire the page lock around set_page_dirty()
  mm/ksm.c: don't WARN if page is still mapped in remove_stable_node()
  Revert "fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()"
  virtio_console: allocate inbufs in add_port() only if it is needed
  nbd:fix memory leak in nbd_get_socket()
  tools: gpio: Correctly add make dependencies for gpio_utils
  gpio: max77620: Fixup debounce delays
  vhost/vsock: split packets to send using multiple buffers
  net/sched: act_pedit: fix WARN() in the traffic path
  net/mlxfw: Verify FSM error code translation doesn't exceed array size
  net/mlx5e: Fix set vf link state error flow
  sfc: Only cancel the PPS workqueue if it exists
  net: rtnetlink: prevent underflows in do_setvfinfo()
  net/mlx4_en: fix mlx4 ethtool -N insertion
  ANDROID: removed CONFIG_PM_WAKELOCKS

Conflicts:
	block/blk-merge.c
	drivers/pinctrl/qcom/pinctrl-spmi-gpio.c

Discarding the commit "block: fix the DISCARD request merge"
as it is causing stability issues.

Change-Id: I05fea476d3bce65663beac6552d7d5c6cd7445d5
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-04-16 16:45:40 +05:30
Saurabh Sahu
32d27dd89b bindings: clock: Add rpmcc support for SDM429W Clock Controller
Update the RPM Clock Controller for SDM429W device.

Change-Id: Ia9c979c0142d2b44497ac66377717cc38aaf7f2d
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-04-16 15:23:27 +05:30
Anmolpreet Kaur
f1670f0f4b smcinvoke : Add logging in smcinvoke driver
This change adds necessary logging in smcinvoke
driver for handling proper error conditions and
ease the debugging process.

Change-Id: Ic0d9694f299ba52ab2c556785e4a583a37400142
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-04-16 14:38:30 +05:30
YUE CHEN
5741617c76 msm: ais: check decode fmt for crop issue
Set the ipp CFG0 register for crop only if
both decode format and VC are the same.

Change-Id: I9aa97a075fbdd22695417e10ad6c18d14a61fb03
Signed-off-by: YUE CHEN <yueche@codeaurora.org>
2020-04-15 22:18:04 -07:00
Aniket Randive
5341976186 ARM: dts: msm: Program 5 GSI based HW accelerated EPs for SA515 USB EP
Increase the number of HW accelerated EPs to 5 for sa515 USB
interconnect to support telematics compositions having multiple
tethering interfaces.

Change-Id: I9b39703b50c975d9f5224ac1bef9029e63891fd6
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
2020-04-16 10:28:25 +05:30
rbandi
38f1e844d0 HID: qvr: axis orientation correction
Refactoring code to avoid sensor data
being copied twice.

Change-Id: I83bbc2da7777291c1560fe00675c603b087fa0ad
Signed-off-by: Rohit Bandi <rohitbandi@codeaurora.org>
2020-04-15 14:44:37 -07:00
Siddartha Mohanadoss
6d71c122ec ARM: dts: msm: Add MHI SoC reset offset
Add address offset to MHI SoC reset that is used by the
host to trigger a reset.

Change-Id: I41c67fe75feb45b7973d589f74d737357281f5df
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-04-15 11:17:55 -07:00
Siddartha Mohanadoss
fb0508848d msm: ep_pcie: Add Host reset address offset support
Host can initiate a SoC reset through MHI. This requires
the address offset specific to the chip from the SOC reset
request address. This change adds an optional property and
if this is present programs the offset address.

Change-Id: Ic5f03ce2fae250778ca187d967f54c0f7f94fb27
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-04-15 11:17:48 -07:00
Kiran Gunda
78107b4921 regulator: qpnp-amoled: Fix uninitialized variable warning
Variable 'rc' is used without being initialized. Fix it by
initializing it. While at it, return 'rc' instead of '0' at
the end of the function.

Change-Id: I33e33a4fff9c9d63d2c20de5971fbb417e01433c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-04-15 05:47:44 -07:00
Vasantha Balla
a78ee07896 vidc_3x: Fix qbuf error in gralloc buffers encoding
Partial cmo needs single mapping of dmabuf.But gfx
device does not follow above restriction. So ion
shows warning during begin_cpu_access of these buffers.
This will not cause functionality failure and hence
caching error is not returned in qbuf.

Change-Id: Ic114d10bc523384a651ba8a7d5888422a9c2b35a
Signed-off-by: Vasantha Balla <vballa@codeaurora.org>
2020-04-15 04:27:00 -07:00
Vasantha Balla
747b4a8b52 vidc_3x: Query Entropy property only for H264 format
V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE is valid for h264
format only. No need to call get_prop of this for other formats.

Change-Id: I620ca1a799479c42399e683d9cc6f187ff7c3626
Signed-off-by: Vasantha Balla <vballa@codeaurora.org>
2020-04-15 16:20:32 +05:30
Kaustubh Pandey
7f4367de87 net: rmnet: add ioctl support for IP route utility
Add a new define to support rmnet ioctl for IP ROUTE.

Change-Id: Ie95eea114d698a53a7c85bce0be9a5823f11ed80
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
2020-04-15 11:54:10 +05:30
Harry Yang
9da0096710 power: smb-lib: fix a mutex deadlock issue
An early error return without releasing a mutex in functon
smblib_vbus_regulator_enable will lead to deadlock in some
situation.

Fix it.

Change-Id: I41178ee3aadfae57566e5f14f81ed82b7b1986cc
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2020-04-14 23:14:19 -07:00
Srinivasarao P
77bcdd813c defconfig: disable PM_AUTOSLEEP and enable USB_RTL8152 for sm6150
Disable PM_AUTOSLEEP and enable USB_RTL8152 for sm6150 target to
align them with android base config.

Change-Id: Ifac26d00903a60626bd400b14f10c6b48cee2687
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-04-14 22:34:04 -07:00
Shilpa Suresh
9a7fd00f96 ARM: dts: msm: Disable minidump-id for Modem on SDM660
Disable the minidump-id property for Modem from dtsi in
SDM660. This property will be re-enabled when the
modem subsystem minidumps feature is enabled completely.

Change-Id: I87e194bb974226eb99404d32b5331dcfadf3e35d
Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
2020-04-14 21:07:41 -07:00
Sunil Paidimarri
a281690336 net: stmmac: use correct header type
Set hdr type to IPA_HDR_L2_802_1Q while registering
Tx/Rx properties in case vlan offload enabled.

Change-Id: I9ecb27d08667ce2c8b26ac0bef79503bcb5241b2
Acked-by: Abhishek Chauhan <abchauha@qti.qualcomm.com>
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2020-04-14 12:22:27 -07:00
Pooja Kumari
7fbc0a11ee msm: ipa3: enable uc stats for WDI2
Currently only uc stats is enabled only
for WDI3 IPA HW version 4.5. Enable it
for WDI2 as well.

Change-Id: I3c4f61a3e73d4e6dad917c6aee27f984cb62acab
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2020-04-14 12:18:48 -07:00
Pratham Pratap
a5e42eee12 defconfig: msm: Enable QTI composite gadget for SA515m
Enable config for qti_usb gadget to enable
usb_composition at boot time for SA515m.

Change-Id: I6ac943a56f4583d8d8c407b6a47ee6ee846cdd0c
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-04-14 20:37:50 +05:30
Vikram Sharma
8117dc595a msm: camera: hyp: To fix Stack overflow
Getting stack overflow due to wrong cmd when copy_from_user.
To avoid this added check for cmd, if cmd is valid then
copy_from_user else return error.

Change-Id: I4574cb6da94bea8a8ccd7d65fc6a526ccc90d46d
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-04-14 19:42:03 +05:30
Naveen Yadav
f8877306a8 clk: qcom: gcc-sdxprairie: Update frequency table for sdcc1_apps_clk_src
SDCC1 client need support of 144KHz and 400KHz frequency for
initialization. So add the support for the same.

Change-Id: I1178699225dd76f73eed6dbc8c9a3d72ec61e9dd
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-04-14 17:10:08 +05:30
Suraj Jaiswal
a3c525bde8 ARM: dts: msm: Remove early ethernet flag
Remove early ethernet flag as enable of early Ethernet is
dynamic.

Change-Id: I27848aa64bef2574cf31a12d641ec6a239e8ec1c
Acked-by: Suraj Jaiswal <jsuraj@codeaurora.org>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2020-04-14 17:01:55 +05:30
Lakshit Tyagi
1623240788 dtsi: SA8155: Early ethernet changes
Adding default mac address and change the delay values as per the
hw team suggestions.

Change-Id: I2d72fe8fd1ecb775ed9a021135d7644a6a8ad985
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2020-04-14 15:12:01 +05:30
Lakshit Tyagi
63bdcea685 defconfig: SA8155: Enable ebtables vlan filters
Enable vlan packet filtering using ebtables
on SA8155.

Change-Id: I31542a5341876ef74fd175b75a74c6fac0850de1
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2020-04-14 11:51:15 +05:30
Blagovest Kolenichev
cd67bf9df2 Merge android-4.14.156 (f9b4ab5) into msm-4.14
* refs/heads/tmp-f9b4ab5:
  FROMGIT: pinctrl: devicetree: Avoid taking direct reference to device name string
  ANDROID: uid_sys_stats: avoid double accounting of dying threads
  ANDROID: cuttlefish_defconfig: enable fs-verity
  BACKPORT:FROMGIT: coresight: replicator: Fix missing spin_lock_init()
  BACKPORT:FROMGIT: coresight: funnel: Fix missing spin_lock_init()
  BACKPORT:FROMGIT: coresight: Serialize enabling/disabling a link device.
  UPSTREAM: coresight: tmc-etr: Add barrier packets when moving offset forward
  UPSTREAM: coresight: tmc-etr: Decouple buffer sync and barrier packet insertion
  UPSTREAM: coresight: tmc: Make memory width mask computation into a function
  UPSTREAM: coresight: tmc-etr: Fix perf_data check
  UPSTREAM: coresight: tmc-etr: Fix updating buffer in not-snapshot mode.
  UPSTREAM: coresight: tmc-etr: Check if non-secure access is enabled
  UPSTREAM: coresight: tmc-etr: Handle memory errors
  BACKPORT: coresight: etr_buf: Consolidate refcount initialization
  UPSTREAM: coresight: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute
  UPSTREAM: coresight: Use coresight device names for sinks in PMU attribute
  UPSTREAM: coresight: tmc-etr: alloc_perf_buf: Do not call smp_processor_id from preemptible
  UPSTREAM: coresight: tmc-etr: Do not call smp_processor_id() from preemptible
  UPSTREAM: coresight: perf: Don't set the truncated flag in snapshot mode
  UPSTREAM: coresight: tmc-etf: Fix snapshot mode update function
  UPSTREAM: coresight: tmc-etr: Properly set AUX buffer head in snapshot mode
  UPSTREAM: coresight: funnel: Support static funnel
  UPSTREAM: coresight: tmc-etr: Add support for CPU-wide trace scenarios
  UPSTREAM: coresight: tmc-etr: Allocate and free ETR memory buffers for CPU-wide scenarios
  UPSTREAM: coresight: tmc-etr: Introduce the notion of IDR to ETR devices
  UPSTREAM: coresight: tmc-etr: Introduce the notion of reference counting to ETR devices
  UPSTREAM: coresight: tmc-etr: Introduce the notion of process ID to ETR devices
  UPSTREAM: coresight: tmc-etr: Create per-thread buffer allocation function
  UPSTREAM: coresight: tmc-etr: Refactor function tmc_etr_setup_perf_buf()
  UPSTREAM: coresight: Communicate perf event to sink buffer allocation functions
  UPSTREAM: coresight: perf: Refactor function free_event_data()
  UPSTREAM: coresight: perf: Clean up function etm_setup_aux()
  UPSTREAM: coresight: Properly address concurrency in sink::update() functions
  UPSTREAM: coresight: Properly address errors in sink::disable() functions
  UPSTREAM: coresight: Move reference counting inside sink drivers
  UPSTREAM: coresight: Adding return code to sink::disable() operation
  UPSTREAM: coresight: etm4x: Configure tracers to emit timestamps
  UPSTREAM: coresight: etm4x: Skip selector pair 0
  UPSTREAM: coresight: etm4x: Add kernel configuration for CONTEXTID
  UPSTREAM: coresight: pmu: Adding ITRACE property to cs_etm PMU
  UPSTREAM: coresight: tmc: Cleanup power management
  UPSTREAM: coresight: Fix freeing up the coresight connections
  UPSTREAM: coresight: tmc: Report DMA setup failures
  UPSTREAM: coresight: catu: fix clang build warning
  UPSTREAM: perf/core: Fix the address filtering fix
  UPSTREAM: perf, pt, coresight: Fix address filters for vmas with non-zero offset
  BACKPORT: perf: Copy parent's address filter offsets on clone
  UPSTREAM: coresight: Use event attributes for sink selection
  UPSTREAM: coresight: perf: Add "sinks" group to PMU directory
  BACKPORT: perf/aux: Make perf_event accessible to setup_aux()
  UPSTREAM: coresight: etb10: Add support for CLAIM tag
  UPSTREAM: coreisght: tmc: Claim device before use
  UPSTREAM: coresight: dynamic-replicator: Claim device for use
  UPSTREAM: coresight: funnel: Claim devices before use
  UPSTREAM: coresight: etmx: Claim devices before use
  UPSTREAM: coresight: Add support for CLAIM tag protocol
  UPSTREAM: coresight: dynamic-replicator: Handle multiple connections
  UPSTREAM: coresight: etb10: Handle errors enabling the device
  UPSTREAM: coresight: etm3: Add support for handling errors
  UPSTREAM: coresight: etm4x: Add support for handling errors
  UPSTREAM: coresight: tmc-etb/etf: Prepare to handle errors enabling
  UPSTREAM: coresight: tmc-etr: Handle errors enabling CATU
  UPSTREAM: coresight: tmc-etr: Refactor for handling errors
  UPSTREAM: coresight: Handle failures in enabling a trace path
  UPSTREAM: coresight: tmc: Fix byte-address alignment for RRP
  UPSTREAM: coresight: etm4x: Configure EL2 exception level when kernel is running in HYP
  UPSTREAM: coresight: etb10: Splitting function etb_enable()
  UPSTREAM: coresight: etb10: Refactor etb_drvdata::mode handling
  UPSTREAM: coresight: etm-perf: Add support for ETR backend
  UPSTREAM: coresight: perf: Remove set_buffer call back
  UPSTREAM: coresight: perf: Add helper to retrieve sink configuration
  UPSTREAM: coresight: perf: Remove reset_buffer call back for sinks
  UPSTREAM: coresight: Convert driver messages to dev_dbg
  UPSTREAM: coresight: tmc-etr: Relax collection of trace from sysfs mode
  UPSTREAM: coresight: tmc-etr: Handle driver mode specific ETR buffers
  UPSTREAM: coresight: perf: Disable trace path upon source error
  UPSTREAM: coresight: perf: Allow tracing on hotplugged CPUs
  UPSTREAM: coresight: perf: Avoid unncessary CPU hotplug read lock
  UPSTREAM: coresight: perf: Fix per cpu path management
  UPSTREAM: coresight: Fix handling of sinks
  UPSTREAM: coresight: Use ERR_CAST instead of ERR_PTR
  UPSTREAM: coresight: Fix remote endpoint parsing
  UPSTREAM: coresight: platform: Fix leaking device reference
  UPSTREAM: coresight: platform: Fix refcounting for graph nodes
  UPSTREAM: coresight: platform: Refactor graph endpoint parsing
  UPSTREAM: coresight: Document error handling in coresight_register
  UPSTREAM: coresight: catu: Plug in CATU as a backend for ETR buffer
  UPSTREAM: coresight: catu: Add support for scatter gather tables
  UPSTREAM: coresight: Introduce support for Coresight Address Translation Unit
  UPSTREAM: coresight: Add helper device type
  UPSTREAM: coresight: Cleanup device subtype struct
  UPSTREAM: coresight: Fix check in coresight_tmc_etr_buf_insert_barrier_packet
  UPSTREAM: coresight: include vmalloc.h for vmap/vunmap
  UPSTREAM: coresight: tmc: Add configuration support for trace buffer size
  UPSTREAM: coresight: tmc-etr buf: Add TMC scatter gather mode backend
  UPSTREAM: coresight: tmc-etr: Add transparent buffer management
  UPSTREAM: coresight: Add support for TMC ETR SG unit
  UPSTREAM: coresight: Add generic TMC sg table framework
  UPSTREAM: dts: bindings: Restrict coresight tmc-etr scatter-gather mode
  UPSTREAM: coresight: Add helper for inserting synchronization packets
  UPSTREAM: coresight: tmc-etr: Disallow perf mode
  UPSTREAM: coresight: tmc-etr: Do not clean trace buffer
  UPSTREAM: coresight: tmc: Hide trace buffer handling for file read
  UPSTREAM: coresight tmc etr: Fix uninitialised variable
  UPSTREAM: coresight tmc etr: Make memory check consistent in the same function
  UPSTREAM: coresight: use put_device() instead of kfree()
  UPSTREAM: perf/core: Fix bad use of igrab()
  UPSTREAM: coresight: Use PTR_ERR_OR_ZERO()
  ANDROID: nf: IDLETIMER: Fix possible use before initialization in idletimer_resume
  UPSTREAM: HID: steam: fix deadlock with input devices.
  UPSTREAM: HID: steam: fix boot loop with bluetooth firmware
  UPSTREAM: HID: steam: remove input device when a hid client is running.
  UPSTREAM: HID: steam: use hid_device.driver_data instead of hid_set_drvdata()
  UPSTREAM: HID: steam: add missing fields in client initialization
  UPSTREAM: HID: steam: add battery device.
  UPSTREAM: HID: add driver for Valve Steam Controller
  ANDROID: overlayfs: fix printk format
  BACKPORT: ANDROID: overlayfs: internal getxattr operations without sepolicy checking
  ANDROID: overlayfs: add __get xattr method
  ANDROID: Add optional __get xattr method paired to __vfs_getxattr
  ANDROID: regression introduced override_creds=off
  ANDROID: don't enable TOOLS_SUPPORT_RELR in all{mod,yes}config
  BACKPORT: dm bufio: introduce a global cache replacement
  BACKPORT: dm bufio: remove old-style buffer cleanup
  BACKPORT: dm bufio: introduce a global queue
  BACKPORT: dm bufio: refactor adjust_total_allocated
  BACKPORT: dm bufio: call adjust_total_allocated from __link_buffer and __unlink_buffer

Conflicts:
	Documentation/devicetree/bindings/arm/coresight.txt
	drivers/hwtracing/coresight/Makefile
	drivers/hwtracing/coresight/coresight-etm-perf.c
	drivers/hwtracing/coresight/coresight-funnel.c
	drivers/hwtracing/coresight/coresight-tmc-etf.c
	drivers/hwtracing/coresight/coresight-tmc-etr.c
	drivers/hwtracing/coresight/coresight-tmc.c
	drivers/hwtracing/coresight/coresight-tmc.h
	drivers/hwtracing/coresight/coresight.c
	drivers/hwtracing/coresight/of_coresight.c
	include/linux/coresight.h

Fixed build errors in below files:

	drivers/hwtracing/coresight/coresight-byte-cntr.c
	drivers/hwtracing/coresight/coresight-dummy.c
	drivers/hwtracing/coresight/coresight-funnel.c
	drivers/hwtracing/coresight/coresight-tmc-etr.c
	drivers/hwtracing/coresight/coresight-tmc.c
	drivers/hwtracing/coresight/coresight-tmc.h
	drivers/hwtracing/coresight/of_coresight.c

Below downstream changes are deprecated so removed unwanted code:

	coresight: byte-cntr: Add scatter-gather support for byte-counter
	coresight: tmc: add scatter-gather support for tmc etr

Change-Id: I945ffe94def441862a9fbad6b92e42fe44fa9451
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-04-14 10:44:08 +05:30
Guisen Yang
0057803af9 ARM: dts: msm: Change the address map for Rome
The start address of Rome is 0x10000000, but it's not
mapped correctly according to the ranges. Change the start
address of Rome to 0xa0000000 to match the addresses in
the defination of ranges.

CRs-Fixed: 2560804
Change-Id: Iea52f9cea1641432a2991aed64929bb9317f9ace
Signed-off-by: Guisen Yang <guiseny@codeaurora.org>
2020-04-13 17:54:45 -07:00
Skylar Chang
0ed740ec0a ipa3: add rt indices for ipv4/ipv6 on ipa4.5
Made the ipa-sram floor-plan changes to increase
routing table indices from 15 to 21 for more
use-cases.

Change-Id: Iff8df9e7f1875c39b68e5aae9cea327d9700d0a0
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2020-04-13 12:42:35 -07:00
Aniket Randive
d037144741 USB: gadget: support for dynamic read of usb composition
This change is used to pick one of the pid from
command line parameter and boot the gadget as
per the usb composition.

Change-Id: Ia49b8fd8431675a9fcbf7e7818650d9226fe8685
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
2020-04-13 12:24:52 -07:00
Ritesh Kumar
8602657a54 ARM: dts: msm: update clock entries to support cphy on atoll
Add cphy specific clock entries for DSI controller node on
atoll target.

Change-Id: I1acb09687332d282e85004c6755a56f99b07d3cc
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2020-04-13 09:41:40 -07:00
Jayadev K
08f01a5ee7 Revert "ARM: dts: qcom: Add device tree support for PN111 on SA6155"
This reverts commit 8104b99317aee369ca41b818fea6090be73e2af7 to
avoid boot failure.

Change-Id: Icbaab9e1b32ede43e07d7982345230639bf96290
Signed-off-by: Jayadev K <jayak@codeaurora.org>
2020-04-13 17:04:30 +05:30
Veera Vegivada
2ea871ff05 ARM: dts: msm: Add scc plls as fixed clocks for sm6150/sm8150
Add SCC PLLs as fixed clock because LPASS has ownership over
it and they are always enabled and running at fixed frequency.

Change-Id: I6c59b3398f652ebe4b4f48b5a25c9cd927c494d5
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-04-13 16:41:20 +05:30
Veera Vegivada
d97648e5a3 clk: qcom: scc: Remove support of SCC PLLs for 6150/8150
SCC PLLs are configured and enabled by LPASS.
HLOS should not configure, enable and disable them,
hence remove them.

Change-Id: Ib0289daa5052015b0694ee5f67bad76e232d8c14
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-04-13 16:39:11 +05:30
Naman Padhiar
8e724524a3 icnss: Check for modem shutdown on server arrive
If MODEM_SHUTDOWN flag is set on server arrive return
without performing any operation.

Change-Id: Ie27f4f3807546c5a36c710e4973d13c808932054
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-04-13 02:53:42 -07:00
Pavankumar Vijapur
2c8c906954 ARM: dts: Add new msm id for sa2150p
Add new msm id created for sa2150p

Change-Id: I00a3f4a91a0059a28fa2a1f3a342ef34a6300486
Signed-off-by: Pavankumar Vijapur <pvijapur@codeaurora.org>
2020-04-12 22:17:36 -07:00
Ivan Bornyakov
926789b4de nvme: host: core: fix precedence of ternary operator
commit e9a9853c23c13a37546397b61b270999fd0fb759 upstream.

Ternary operator have lower precedence then bitwise or, so 'cdw10' was
calculated wrong.

Signed-off-by: Ivan Bornyakov <brnkv.i1@gmail.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I149fe6f1c595335542950f8e71dd2c8fe3bf1e41
Git-commit: b6cdbf0f7cda1121bd92bdfd8523cfacddbe8097
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Manohar Vavilapalli <mvavilap@codeaurora.org>
2020-04-13 10:31:24 +05:30
Siddartha Mohanadoss
aad261f5bb msm: mhi_dev: Update detecting BME during link enumeration
During PCIe enumeration the device waits for the Bus Master Enable
to be set by the host and currently polls for this bit to be set.
The host driver could take longer to enable the Bus Master Enable
and can cause the device to timeout when set to polling mode.
Therefore rely on the Bus Master Enable interrupt that is triggered
on the device after host set this bit.

Change-Id: I15b106ca0bc06a75370d1e1b4a83e2d39af97fb8
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-04-10 10:16:29 -07:00
Rohith Kollalsi
96877042cf ARM: dts: msm: Set default mode for usb as none for sdx55
This particular platform doesn't support detection of cable
connect or disconnect, so set the default mode as none for USB
so that the USB subsystem stays in low power mode. And if user
wants to change the mode, they need to use the device attribute
"mode" to change into the required peripheral or host mode.

Change-Id: I693d23ee45c54d9bd09aaf1e5b1dbcdd84be4d7c
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2020-04-10 17:20:13 +05:30
Arun Kumar Neelakantam
5593a67ad0 qrtr: mhi-dev: Wait for RX channel to be enumerated
Registering only for endpoint RX channel to complete enumeration and
starting to open both RX/TX channels leads to race condition on TX channel.
Since the host does TX followed by RX init.

Wait for endpoint TX channel init to synchronise with host.

Change-Id: Ied002a89b51f71fa30cb7557f7dce27cfe1fd202
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2020-04-10 13:51:26 +05:30
Manu Gautam
b36dba2a91 USB: gadget: qti: Add sysfs node to unbind/bind gadget
In order to allow userspace change USB composition add
a sysfs node. It can be used by userspace to unbind
qti_usb gadget and enable new composition using configfs
if required.

Change-Id: I51b76fe935eabcbb132b77e447abb2c36f83ad83
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-04-09 21:41:42 -07:00
Rama Krishna Phani A
9f392e8ed3 ARM: dts: msm: update pcie IRQ's for sa8195p
Update PCIe interrupt numbers to correct values for sa8195p.

Change-Id: I2856e027c2ee22b05a0af849ace06c575b29620a
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2020-04-09 20:48:08 +05:30
Archit Saxena
04c6675bcd pinctrl: qcom: Add sdm429W pinctrl driver
Add initial pinctrl driver to support pin configuration with
pinctrl framework for sdm429W.This implementation is based
on snapshot of the msm8937 pinctrl driver from msm-4.9.

Change-Id: I86b8cf8d371395f0d1e54cd5c4cf22937d6709df
Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2020-04-09 20:12:59 +05:30
Archit Saxena
151ebb4163 ARM: msm: Add support for new board config SDM429W
This change adds  support for new board config arch SDM429W.

Change-Id: Ic47206a94bf64e1a97e88f6a41c989607e42f3bf
Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2020-04-09 20:05:29 +05:30
Ajay Agarwal
dca661a9dd usb: gadget: Fix interface descriptor fields for QTI functions
Currently many QTI function drivers are exposing incorrect
interface descriptor fields. Fix the same.

Change-Id: I06bd30c0374d57f7e0fe407e74f89b6e7eaf2db8
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-04-09 16:04:32 +05:30
Archit Saxena
ca2f28c9dc soc: qcom: socinfo: Add socinfo information for SDM429W
Add socinfo support for SDM429W  SoC and update the
bindings for the same.

Change-Id: Ic29fb6d1561c2c0de94223d976d23270df6d9e3c
Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
2020-04-09 15:55:06 +05:30
E V Ravi
b67d987630 msm: ais: Enable all IFE and CCI for sa8195
Modify max counts to enumerate all IFE and
CCI devices for sa8195.

Change-Id: I85625f66a3c3acd07107af0e2c7ad93e221a694c
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2020-04-09 02:00:18 -07:00
E V Ravi
2f33aa0d29 ARM: dts: msm: Added separate file for sa8195p camera
Added separate Camera dt files for sa8195p and added
new dt nodes to enable all IFE and CCI.

Change-Id: I2fbabfd254a0275483a7424a6848bddc3251924a
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2020-04-09 01:59:55 -07:00
Aniket Randive
26e2629e54 usb: misc: Add host driver support for telematics PIDs
Add host driver support for the new telematics PIDs
such as 910A, 910B, 910C and 910D.

Change-Id: Ic872ed72a943818eb9e24a68b69dde34b8f1a326
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
2020-04-09 11:33:48 +05:30
Jesson Li
be2845384f Bluetooth: qca: Add support for Genoa 2.0
Add support for Genoa 2.0.

Change-Id: I4f2bec44298a1b3471035eaf0d4540092e8a93ab
Signed-off-by: Jesson Li <lifei@codeaurora.org>
2020-04-09 11:44:01 +08:00
Da Hoon Pyun
7e06ec815b msm: npu: Disable NPU after SSR handling
After SSR handling, NPU needs to be disabled until the next
request to save power.

Change-Id: Ic4ff6d21d5854960d39f9a9f261422b177c6be20
Signed-off-by: Da Hoon Pyun <dpyun@codeaurora.org>
2020-04-08 11:06:43 -07:00
Da Hoon Pyun
da80174cba msm: npu: Increase timeout for NPU bringup to 60 seconds
The timeout to bringup the subsystem defined in PIL is 60 seconds.
This change is to set the timeout to wait for NPU bringup same
as the setting in PIL.

Change-Id: I2f76fc54ef711dd67404a4f06b2d1e4b4bfeba19
Signed-off-by: Da Hoon Pyun <dpyun@codeaurora.org>
2020-04-08 13:57:16 -04:00