This is the start of the stable review cycle for the 3.18.105 release.
There are 121 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Fri Apr 13 18:34:28 UTC 2018.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v3.x/stable-review/patch-3.18.105-r…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.18.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 3.18.105-rc1
Paolo Abeni <pabeni(a)redhat.com>
ipv6: the entire IPv6 header chain must fit the first fragment
Craig Dillabaugh <cdillaba(a)mojatatu.com>
net sched actions: fix dumping which requires several messages to user space
Heiner Kallweit <hkallweit1(a)gmail.com>
r8169: fix setting driver_data after register_netdev
Eric Dumazet <edumazet(a)google.com>
ip6_tunnel: better validate user provided tunnel names
Eric Dumazet <edumazet(a)google.com>
vti6: better validate user provided tunnel names
Eric Dumazet <edumazet(a)google.com>
ip6_gre: better validate user provided tunnel names
Eric Dumazet <edumazet(a)google.com>
ipv6: sit: better validate user provided tunnel names
Eric Dumazet <edumazet(a)google.com>
ip_tunnel: better validate user provided tunnel names
Eric Dumazet <edumazet(a)google.com>
net: fool proof dev_valid_name()
Xin Long <lucien.xin(a)gmail.com>
bonding: process the err returned by dev_set_allmulti properly in bond_enslave
Xin Long <lucien.xin(a)gmail.com>
bonding: move dev_mc_sync after master_upper_dev_link in bond_enslave
Xin Long <lucien.xin(a)gmail.com>
bonding: fix the err path for dev hwaddr sync in bond_enslave
Jason Wang <jasowang(a)redhat.com>
vhost: correctly remove wait queue during poll failure
Kai-Heng Feng <kai.heng.feng(a)canonical.com>
sky2: Increase D3 delay to sky2 stops working after suspend
Eric Dumazet <edumazet(a)google.com>
sctp: sctp_sockaddr_af must check minimal addr length for AF_INET6
Eric Dumazet <edumazet(a)google.com>
sctp: do not leak kernel memory to user space
Eric Dumazet <edumazet(a)google.com>
pptp: remove a buggy dst release in pptp_connect()
Alexander Potapenko <glider(a)google.com>
netlink: make sure nladdr has correct size in netlink_connect()
Eric Dumazet <edumazet(a)google.com>
net: fix possible out-of-bound read in skb_network_protocol()
Mel Gorman <mgorman(a)suse.de>
futex: Remove requirement for lock_page() in get_futex_key()
Theodore Ts'o <tytso(a)mit.edu>
random: use lockless method of accessing and updating f->reg_idx
Nathan Chancellor <natechancellor(a)gmail.com>
virtio_net: check return value of skb_to_sgvec in one more location
Jason A. Donenfeld <Jason(a)zx2c4.com>
virtio_net: check return value of skb_to_sgvec always
Jason A. Donenfeld <Jason(a)zx2c4.com>
rxrpc: check return value of skb_to_sgvec always
Jason A. Donenfeld <Jason(a)zx2c4.com>
ipsec: check return value of skb_to_sgvec always
Christophe JAILLET <christophe.jaillet(a)wanadoo.fr>
EDAC, mv64x60: Fix an error handling path
Tony Lindgren <tony(a)atomide.com>
tty: n_gsm: Allow ADM response in addition to UA for control dlci
chenxiang <chenxiang66(a)hisilicon.com>
scsi: libsas: initialize sas_phy status according to response of DISCOVER
Jason Yan <yanaijie(a)huawei.com>
scsi: libsas: fix error when getting phy events
Jason Yan <yanaijie(a)huawei.com>
scsi: libsas: fix memory leak in sas_smp_get_phy_events()
Tang Junhui <tang.junhui(a)zte.com.cn>
bcache: segregate flash only volume write streams
Tang Junhui <tang.junhui(a)zte.com.cn>
bcache: stop writeback thread after detaching
Roopa Prabhu <roopa(a)cumulusnetworks.com>
vxlan: dont migrate permanent fdb entries during learn
Bob Moore <robert.moore(a)intel.com>
ACPICA: Disassembler: Abort on an invalid/unknown AML opcode
Lv Zheng <lv.zheng(a)intel.com>
ACPICA: Events: Add runtime stub support for event APIs
Marcel Holtmann <marcel(a)holtmann.org>
Bluetooth: Send HCI Set Event Mask Page 2 command only when needed
Lorenzo Bianconi <lorenzo.bianconi83(a)gmail.com>
iio: magnetometer: st_magn_spi: fix spi_device_id table
Jag Raman <jag.raman(a)oracle.com>
sparc64: ldc abort during vds iso boot
Xin Long <lucien.xin(a)gmail.com>
sctp: fix recursive locking warning in sctp_do_peeloff
Mintz, Yuval <Yuval.Mintz(a)cavium.com>
bnx2x: Allow vfs to disable txvlan offload
Arnd Bergmann <arnd(a)arndb.de>
xen: avoid type warning in xchg_xen_ulong
Namhyung Kim <namhyung(a)kernel.org>
perf tests: Decompress kernel module before objdump
Christian Lamparter <chunkeey(a)googlemail.com>
net: emac: fix reset timeout with AR8035 phy
Marcin Nowakowski <marcin.nowakowski(a)imgtec.com>
MIPS: kprobes: flush_insn_slot should flush only if probe initialised
Marcin Nowakowski <marcin.nowakowski(a)imgtec.com>
MIPS: mm: fixed mappings: correct initialisation
Peter Zijlstra <peterz(a)infradead.org>
perf/core: Correct event creation with PERF_FORMAT_GROUP
Chris Wilson <chris(a)chris-wilson.co.uk>
e1000e: Undo e1000e_pm_freeze if __e1000_shutdown fails
Russell King <rmk+kernel(a)armlinux.org.uk>
net: phy: avoid genphy_aneg_done() for PHYs without clause 22 support
A Sun <as1033x(a)comcast.net>
mceusb: sporadic RX truncation corruption fix
Pan Bian <bianpan2016(a)163.com>
cx25840: fix unchecked return values
Jacob Keller <jacob.e.keller(a)intel.com>
e1000e: fix race condition around skb_tstamp_tx()
Robert Jarzmik <robert.jarzmik(a)free.fr>
tags: honor COMPILED_SOURCE with apart output directory
Milian Wolff <milian.wolff(a)kdab.com>
perf report: Ensure the perf DSO mapping matches what libdw sees
Talat Batheesh <talatb(a)mellanox.com>
net/mlx4: Fix the check in attaching steering rules
Jason A. Donenfeld <Jason(a)zx2c4.com>
skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow
Dmitry Monakhov <dmonakhov(a)openvz.org>
bio-integrity: Do not allocate integrity context for bio w/o data
Thomas Bogendoerfer <tsbogend(a)alpha.franken.de>
Fix serial console on SNI RM400 machines
Tomi Valkeinen <tomi.valkeinen(a)ti.com>
drm/omap: fix tiled buffer stride calculations
Jia-Ju Bai <baijiaju1990(a)163.com>
mISDN: Fix a sleep-in-atomic bug
Jia-Ju Bai <baijiaju1990(a)163.com>
qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M
Jiri Olsa <jolsa(a)kernel.org>
perf trace: Add mmap alias for s390
Michael Ellerman <mpe(a)ellerman.id.au>
powerpc/spufs: Fix coredump of SPU contexts
Roman Pen <roman.penyaev(a)profitbricks.com>
KVM: SVM: do not zero out segment attributes if segment is unusable or not present
Gustavo A. R. Silva <garsilva(a)embeddedor.com>
net: freescale: fix potential null pointer dereference
Vaibhav Jain <vaibhav(a)linux.vnet.ibm.com>
rtc: interface: Validate alarm-time before handling rollover
Will Deacon <will.deacon(a)arm.com>
arm64: futex: Fix undefined behaviour with FUTEX_OP_OPARG_SHIFT usage
Ivan Mikhaylov <ivan(a)de.ibm.com>
powerpc/[booke|4xx]: Don't clobber TCR[WP] when setting TCR[DIE]
Miklos Szeredi <mszeredi(a)redhat.com>
ovl: filter trusted xattr for non-admin
Firo Yang <firogm(a)gmail.com>
hdlcdrv: Fix divide by zero in hdlcdrv_ioctl
Colin Ian King <colin.king(a)canonical.com>
wl1251: check return from call to wl1251_acx_arp_ip_filter
Pieter \"PoroCYon\" Sluys <pcy(a)national.shitposting.agency>
vfb: fix video mode and line_length being set when loaded
Rafael David Tinoco <rafael.tinoco(a)canonical.com>
scsi: libiscsi: Allow sd_shutdown on bad transport
Hangbin Liu <liuhangbin(a)gmail.com>
l2tp: fix missing print session offset info
linzhang <xiaolou4617(a)gmail.com>
net: llc: add lock_sock in llc_ui_bind to avoid a race condition
Jan H. Schönherr <jschoenh(a)amazon.de>
KVM: nVMX: Fix handling of lmsw instruction
Nithin Sujir <nsujir(a)tintri.com>
bonding: Don't update slave->link until ready to commit
Roman Kapl <roman.kapl(a)sysgo.com>
net: move somaxconn init from sysctl code
Eryu Guan <eguan(a)redhat.com>
ext4: fix off-by-one on max nr_pages in ext4_find_unwritten_pgoff()
Michael Schmitz <schmitzmic(a)gmail.com>
fix race in drivers/char/random.c:get_reg()
Maurizio Lombardi <mlombard(a)redhat.com>
scsi: bnx2fc: fix race condition in bnx2fc_get_host_stats()
Liping Zhang <zlpnobody(a)gmail.com>
netfilter: ctnetlink: fix incorrect nf_ct_put during hash resize
Dan Carpenter <dan.carpenter(a)oracle.com>
libceph: NULL deref on crush_decode() error path
Dan Carpenter <dan.carpenter(a)oracle.com>
block: fix an error code in add_partition()
Tin Huynh <tnhuynh(a)apm.com>
leds: pca955x: Correct I2C Functionality
Kees Cook <keescook(a)chromium.org>
ray_cs: Avoid reading past end of buffer
Suman Anna <s-anna(a)ti.com>
ARM: davinci: da8xx: Create DSP device only when assigned memory
Antony Antony <antony(a)phenome.org>
xfrm: fix state migration copy replay sequence numbers
Michael Ellerman <mpe(a)ellerman.id.au>
selftests/powerpc: Fix TM resched DSCR test with some compilers
Colin Ian King <colin.king(a)canonical.com>
ath5k: fix memory leak on buf on failed eeprom read
Geert Uytterhoeven <geert+renesas(a)glider.be>
sh_eth: Use platform device for printing before register_netdev()
Alan Stern <stern(a)rowland.harvard.edu>
USB: ene_usb6250: fix SCSI residue overwriting
linzhang <xiaolou4617(a)gmail.com>
net: x25: fix one potential use-after-free issue
Alan Stern <stern(a)rowland.harvard.edu>
USB: ene_usb6250: fix first command execution
Jisheng Zhang <jszhang(a)marvell.com>
usb: chipidea: properly handle host or gadget initialization failure
Ihar Hrachyshka <ihrachys(a)redhat.com>
neighbour: update neigh timestamps iff update is effective
Thomas Petazzoni <thomas.petazzoni(a)free-electrons.com>
ata: libahci: properly propagate return value of platform_get_irq()
Colin Ian King <colin.king(a)canonical.com>
btrfs: fix incorrect error return ret being passed to mapping_set_error
Pan Bian <bianpan2016(a)163.com>
usb: dwc3: keystone: check return value
Anup Patel <anup.patel(a)broadcom.com>
async_tx: Fix DMA_PREP_FENCE usage in do_async_gen_syndrome()
Mahesh Bandewar <maheshb(a)google.com>
ipv6: avoid dad-failures for addresses with NODAD
Fabio Estevam <fabio.estevam(a)nxp.com>
ARM: dts: imx6qdl-wandboard: Fix audio channel swap
Peter Zijlstra <peterz(a)infradead.org>
x86/tsc: Provide 'tsc=unstable' boot parameter
Andrea della Porta <sfaragnaus(a)gmail.com>
staging: wlan-ng: prism2mgmt.c: fixed a double endian conversion before calling hfa384x_drvr_setconfig16, also fixes relative sparse warning
Dan Carpenter <dan.carpenter(a)oracle.com>
PowerCap: Fix an error code in powercap_register_zone()
Christophe JAILLET <christophe.jaillet(a)wanadoo.fr>
SMB2: Fix share type handling
Neil Horman <nhorman(a)tuxdriver.com>
vmxnet3: ensure that adapter is in proper state during force_close
Paul Mackerras <paulus(a)ozlabs.org>
KVM: PPC: Book3S PR: Check copy_to/from_user return values
Colin Ian King <colin.king(a)canonical.com>
netxen_nic: set rcode to the return status from the call to netxen_issue_cmd
Stefan Wahren <stefan.wahren(a)i2se.com>
net: qca_spi: Fix alignment issues in rx path
Rabin Vincent <rabinv(a)axis.com>
CIFS: silence lockdep splat in cifs_relock_file()
Talat Batheesh <talatb(a)mellanox.com>
net/mlx4_en: Avoid adding steering rules with invalid ring
Heiko Carstens <heiko.carstens(a)de.ibm.com>
s390: move _text symbol to address higher than zero
Kirill Tkhai <ktkhai(a)virtuozzo.com>
pidns: disable pid allocation if pid_ns_prepare_proc() is failed in alloc_pid()
J. Bruce Fields <bfields(a)redhat.com>
lockd: fix lockd shutdown race
Grygorii Strashko <grygorii.strashko(a)ti.com>
net: ethernet: ti: cpsw: adjust cpsw fifos depth for fullduplex flow control
Kees Cook <keescook(a)chromium.org>
qlge: Avoid reading past end of buffer
Kees Cook <keescook(a)chromium.org>
bna: Avoid reading past end of buffer
Luca Coelho <luciano.coelho(a)intel.com>
mac80211: bail out from prep_connection() if a reconfig is ongoing
Steffen Klassert <steffen.klassert(a)secunet.com>
af_key: Fix slab-out-of-bounds in pfkey_compile_policy.
Bart Van Assche <bart.vanassche(a)sandisk.com>
IB/srpt: Fix abort handling
Trond Myklebust <trond.myklebust(a)primarydata.com>
NFSv4.1: RECLAIM_COMPLETE must handle NFS4ERR_CONN_NOT_BOUND_TO_SESSION
-------------
Diffstat:
Makefile | 4 +-
arch/arm/boot/dts/imx6qdl-wandboard.dtsi | 1 +
arch/arm/include/asm/xen/events.h | 2 +-
arch/arm/mach-davinci/devices-da8xx.c | 10 +++
arch/arm64/include/asm/futex.h | 8 +-
arch/mips/include/asm/kprobes.h | 3 +-
arch/mips/mm/pgtable-32.c | 6 +-
arch/powerpc/kernel/time.c | 14 +++-
arch/powerpc/kvm/book3s_pr_papr.c | 34 ++++++--
arch/powerpc/platforms/cell/spufs/coredump.c | 2 +
arch/s390/kernel/vmlinux.lds.S | 8 +-
arch/sparc/kernel/ldc.c | 7 +-
arch/x86/kernel/tsc.c | 2 +
arch/x86/kvm/svm.c | 24 +++---
arch/x86/kvm/vmx.c | 7 +-
block/bio-integrity.c | 3 +
block/partition-generic.c | 4 +-
crypto/async_tx/async_pq.c | 5 +-
drivers/acpi/acpica/evxfevnt.c | 18 ++++
drivers/acpi/acpica/psobject.c | 14 ++++
drivers/ata/libahci_platform.c | 5 +-
drivers/char/random.c | 10 ++-
drivers/edac/mv64x60_edac.c | 2 +-
drivers/gpu/drm/omapdrm/omap_gem.c | 4 +-
drivers/iio/magnetometer/st_magn_spi.c | 2 -
drivers/infiniband/ulp/srpt/ib_srpt.c | 6 +-
drivers/isdn/mISDN/stack.c | 2 +-
drivers/leds/leds-pca955x.c | 2 +-
drivers/md/bcache/alloc.c | 19 +++--
drivers/md/bcache/super.c | 6 ++
drivers/media/i2c/cx25840/cx25840-core.c | 36 ++++----
drivers/media/rc/mceusb.c | 9 +-
drivers/net/bonding/bond_main.c | 84 ++++++++++---------
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 19 ++++-
drivers/net/ethernet/brocade/bna/bfa_ioc.c | 2 +-
drivers/net/ethernet/freescale/fsl_pq_mdio.c | 9 +-
drivers/net/ethernet/ibm/emac/core.c | 26 +++++-
drivers/net/ethernet/intel/e1000e/netdev.c | 17 +++-
drivers/net/ethernet/marvell/sky2.c | 2 +-
drivers/net/ethernet/mellanox/mlx4/mcg.c | 15 +++-
drivers/net/ethernet/mellanox/mlx4/qp.c | 13 +++
.../net/ethernet/qlogic/netxen/netxen_nic_ctx.c | 2 +-
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c | 2 +-
drivers/net/ethernet/qlogic/qlge/qlge_dbg.c | 4 +-
drivers/net/ethernet/qualcomm/qca_spi.c | 10 ++-
drivers/net/ethernet/realtek/r8169.c | 4 +-
drivers/net/ethernet/renesas/sh_eth.c | 2 +-
drivers/net/ethernet/ti/cpsw.c | 16 ++++
drivers/net/hamradio/hdlcdrv.c | 2 +
drivers/net/phy/phy.c | 6 ++
drivers/net/ppp/pptp.c | 1 -
drivers/net/virtio_net.c | 16 +++-
drivers/net/vmxnet3/vmxnet3_drv.c | 5 ++
drivers/net/vxlan.c | 2 +-
drivers/net/wireless/ath/ath5k/debug.c | 5 +-
drivers/net/wireless/ray_cs.c | 7 +-
drivers/net/wireless/ti/wl1251/main.c | 3 +-
drivers/powercap/powercap_sys.c | 1 +
drivers/rtc/interface.c | 9 +-
drivers/scsi/bnx2fc/bnx2fc.h | 1 +
drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 10 ++-
drivers/scsi/libiscsi.c | 24 +++++-
drivers/scsi/libsas/sas_expander.c | 4 +-
drivers/staging/wlan-ng/prism2mgmt.c | 2 +-
drivers/tty/n_gsm.c | 17 +++-
drivers/tty/serial/sccnxp.c | 15 ++--
drivers/usb/chipidea/core.c | 29 +++++--
drivers/usb/dwc3/dwc3-keystone.c | 4 +
drivers/usb/storage/ene_ub6250.c | 11 ++-
drivers/vhost/vhost.c | 3 +-
drivers/video/fbdev/vfb.c | 17 ++++
fs/btrfs/extent_io.c | 2 +-
fs/cifs/file.c | 2 +-
fs/cifs/smb2pdu.c | 14 ++--
fs/ext4/file.c | 2 +-
fs/lockd/svc.c | 6 +-
fs/nfs/nfs4proc.c | 7 +-
fs/nfs/nfs4state.c | 10 ++-
fs/overlayfs/inode.c | 12 ++-
include/linux/mlx4/qp.h | 1 +
include/linux/skbuff.h | 8 +-
include/net/x25.h | 4 +-
kernel/events/core.c | 15 ++--
kernel/futex.c | 98 ++++++++++++++++++++--
kernel/pid.c | 4 +-
net/bluetooth/hci_core.c | 17 +++-
net/ceph/osdmap.c | 1 +
net/core/dev.c | 4 +-
net/core/neighbour.c | 14 +++-
net/core/net_namespace.c | 19 +++++
net/core/skbuff.c | 65 +++++++++-----
net/core/sysctl_net_core.c | 2 -
net/ipv4/ah4.c | 8 +-
net/ipv4/esp4.c | 12 ++-
net/ipv4/ip_tunnel.c | 11 +--
net/ipv6/addrconf.c | 5 +-
net/ipv6/ah6.c | 8 +-
net/ipv6/esp6.c | 12 ++-
net/ipv6/ip6_gre.c | 8 +-
net/ipv6/ip6_output.c | 13 ++-
net/ipv6/ip6_tunnel.c | 7 +-
net/ipv6/ip6_vti.c | 7 +-
net/ipv6/sit.c | 8 +-
net/key/af_key.c | 2 +-
net/l2tp/l2tp_netlink.c | 2 +
net/llc/af_llc.c | 3 +
net/mac80211/mlme.c | 4 +
net/netfilter/nf_conntrack_netlink.c | 7 +-
net/netlink/af_netlink.c | 3 +
net/rxrpc/rxkad.c | 21 +++--
net/sched/act_api.c | 4 +-
net/sctp/ipv6.c | 4 +-
net/sctp/socket.c | 17 ++--
net/x25/af_x25.c | 24 ++++--
net/x25/sysctl_net_x25.c | 5 +-
net/xfrm/xfrm_state.c | 2 +
scripts/tags.sh | 1 +
tools/perf/builtin-trace.c | 4 +
tools/perf/tests/code-reading.c | 20 ++++-
tools/perf/util/unwind-libdw.c | 8 ++
.../testing/selftests/powerpc/tm/tm-resched-dscr.c | 2 +-
121 files changed, 925 insertions(+), 314 deletions(-)
Hi,
[This is an automated email]
This commit has been processed because it contains a "Fixes:" tag,
fixing commit: c71bf099abdd Btrfs: Avoid orphan inodes cleanup while replaying log.
The bot has also determined it's probably a bug fixing patch. (score: 6.2138)
The bot has tested the following trees: v4.16.1, v4.15.16, v4.14.33, v4.9.93, v4.4.127.
v4.16.1: Build OK!
v4.15.16: Build OK!
v4.14.33: Build OK!
v4.9.93: Build failed! Errors:
tree-log.c:2367:24: error: ‘struct btrfs_fs_info’ has no member named ‘sectorsize’
tree-log.c:2367:24: error: ‘struct btrfs_fs_info’ has no member named ‘sectorsize’
tree-log.c:4224:13: error: ‘struct inode’ has no member named ‘flags’; did you mean ‘i_flags’?
tree-log.c:4229:38: error: ‘struct inode’ has no member named ‘vfs_inode’
tree-log.c:4239:4: error: implicit declaration of function ‘refcount_inc’; did you mean ‘i_readcount_inc’? [-Werror=implicit-function-declaration]
v4.4.127: Failed to apply! Possible dependencies:
0132761017e0 ("btrfs: fix string and comment grammatical issues and typos")
--
Thanks,
Sasha
The patch
ASoC: fsl_esai: Fix divisor calculation failure at lower ratio
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From c656941df9bc80f7ec65b92ca73c42f8b0b62628 Mon Sep 17 00:00:00 2001
From: Nicolin Chen <nicoleotsuka(a)gmail.com>
Date: Sun, 8 Apr 2018 16:57:35 -0700
Subject: [PATCH] ASoC: fsl_esai: Fix divisor calculation failure at lower
ratio
When the desired ratio is less than 256, the savesub (tolerance)
in the calculation would become 0. This will then fail the loop-
search immediately without reporting any errors.
But if the ratio is smaller enough, there is no need to calculate
the tolerance because PM divisor alone is enough to get the ratio.
So a simple fix could be just to set PM directly instead of going
into the loop-search.
Reported-by: Marek Vasut <marex(a)denx.de>
Signed-off-by: Nicolin Chen <nicoleotsuka(a)gmail.com>
Tested-by: Marek Vasut <marex(a)denx.de>
Reviewed-by: Fabio Estevam <fabio.estevam(a)nxp.com>
Signed-off-by: Mark Brown <broonie(a)kernel.org>
Cc: stable(a)vger.kernel.org
---
sound/soc/fsl/fsl_esai.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index 40a700493f4c..da8fd98c7f51 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -144,6 +144,13 @@ static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio,
psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8;
+ /* Do not loop-search if PM (1 ~ 256) alone can serve the ratio */
+ if (ratio <= 256) {
+ pm = ratio;
+ fp = 1;
+ goto out;
+ }
+
/* Set the max fluctuation -- 0.1% of the max devisor */
savesub = (psr ? 1 : 8) * 256 * maxfp / 1000;
--
2.17.0
Hi,
Did you get a chance to review my below email? Kindly let me know your
requirements and I will get back with detailed information on the same.
Warm Regards,
Annette Ryan