Commit graph

593784 commits

Author SHA1 Message Date
Deepak Kumar
a68123258a msm: kgsl: Return supported page size based on available memory pools
In case memory pools are supported return the page size as
supported only if corresponding memory pool is available.
This will increase the usage of memory pool and will reduce the
overall allocation time.

Change-Id: Iea84a4259b38fe9cb546419dfcbaf0a9666e7ca9
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-09-01 06:00:48 -07:00
Linux Build Service Account
7683c6a144 Merge "f2fs: sanity check segment count" 2017-09-01 03:10:27 -07:00
Linux Build Service Account
d62c95453b Merge "ARM: dts: msm: fix size-cells for smb138x" 2017-09-01 03:10:26 -07:00
Linux Build Service Account
81730ec4ba Merge "ARM: dts: msm: update the battery profile for ascent 3450mAh battery" 2017-09-01 03:10:25 -07:00
Lingutla Chandrasekhar
af5a88a343 soc: qcom: dump current task stack and task_struct for minidump
Register the current stack and task_struct of all cpus to
the minidump table on panic.

Change-Id: I6906721f8c734dbf8142dc49e80dc730530f028c
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-09-01 02:51:08 -07:00
Vijay kumar Tumati
20e67d37ce ARM: dts: msm: enable camera on SDM636 MTP
Use board specific configuration to enable
voltage supply to camera actuators

Change-Id: I25fc1f0dc75a3acecd9b751029ed28b6db6ac97a
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2017-09-01 15:18:22 +05:30
Zhiqiang Tu
c140ef0eee Merge branch 'dev/msm-4.4-8996au' into msm-4.4
Change-Id: I9736089c23ce5dca4e4341406671269f19b7515f
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-09-01 10:30:44 +08:00
Terence Ho
36463959af msm: ais: Register and listen to bridge-chip interrupts
Changes that help facilitate sending the FPD-III to CSI bridge chip's
input signal status to the user-mode components.

Change-Id: I5e39c75b61f05edc8a1dc77677b9cad85fc563eb
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-09-01 10:27:55 +08:00
Subbaraman Narayanamurthy
b1c9e9171d power: qpnp-fg-gen3: apply SOC linearization based on user input
Currently, SOC linearization is done when SOC masking feature is
enabled to spread out the drop in SOC across a wider range and
for better user experience. Make this configurable through a DT
property "qcom,linearize-soc" so that the user can enable it as
and when required.

Change-Id: Ic9f5f04f4e872d7804152c17206a8b204de3a9c1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 19:25:34 -07:00
Subbaraman Narayanamurthy
2f60027ca7 power: qpnp-smb2: smb138x: change the vbus/vconn regulator_ops to static
Change the regulator_ops of vbus/vconn regulators in smb2 and
smb138x drivers to static. While at it, change the interrupt
handler smb138x_handle_slave_chg_state_change to static.

Change-Id: Iacd6b84adc6db1819b4a337aac9f6ccc52989dcd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 19:25:33 -07:00
Subbaraman Narayanamurthy
2f006f97f5 power: qpnp-fg-gen3: support JEITA thresholds configurable runtime
Currently, JEITA thresholds are configured through the device
tree properties. Allow them to be configured runtime through
power supply properties.

Change-Id: Ie93c7e447a4f8ac793e6e324f7a0269dbc14c7e5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 19:25:33 -07:00
Subbaraman Narayanamurthy
063d7870ec power_supply: add POWER_SUPPLY_PROP_{COLD,HOT}_TEMP properties
Add POWER_SUPPLY_PROP_COLD_TEMP and POWER_SUPPLY_PROP_HOT_TEMP
properties to represent Cold and Hot JEITA thresholds of the
battery.

Change-Id: Id5e16a4f7b20bb05d997277d20db05fc08db9f33
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 19:25:32 -07:00
Subbaraman Narayanamurthy
90d88df47e power: qpnp-fg-gen3: make CHARGE_FULL property writable by user
CHARGE_FULL property indicates the learnt capacity of the battery
from the last capacity learning cycle. However, in some rare
cases, if the learnt capacity is having an unexpected value, it
requires a reset to a good value which is not possible for an
user who cannot reinsert a battery or do an explicit write to FG
SRAM. Allowing CHARGE_FULL to be writable helps this.

Change-Id: I05aa8392f103685f8fc1ba5a3780122150be0ee6
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 19:25:31 -07:00
Subbaraman Narayanamurthy
887e3c2097 ARM: dts: msm: fix size-cells for smb138x
Fix the bad cell count warning coming from smb138x device by
setting size-cells correctly.

Change-Id: I050471d676c8a11737d9034bd25d3e9229591752
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 18:30:14 -07:00
Subbaraman Narayanamurthy
03c22f1938 ARM: dts: msm: update the battery profile for ascent 3450mAh battery
Update the battery profile for ascent 3450mAh battery based on
the latest characterization data.

Change-Id: I44e08b66d1f4dd424efc1595e3b4f3bbb2176a48
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-08-31 18:30:14 -07:00
Vidyakumar Athota
ff6c6abc1b soc: qcom: initialize glink link state
Initialize glink link state to GLINK_LINK_STATE_DOWN to
return error if userspace sends glink command packet
before glink link is up.

Change-Id: I79b5e4eb5a743dd0b118ba1b28523bfea24044d7
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-08-31 16:34:52 -07:00
Govind Singh
b5bc317b2a ath10k: Enable interrupt for pktlog CE11
WCN3990 uses CE11 for pktlog. Enable CE interrupts
for pktlog pipe for WCN3990 target.

Change-Id: I5af4e47bc31fe0d94cacae0305a90f698e2d5a51
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-08-31 07:34:33 -07:00
Linux Build Service Account
285229fa97 Merge "msm: vidc: Avoid setting internal scratch buffers if not required" 2017-08-31 05:08:57 -07:00
Linux Build Service Account
9edfa7b95a Merge "msm: vidc: use %pK instead of %p which respects kptr_restrict sysctl" 2017-08-31 05:08:55 -07:00
Linux Build Service Account
8e9a6e742b Merge "defconfig: Enable few configs for SDM660" 2017-08-31 05:08:55 -07:00
Govind Singh
49295d71cc ath10k: Enable sta idle powersave
Enable STA idle powersave for WCN3990.

Change-Id: I3dea0727464eda255fee50d21eee84919ab19205
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-08-31 03:30:49 -07:00
Mohammed Khajapasha
092475d1bf defconfig: msm: Disable DEVPORT config for sdm660
Disable CONFIG_DEVPORT config for sdm660.
As selinux policy requires this node to be not
accessible to userspace.

Change-Id: I163b5bc0ad1d97590f20ffc2392c36e03be3cbf2
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-08-31 15:17:24 +05:30
Liangliang Lu
3e24701fda ARM: dts: msm: Update HS PHY parameters for QRD SDM660/630
Update HS Phy parameters which has better eye diagram.

Change-Id: I2774dc4c5512ba156dacb23e454d3f65691d5a06
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-08-31 17:12:25 +08:00
Manoj Prabhu B
47fe494283 diag: Proper feature mask update to Glink supported peripherals
The patch re-enables updating APPS feature mask to GLINK
supported peripheral after peripheral's feature mask has been
processed and the proper transport has been updated. The patch
also corrects code indentation in buffers initialization.

CRs-Fixed: 2092758
Change-Id: Iaff5346dae833d6dbb576ca3a4a9dbdcf789a3c4
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-08-31 11:12:44 +05:30
Linux Build Service Account
09a04dabb6 Merge "ARM: dts: msm: update mincpu BW vote when Big CPU runs at Max freq" 2017-08-30 19:30:06 -07:00
Linux Build Service Account
fc9558666f Merge "drm/msm/sde: count null character for blob length" 2017-08-30 19:30:05 -07:00
Linux Build Service Account
b01b33489f Merge "msm: sde: fix deadlock issue in concurrency test" 2017-08-30 19:30:04 -07:00
Linux Build Service Account
c762445edd Merge "soc: qcom: glink: Initialize dummy xprt with dummy functions" 2017-08-30 19:30:03 -07:00
Linux Build Service Account
a13a87ba3a Merge "msm: ipa: Fix to use after free issue" 2017-08-30 19:30:02 -07:00
Linux Build Service Account
349cc845af Merge "msm: thermal: check LMH DCVS devicetree to enable reboot/suspend mitigation" 2017-08-30 19:30:00 -07:00
Lingutla Chandrasekhar
d67e8e7dfa defconfig: msm: enable Minidump support on SDM660
Enable Minidump support for SDM660 target.

Change-Id: Ic3792b9ff28ea006adf64180ae441886a426426d
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-08-30 19:26:42 +05:30
Linux Build Service Account
c9acad7278 Merge "msm: ipa3: Vote to IPA clocks when destroying MHI channels" 2017-08-30 06:26:19 -07:00
Linux Build Service Account
04e0dd59ce Merge "ARM: dts: msm: Add speed-bin 3 for sdm660" 2017-08-30 06:26:17 -07:00
Linux Build Service Account
8207427ffb Merge "ARM: dts: msm: Add minidump dt support for MSS subsystem on sdm660" 2017-08-30 06:26:16 -07:00
Linux Build Service Account
7392248e79 Merge "soc: qcom: Add SSR minidump provision for subsystem ramdump" 2017-08-30 06:26:15 -07:00
Linux Build Service Account
ed52938fc3 Merge "wil6210: fix interface-up check" 2017-08-30 06:26:11 -07:00
Greg Kroah-Hartman
610af855d9 This is the 4.4.85 stable release
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAlmmdSUACgkQONu9yGCS
 aT4lHg/7BJMLfX+Cu7XVaZgxNFym3gdh6+AnsSvqGqenbjRirCeh+bdK4u6iNM8v
 h8rGYyp92rYJ168piFxdsRoAl2u4dZBpczOqhpEkwFDx8tI+/B+icWeILI4SX0N2
 QWhim6tTTWy2Thw862M7lh5aJl2GxwJtxi/RXXzHq4u4w0NKPFUb+AfXEmUHDoXB
 Q6Hz8mo6dcjsW5gyNsBvsYQwvqHpB935Ok2Juz7dwarHx7CWJ+v2fqk9cIf3Nll8
 Ia04sg1HCRTePyWD0yld6jCpL51X2ZMVLa37RZCw/9WEDotFdVQO5NUg2ryCQQzN
 hNmoiJ47QLBXbZR2rQn5XEtSfWZtplOnm0tB+UYRvxJxtxJGzGTdwUNFdu4iBG4+
 xDSXbchTfyH7x93TxsvSZ+PS1NfFblYX8HETvoI2MO8PrGDdeHBZllVfF32xcK3L
 VyU+wA1L3quPk0h3MvaFXwoOW8gUAIUyQZEXGXOWTMFDCz88UeBbvPkRAfkyIeYs
 UhN8mlnM5cHhC3pPyQKFJ3kTFdQ6pZ79KLNqhvmordvfXBjTZwPt0zNYOlZKWTQR
 49WFvxEGH4B68TVc2D4mHGbciqtb+GoTQx4w3HsmyS6FF3hzPqR0L4UOvhiMaDVe
 kumziwhF9C6viis7dRlgXyJ5iydUJIcD5mJydfuPT2XIkG85eiU=
 =SWxy
 -----END PGP SIGNATURE-----

Merge 4.4.85 into android-4.4

Changes in 4.4.85
	af_key: do not use GFP_KERNEL in atomic contexts
	dccp: purge write queue in dccp_destroy_sock()
	dccp: defer ccid_hc_tx_delete() at dismantle time
	ipv4: fix NULL dereference in free_fib_info_rcu()
	net_sched/sfq: update hierarchical backlog when drop packet
	ipv4: better IP_MAX_MTU enforcement
	sctp: fully initialize the IPv6 address in sctp_v6_to_addr()
	tipc: fix use-after-free
	ipv6: reset fn->rr_ptr when replacing route
	ipv6: repair fib6 tree in failure case
	tcp: when rearming RTO, if RTO time is in past then fire RTO ASAP
	irda: do not leak initialized list.dev to userspace
	net: sched: fix NULL pointer dereference when action calls some targets
	net_sched: fix order of queue length updates in qdisc_replace()
	mei: me: add broxton pci device ids
	mei: me: add lewisburg device ids
	Input: trackpoint - add new trackpoint firmware ID
	Input: elan_i2c - add ELAN0602 ACPI ID to support Lenovo Yoga310
	ALSA: core: Fix unexpected error at replacing user TLV
	ALSA: hda - Add stereo mic quirk for Lenovo G50-70 (17aa:3978)
	ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses
	i2c: designware: Fix system suspend
	drm: Release driver tracking before making the object available again
	drm/atomic: If the atomic check fails, return its value first
	drm: rcar-du: lvds: Fix PLL frequency-related configuration
	drm: rcar-du: lvds: Rename PLLEN bit to PLLON
	drm: rcar-du: Fix crash in encoder failure error path
	drm: rcar-du: Fix display timing controller parameter
	drm: rcar-du: Fix H/V sync signal polarity configuration
	tracing: Fix freeing of filter in create_filter() when set_str is false
	cifs: Fix df output for users with quota limits
	cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup()
	nfsd: Limit end of page list when decoding NFSv4 WRITE
	perf/core: Fix group {cpu,task} validation
	Bluetooth: hidp: fix possible might sleep error in hidp_session_thread
	Bluetooth: cmtp: fix possible might sleep error in cmtp_session
	Bluetooth: bnep: fix possible might sleep error in bnep_session
	binder: use group leader instead of open thread
	binder: Use wake up hint for synchronous transactions.
	ANDROID: binder: fix proc->tsk check.
	iio: imu: adis16480: Fix acceleration scale factor for adis16480
	iio: hid-sensor-trigger: Fix the race with user space powering up sensors
	staging: rtl8188eu: add RNX-N150NUB support
	ASoC: simple-card: don't fail if sysclk setting is not supported
	ASoC: rsnd: disable SRC.out only when stop timing
	ASoC: rsnd: avoid pointless loop in rsnd_mod_interrupt()
	ASoC: rsnd: Add missing initialization of ADG req_rate
	ASoC: rsnd: ssi: 24bit data needs right-aligned settings
	ASoC: rsnd: don't call update callback if it was NULL
	ntb_transport: fix qp count bug
	ntb_transport: fix bug calculating num_qps_mw
	ACPI: ioapic: Clear on-stack resource before using it
	ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal
	Linux 4.4.85

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2017-08-30 14:35:43 +02:00
Mohammed Khajapasha
13657230ea defconfig: Enable few configs for SDM660
This change enables below list of configs to
address the VTS KernelConfig and KernelProcFileApiTest
test case failures for SDM660.

Enable configs:
CONFIG_QUOTA
CONFIG_QUOTA_NETLINK_INTERFACE
CONFIG_QFMT_V2
CONFIG_SECURITY_PERF_EVENTS_RESTRICT
CONFIG_TASKSTATS
CONFIG_TASK_XACCT
CONFIG_TASK_IO_ACCOUNTING
CONFIG_UID_SYS_STATS

Change-Id: I5aa724988c21fa02cdc88c89d9663d2939198943
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-08-30 16:58:34 +05:30
Linux Build Service Account
adb3863289 Merge "ARM: dts: msm: Add virtual platform specific pinctrl dtsi" into dev/msm-4.4-8996au 2017-08-30 02:27:59 -07:00
Ghanim Fodi
1afd570abc msm: ipa3: Vote to IPA clocks when destroying MHI channels
Due to the missing vote, un-clocked access to GSI registers
occurred when destroying MHI channels. Fix it by voting
to the clocks.

CRs-Fixed: 2097296
Change-Id: Ib4fe41ff87ecb9746617b1ed3e32cae740de0c7e
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2017-08-30 01:27:48 -07:00
Sravan Kumar Ambapuram
57cff14555 ARM: dts: msm: update mincpu BW vote when Big CPU runs at Max freq
Increase mincpu BW vote mapping for Big CPU Max frequency
to DDR Max frequency. This will help to reduce RAM access
latencies when CPU is running at max frequency.

Change-Id: I5f12ff09d5b2b94b1f02394219a3dcb4e56589e8
Signed-off-by: Sravan Kumar Ambapuram <asravan@codeaurora.org>
2017-08-30 13:53:43 +05:30
Greg Kroah-Hartman
717bd21f81 Linux 4.4.85 2017-08-30 10:19:42 +02:00
James Morse
12b25d2a52 ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal
commit 7d64f82cceb21e6d95db312d284f5f195e120154 upstream.

When removing a GHES device notified by SCI, list_del_rcu() is used,
ghes_remove() should call synchronize_rcu() before it goes on to call
kfree(ghes), otherwise concurrent RCU readers may still hold this list
entry after it has been freed.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: "Huang, Ying" <ying.huang@intel.com>
Fixes: 81e88fdc43 (ACPI, APEI, Generic Hardware Error Source POLL/IRQ/NMI notification type support)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:29 +02:00
Joerg Roedel
b526de00a9 ACPI: ioapic: Clear on-stack resource before using it
commit e3d5092b6756b9e0b08f94bbeafcc7afe19f0996 upstream.

The on-stack resource-window 'win' in setup_res() is not
properly initialized. This causes the pointers in the
embedded 'struct resource' to contain stale addresses.

These pointers (in my case the ->child pointer) later get
propagated to the global iomem_resources list, causing a #GP
exception when the list is traversed in
iomem_map_sanity_check().

Fixes: c183619b63 (x86/irq, ACPI: Implement ACPI driver to support IOAPIC hotplug)
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:29 +02:00
Logan Gunthorpe
4e5f2c2041 ntb_transport: fix bug calculating num_qps_mw
commit 8e8496e0e9564b66165f5219a4e8ed20b0d3fc6b upstream.

A divide by zero error occurs if qp_count is less than mw_count because
num_qps_mw is calculated to be zero. The calculation appears to be
incorrect.

The requirement is for num_qps_mw to be set to qp_count / mw_count
with any remainder divided among the earlier mws.

For example, if mw_count is 5 and qp_count is 12 then mws 0 and 1
will have 3 qps per window and mws 2 through 4 will have 2 qps per window.
Thus, when mw_num < qp_count % mw_count, num_qps_mw is 1 higher
than when mw_num >= qp_count.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Fixes: e26a5843f7 ("NTB: Split ntb_hw_intel and ntb_transport drivers")
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:29 +02:00
Logan Gunthorpe
1aac8ffd61 ntb_transport: fix qp count bug
commit cb827ee6ccc3e480f0d9c0e8e53eef55be5b0414 upstream.

In cases where there are more mw's than spads/2-2, the mw count gets
reduced to match the limitation. ntb_transport also tries to ensure that
there are fewer qps than mws but uses the full mw count instead of
the reduced one. When this happens, the math in
'ntb_transport_setup_qp_mw' will get confused and result in a kernel
paging request bug.

This patch fixes the bug by reducing qp_count to the reduced mw count
instead of the full mw count.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Fixes: e26a5843f7 ("NTB: Split ntb_hw_intel and ntb_transport drivers")
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:28 +02:00
Kuninori Morimoto
4ec0b2c2d2 ASoC: rsnd: don't call update callback if it was NULL
commit d7289565483c65094d0473555625a4acd89567d3 upstream.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:28 +02:00
Kuninori Morimoto
95fc5ef854 ASoC: rsnd: ssi: 24bit data needs right-aligned settings
commit f46a93b820eb3707faf238cd769a004e2504515f upstream.

Data left/right aligned is controlled by PDTA bit on SSICR.
But default is left-aligned. Thus 24bit sound will be very small sound
without this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:28 +02:00
Geert Uytterhoeven
fd504621fa ASoC: rsnd: Add missing initialization of ADG req_rate
commit 8b27418f300cafbdbbb8cfa9c29d398ed34d6723 upstream.

If the "clock-frequency" DT property is not found, req_rate is used
uninitialized, and the "audio_clkout" clock will be created with an
arbitrary clock rate.

This uninitialized kernel stack data may leak to userspace through
/sys/kernel/debug/clk/clk_summary, cfr. the value in the "rate" column:

       clock     enable_cnt  prepare_cnt        rate   accuracy   phase
    --------------------------------------------------------------------
     audio_clkout         0            0  4001836240          0 0

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:28 +02:00
Kuninori Morimoto
e974777b2e ASoC: rsnd: avoid pointless loop in rsnd_mod_interrupt()
commit 2daf71ad8da6cb57f919c9c876ee7e42530371df upstream.

Current Renesas sound driver doesn't have 1:1 relationship between
stream <-> mod because it is supporting MIX. Because of this reason
rsnd_mod_interrupt() is searching correspond mod by for loop.
But this loop is not needed, because each mod has own type.
This patch avoid pointless loop by using mod->type.

This patch is good for SSI-parent support, because stream might have
2 SSI as SSI-parent/child. SSI interrupt handler will be called twice
if stream has SSI-parent without this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-30 10:19:28 +02:00