Linux 3.16.80
I'm announcing the release of the 3.16.80 kernel.
All users of the 3.16 kernel series should upgrade.
The updated 3.16.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git
The diff from 3.16.79 is attached to this message.
Ben.
------------
Documentation/usb/rio.txt | 138 ----- MAINTAINERS | 7 - Makefile | 2 +- arch/arc/kernel/perf_event.c | 4 +- arch/arm/configs/badge4_defconfig | 1 - arch/arm/configs/corgi_defconfig | 1 - arch/arm/configs/s3c2410_defconfig | 1 - arch/arm/configs/spitz_defconfig | 1 - arch/arm/mm/alignment.c | 44 +- arch/mips/bcm63xx/prom.c | 2 +- arch/mips/configs/mtx1_defconfig | 1 - arch/mips/configs/rm200_defconfig | 1 - arch/mips/include/asm/bmips.h | 10 +- arch/mips/kernel/smp-bmips.c | 8 +- arch/mips/mm/tlbex.c | 23 +- arch/parisc/mm/ioremap.c | 12 +- arch/powerpc/configs/c2k_defconfig | 1 - arch/s390/mm/cmm.c | 12 +- arch/x86/kernel/cpu/perf_event_amd_ibs.c | 5 +- arch/x86/kernel/early-quirks.c | 2 + arch/xtensa/kernel/xtensa_ksyms.c | 7 - drivers/block/drbd/drbd_main.c | 1 - drivers/char/virtio_console.c | 28 +- drivers/clk/at91/clk-main.c | 5 +- drivers/clk/at91/clk-slow.c | 15 +- drivers/clk/samsung/clk-exynos5420.c | 6 + drivers/gpu/drm/radeon/si_dpm.c | 1 + drivers/hid/hid-core.c | 7 +- drivers/infiniband/core/cma.c | 3 +- drivers/media/usb/stkwebcam/stk-webcam.c | 3 +- drivers/memstick/host/jmb38x_ms.c | 2 +- drivers/net/bonding/bond_main.c | 6 +- drivers/net/can/c_can/c_can.c | 25 +- drivers/net/can/c_can/c_can.h | 1 + drivers/net/can/usb/peak_usb/pcan_usb.c | 17 +- drivers/net/can/usb/usb_8dev.c | 3 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 15 +- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 1 + drivers/net/ethernet/broadcom/genet/bcmmii.c | 6 +- drivers/net/ethernet/sfc/ptp.c | 3 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + drivers/net/phy/bcm7xxx.c | 1 + drivers/net/usb/hso.c | 12 +- drivers/net/xen-netback/interface.c | 1 - drivers/pci/pci.c | 24 +- drivers/s390/scsi/zfcp_fsf.c | 16 +- drivers/scsi/lpfc/lpfc_nportdisc.c | 4 +- drivers/scsi/qla2xxx/qla_os.c | 4 + drivers/scsi/scsi_sysfs.c | 11 +- drivers/scsi/sd.c | 3 +- .../staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 2 +- drivers/tty/serial/uartlite.c | 3 +- drivers/usb/class/usblp.c | 12 +- drivers/usb/gadget/atmel_usba_udc.c | 6 +- drivers/usb/gadget/dummy_hcd.c | 3 +- drivers/usb/gadget/lpc32xx_udc.c | 6 +- drivers/usb/host/xhci.c | 30 +- drivers/usb/image/microtek.c | 4 + drivers/usb/misc/Kconfig | 10 - drivers/usb/misc/Makefile | 1 - drivers/usb/misc/adutux.c | 19 +- drivers/usb/misc/iowarrior.c | 9 +- drivers/usb/misc/ldusb.c | 50 +- drivers/usb/misc/legousbtower.c | 63 +-- drivers/usb/misc/rio500.c | 578 --------------------- drivers/usb/misc/rio500_usb.h | 37 -- drivers/usb/misc/usblcd.c | 33 +- drivers/usb/misc/yurex.c | 18 +- drivers/usb/renesas_usbhs/common.h | 1 + drivers/usb/renesas_usbhs/fifo.c | 2 +- drivers/usb/renesas_usbhs/fifo.h | 1 + drivers/usb/renesas_usbhs/mod_gadget.c | 18 +- drivers/usb/renesas_usbhs/pipe.c | 15 + drivers/usb/renesas_usbhs/pipe.h | 1 + drivers/usb/serial/ftdi_sio.c | 3 + drivers/usb/serial/ftdi_sio_ids.h | 9 + drivers/usb/serial/keyspan.c | 4 +- drivers/usb/serial/ti_usb_3410_5052.c | 10 +- drivers/usb/serial/usb-serial.c | 5 +- drivers/usb/serial/whiteheat.c | 13 +- drivers/usb/serial/whiteheat.h | 2 +- drivers/usb/usb-skeleton.c | 15 +- drivers/video/fbdev/omap2/dss/dss.c | 2 +- fs/btrfs/file.c | 36 +- fs/ceph/caps.c | 10 +- fs/ceph/inode.c | 1 + fs/ceph/mds_client.c | 21 +- fs/cifs/dir.c | 8 +- fs/cifs/file.c | 6 + fs/cifs/inode.c | 53 +- fs/cifs/smb1ops.c | 3 + fs/dcache.c | 2 +- fs/ecryptfs/inode.c | 19 +- fs/fuse/dir.c | 13 + fs/fuse/file.c | 10 +- include/linux/gfp.h | 22 + include/linux/hrtimer.h | 2 + include/linux/usb/gadget.h | 10 + include/net/inetpeer.h | 1 + include/net/ip_vs.h | 1 + include/net/netfilter/nf_tables.h | 3 +- include/net/sock.h | 11 +- kernel/hrtimer.c | 1 + kernel/panic.c | 1 + kernel/sched/fair.c | 36 +- kernel/time/tick-broadcast-hrtimer.c | 57 +- kernel/trace/trace.c | 17 +- lib/dump_stack.c | 7 +- mm/hugetlb_cgroup.c | 2 +- mm/ksm.c | 14 +- mm/memcontrol.c | 2 +- mm/slub.c | 13 +- mm/vmstat.c | 2 +- net/batman-adv/bat_iv_ogm.c | 61 ++- net/batman-adv/hard-interface.c | 2 + net/batman-adv/types.h | 3 + net/dccp/ipv4.c | 4 +- net/ipv4/datagram.c | 2 +- net/ipv4/inetpeer.c | 1 + net/ipv4/route.c | 12 +- net/ipv4/tcp_ipv4.c | 4 +- net/ipv6/ip6_input.c | 10 + net/llc/llc_s_ac.c | 12 +- net/llc/llc_sap.c | 23 +- net/mac80211/mlme.c | 5 +- net/netfilter/ipset/ip_set_core.c | 8 +- net/netfilter/ipvs/ip_vs_ctl.c | 15 +- net/nfc/llcp_sock.c | 7 +- net/sched/act_api.c | 12 +- net/sched/act_pedit.c | 4 +- net/sched/sch_cbq.c | 31 +- net/sched/sch_dsmark.c | 2 + net/sched/sch_netem.c | 2 + net/sctp/socket.c | 2 +- net/wireless/nl80211.c | 3 +- sound/core/timer.c | 67 ++- sound/firewire/bebob/bebob_focusrite.c | 3 + sound/firewire/bebob/bebob_stream.c | 3 +- sound/soc/kirkwood/kirkwood-i2s.c | 8 +- sound/usb/endpoint.c | 3 + sound/usb/mixer.c | 4 +- tools/perf/util/hist.c | 2 +- 142 files changed, 957 insertions(+), 1235 deletions(-)
Al Viro (3):
ceph: add missing check in d_revalidate snapdir handling
ecryptfs_lookup_interpose(): lower_dentry->d_inode is not stable
ecryptfs_lookup_interpose(): lower_dentry->d_parent is not stable eitherAlan Stern (2):
USB: yurex: Don't retry on unexpected errors
USB: gadget: Reject endpoints with 0 maxpacket value
Alex Deucher (1):
drm/radeon: fix si_enable_smc_cac() failed issue
Alexandre Belloni (1):
clk: at91: avoid sleeping early
Alexey Brodkin (1):
ARC: perf: Accommodate big-endian CPU
Andreas Sandberg (1):
tick: hrtimer-broadcast: Prevent endless restarting when broadcast device is unused
Andrey Ryabinin (1):
mm/ksm.c: don't WARN if page is still mapped in remove_stable_node()
Balasubramani Vivekanandan (1):
tick: broadcast-hrtimer: Fix a race in bc_set_next
Bart Van Assche (1):
RDMA/iwcm: Fix a lock inversion issue
Bastien Nocera (1):
USB: rio500: Remove Rio 500 kernel driver
Ben Hutchings (1):
Linux 3.16.80
Beni Mahler (1):
USB: serial: ftdi_sio: add device IDs for Sienna and Echelon PL-20
Christophe JAILLET (1):
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'
Cristian Birsan (1):
usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.
Dan Carpenter (3):
USB: legousbtower: fix a signedness bug in tower_probe()
netfilter: ipset: Fix an error code in ip_set_sockfn_get()
block: drbd: remove a stray unlock in __drbd_send_protocol()
Daniel Wagner (1):
scsi: lpfc: Honor module parameter lpfc_use_adisc
Davide Caratti (1):
net/sched: act_pedit: fix WARN() in the traffic path
Denis Efremov (1):
staging: rtl8188eu: fix HighestRate check in odm_ARFBRefresh_8188E()
Doug Berger (2):
net: phy: bcm7xxx: define soft_reset for 40nm EPHY
net: bcmgenet: reset 40nm EPHY on energy detect
Eric Biggers (1):
llc: fix sk_buff leak in llc_sap_state_process()
Eric Dumazet (8):
sch_cbq: validate TCA_CBQ_WRROPT to avoid crash
ipv6: drop incoming packets having a v4mapped source address
sch_dsmark: fix potential NULL deref in dsmark_init()
nfc: fix memory leak in llcp_sock_bind()
net: avoid potential infinite loop in tc_ctl_action()
ipvs: move old_secure_tcp into struct netns_ipvs
inet: stop leaking jiffies on the wire
dccp: do not leak jiffies on the wire
Filipe Manana (1):
Btrfs: check for the full sync flag while holding the inode lock during fsync
Florian Fainelli (1):
net: bcmgenet: Fix RGMII_MODE_EN value for GENET v1/2/3
Gustavo A. R. Silva (1):
usb: udc: lpc32xx: fix bad bit shift operation
Helge Deller (1):
parisc: Fix vmap memory leak in ioremap()/iounmap()
Henry Lin (1):
ALSA: usb-audio: not submit urb for stopped endpoint
[email protected] (1):
USB: dummy-hcd: fix power budget for SuperSpeed mode
Jakub Kicinski (1):
net: netem: correct the parent's backlog when corrupted packet was dropped
Jan Schmidt (1):
xhci: Check all endpoints for LPM timeout
Jeff Layton (1):
ceph: just skip unrecognized info in ceph_reply_info_extra
Jiri Olsa (1):
perf tools: Fix time sorting
Johan Hovold (30):
hso: fix NULL-deref on tty open
USB: serial: keyspan: fix NULL-derefs on open() and write()
USB: microtek: fix info-leak at probe
USB: adutux: fix NULL-derefs on disconnect
USB: usblcd: fix I/O after disconnect
USB: legousbtower: fix slab info leak at probe
USB: legousbtower: fix deadlock on disconnect
USB: legousbtower: fix potential NULL-deref on disconnect
USB: legousbtower: fix open after failed reset request
USB: usb-skeleton: fix runtime PM after driver unbind
USB: usblp: fix runtime PM after driver unbind
USB: serial: fix runtime PM after driver unbind
media: stkwebcam: fix runtime PM after driver unbind
USB: usb-skeleton: fix NULL-deref on disconnect
USB: legousbtower: fix use-after-free on release
USB: ldusb: fix NULL-derefs on driver unbind
USB: adutux: fix use-after-free on release
USB: iowarrior: fix use-after-free on release
USB: iowarrior: fix use-after-free after driver unbind
USB: yurex: fix NULL-derefs on disconnect
USB: ldusb: fix memleak on disconnect
USB: legousbtower: fix memleak on disconnect
USB: usblp: fix use-after-free on disconnect
USB: serial: ti_usb_3410_5052: fix port-close races
USB: ldusb: fix read info leaks
USB: ldusb: fix ring-buffer locking
USB: ldusb: fix control-message timeout
USB: serial: whiteheat: fix potential slab corruption
USB: serial: whiteheat: fix line-speed endianness
can: usb_8dev: fix use-after-free on disconnect
Jonas Gorski (1):
MIPS: bmips: mark exception vectors as char arrays
Jose Abreu (1):
net: stmmac: Correctly take timestamp for PTPv2
Juergen Gross (1):
xen/netback: fix error path of xenvif_connect_data()
Kai-Heng Feng (1):
x86/quirks: Disable HPET on Intel Coffe Lake platforms
Kevin Hao (1):
dump_stack: avoid the livelock of the dump_lock
Kim Phillips (2):
perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
Kurt Van Dijck (1):
can: c_can: c_can_poll(): only read status register after status IRQ
Laurent Vivier (1):
virtio_console: allocate inbufs in add_port() only if it is needed
Lorenzo Bianconi (1):
net: ipv4: use a dedicated counter for icmp_v4 redirect packets
Luis Henriques (1):
ceph: fix use-after-free in __ceph_remove_cap()
Lukas Wunner (1):
netfilter: nf_tables: Align nft_expr private data to 64-bit
Marek Szyprowski (1):
clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume
Markus Pargmann (1):
batman-adv: iv_ogm_iface_enable, direct return values
Markus Theil (1):
nl80211: fix validation of mesh path nexthop
Martin Habets (1):
sfc: Only cancel the PPS workqueue if it exists
Mathias Nyman (1):
xhci: Prevent device initiated U1/U2 link pm if exit latency is too long
Max Filippov (1):
xtensa: drop EXPORT_SYMBOL for outs*/ins*
Michal Hocko (1):
mm, vmstat: hide /proc/pagetypeinfo from normal users
Michał Mirosław (1):
HID: fix error message in hid_open_report()
Miklos Szeredi (2):
fuse: flush dirty data/metadata before non-truncate setattr
fuse: truncate pending writes on O_TRUNC
Nakajima Akira (1):
Fix to check Unique id and FileType when client refer file directly.
Nicholas Piggin (1):
scsi: qla2xxx: stop timer in shutdown path
Oliver Neukum (1):
scsi: sd: Ignore a failure to sync cache due to lack of authorization
Paolo Abeni (1):
net: ipv4: avoid mixed n_redirects and rate_tokens usage
Paul Burton (1):
MIPS: tlbex: Fix build_restore_pagemask KScratch restore
Pavel Shilovsky (3):
CIFS: Gracefully handle QueryInfo errors during open
CIFS: Force revalidate inode when dentry is stale
CIFS: Force reval dentry if LOOKUP_REVAL flag is set
Qian Cai (1):
mm/slub: fix a deadlock in show_slab_objects()
Rafael J. Wysocki (1):
PCI: PM: Fix pci_power_up()
Randy Dunlap (1):
serial: uartlite: fix exit path null pointer
Rick Tseng (1):
usb: xhci: wait for CNR controller not ready bit in xhci resume
Roberto Bergantinos Corpas (1):
CIFS: avoid using MID 0xFFFF
Roman Gushchin (2):
mm: memcg: switch to css_tryget() in get_mem_cgroup_from_mm()
mm: hugetlb: switch to css_tryget() in hugetlb_cgroup_charge_cgroup()
Ross Lagerwall (1):
cifs: Check uniqueid for SMB2+ and return -ESTALE if necessary
Russell King (2):
ARM: mm: fix alignment handler faults under memory pressure
ASoC: kirkwood: fix external clock probe defer
Steffen Maier (1):
scsi: zfcp: fix reaction on bit error threshold notification
Stephane Grosjean (1):
can: peak_usb: fix a potential out-of-sync while decoding packets
Steven Rostedt (VMware) (1):
tracing: Get trace_array reference for available_tracers files
Sven Eckelmann (1):
batman-adv: Avoid free/alloc race when handling OGM buffer
Taehee Yoo (1):
bonding: fix unexpected IFF_BONDING bit unset
Takashi Iwai (4):
ALSA: timer: Simplify error path in snd_timer_open()
ALSA: timer: Fix incorrectly assigned timer instance
ALSA: timer: Fix mutex deadlock at releasing card
ALSA: usb-audio: Fix missing error check at mixer resolution test
Takashi Sakamoto (2):
ALSA: bebob: Fix prototype of helper function to return negative value
ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series
Tejun Heo (1):
net: fix sk_page_frag() recursion from memory reclaim
Thomas Gleixner (1):
tick: broadcast-hrtimer: Remove overly clever return value abuse
Tomi Valkeinen (1):
drm/omap: fix max fclk divider for omap36xx
Viresh Kumar (1):
hrtimer: Store cpu-number in struct hrtimer_cpu_base
Will Deacon (2):
mac80211: Reject malformed SSID elements
panic: ensure preemption is disabled during panic()
Xuewei Zhang (1):
sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision
Yihui ZENG (1):
s390/cmm: fix information leak in cmm_timeout_handler()
Yoshihiro Shimoda (2):
usb: renesas_usbhs: gadget: Do not discard queues in usb_ep_set_{halt,wedge}()
usb: renesas_usbhs: gadget: Fix usb_ep_set_{halt,wedge}() behavior
Yufen Yu (1):
scsi: core: try to get module before removing device
zhangyi (F) (1):
fs/dcache: move security_d_instantiate() behind attaching dentry to inode
Documentation/usb/rio.txt deleted +0 -138
@@ -1,138 +0,0 @@ -Copyright (C) 1999, 2000 Bruce Tenison -Portions Copyright (C) 1999, 2000 David Nelson -Thanks to David Nelson for guidance and the usage of the scanner.txt -and scanner.c files to model our driver and this informative file. - -Mar. 2, 2000 - -CHANGES - -- Initial Revision - - -OVERVIEW - -This README will address issues regarding how to configure the kernel -to access a RIO 500 mp3 player. -Before I explain how to use this to access the Rio500 please be warned: - -W A R N I N G: --------------- - -Please note that this software is still under development. The authors -are in no way responsible for any damage that may occur, no matter how -inconsequential. - -It seems that the Rio has a problem when sending .mp3 with low batteries. -I suggest when the batteries are low and you want to transfer stuff that you -replace it with a fresh one. In my case, what happened is I lost two 16kb -blocks (they are no longer usable to store information to it). But I don't -know if that's normal or not; it could simply be a problem with the flash -memory. - -In an extreme case, I left my Rio playing overnight and the batteries wore -down to nothing and appear to have corrupted the flash memory. My RIO -needed to be replaced as a result. Diamond tech support is aware of the -problem. Do NOT allow your batteries to wear down to nothing before -changing them. It appears RIO 500 firmware does not handle low battery -power well at all. - -On systems with OHCI controllers, the kernel OHCI code appears to have -power on problems with some chipsets. If you are having problems -connecting to your RIO 500, try turning it on first and then plugging it -into the USB cable. - -Contact information: --------------------- - - The main page for the project is hosted at sourceforge.net in the following - URL: <http://rio500.sourceforge.net>. You can also go to the project's - sourceforge home page at: <http://sourceforge.net/projects/rio500/>. - There is also a mailing list: [email protected] - -Authors: -------- - -Most of the code was written by Cesar Miquel <[email protected]>. Keith -Clayton <[email protected]> is incharge of the PPC port and making sure -things work there. Bruce Tenison <[email protected]> is adding support -for .fon files and also does testing. The program will mostly sure be -re-written and Pete Ikusz along with the rest will re-design it. I would -also like to thank Tri Nguyen <[email protected]> who provided use -with some important information regarding the communication with the Rio. - -ADDITIONAL INFORMATION and Userspace tools - -http://rio500.sourceforge.net/ - - -REQUIREMENTS - -A host with a USB port. Ideally, either a UHCI (Intel) or OHCI -(Compaq and others) hardware port should work. - -A Linux development kernel (2.3.x) with USB support enabled or a -backported version to linux-2.2.x. See http://www.linux-usb.org for -more information on accomplishing this. - -A Linux kernel with RIO 500 support enabled. - -'lspci' which is only needed to determine the type of USB hardware -available in your machine. - -CONFIGURATION - -Using `lspci -v`, determine the type of USB hardware available. - - If you see something like: - - USB Controller: ...... - Flags: ..... - I/O ports at .... - - Then you have a UHCI based controller. - - If you see something like: - - USB Controller: ..... - Flags: .... - Memory at ..... - - Then you have a OHCI based controller. - -Using `make menuconfig` or your preferred method for configuring the -kernel, select 'Support for USB', 'OHCI/UHCI' depending on your -hardware (determined from the steps above), 'USB Diamond Rio500 support', and -'Preliminary USB device filesystem'. Compile and install the modules -(you may need to execute `depmod -a` to update the module -dependencies). - -Add a device for the USB rio500: - `mknod /dev/usb/rio500 c 180 64` - -Set appropriate permissions for /dev/usb/rio500 (don't forget about -group and world permissions). Both read and write permissions are -required for proper operation. - -Load the appropriate modules (if compiled as modules): - - OHCI: - modprobe usbcore - modprobe usb-ohci - modprobe rio500 - - UHCI: - modprobe usbcore - modprobe usb-uhci (or uhci) - modprobe rio500 - -That's it. The Rio500 Utils at: http://rio500.sourceforge.net should -be able to access the rio500. - -BUGS - -If you encounter any problems feel free to drop me an email. - -Bruce Tenison [email protected] -
MAINTAINERS +0 -7
@@ -9420,13 +9420,6 @@ W: http://www.linux-usb.org/usbnet S: Maintained F: drivers/net/usb/dm9601.c -USB DIAMOND RIO500 DRIVER -M: Cesar Miquel <[email protected]> -L: [email protected] -W: http://rio500.sourceforge.net -S: Maintained -F: drivers/usb/misc/rio500* - USB EHCI DRIVER M: Alan Stern <[email protected]> L: [email protected]
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 79 +SUBLEVEL = 80 EXTRAVERSION = NAME = Museum of Fishiegoodies
arch/arc/kernel/perf_event.c +2 -2
@@ -274,8 +274,8 @@ static int arc_pmu_device_probe(struct platform_device *pdev)for (j =0 ; j < cc_bcr.c; j++) {write_aux_reg (ARC_REG_CC_INDEX , j); - cc_name.indiv.word0 =read_aux_reg (ARC_REG_CC_NAME0 ); - cc_name.indiv.word1 =read_aux_reg (ARC_REG_CC_NAME1 ); + cc_name.indiv.word0 =le32_to_cpu (read_aux_reg (ARC_REG_CC_NAME0 )); + cc_name.indiv.word1 =le32_to_cpu (read_aux_reg (ARC_REG_CC_NAME1 ));for (i =0 ; i <ARRAY_SIZE (arc_pmu_ev_hw_map); i++) { if (arc_pmu_ev_hw_map[i] && !strcmp(arc_pmu_ev_hw_map[i], cc_name.str) &&
arch/arm/configs/badge4_defconfig +0 -1
@@ -98,7 +98,6 @@ CONFIG_USB_SERIAL_PL2303=m CONFIG_USB_SERIAL_CYBERJACK=m CONFIG_USB_SERIAL_XIRCOM=m CONFIG_USB_SERIAL_OMNINET=m -CONFIG_USB_RIO500=m CONFIG_EXT2_FS=m CONFIG_EXT3_FS=m CONFIG_MSDOS_FS=y
arch/arm/configs/corgi_defconfig +0 -1
@@ -207,7 +207,6 @@ CONFIG_USB_SERIAL_XIRCOM=m CONFIG_USB_SERIAL_OMNINET=m CONFIG_USB_EMI62=m CONFIG_USB_EMI26=m -CONFIG_USB_RIO500=m CONFIG_USB_LEGOTOWER=m CONFIG_USB_LCD=m CONFIG_USB_LED=m
arch/arm/configs/s3c2410_defconfig +0 -1
@@ -355,7 +355,6 @@ CONFIG_USB_EMI62=m CONFIG_USB_EMI26=m CONFIG_USB_ADUTUX=m CONFIG_USB_SEVSEG=m -CONFIG_USB_RIO500=m CONFIG_USB_LEGOTOWER=m CONFIG_USB_LCD=m CONFIG_USB_LED=m
arch/arm/configs/spitz_defconfig +0 -1
@@ -202,7 +202,6 @@ CONFIG_USB_SERIAL_XIRCOM=m CONFIG_USB_SERIAL_OMNINET=m CONFIG_USB_EMI62=m CONFIG_USB_EMI26=m -CONFIG_USB_RIO500=m CONFIG_USB_LEGOTOWER=m CONFIG_USB_LCD=m CONFIG_USB_LED=m
arch/arm/mm/alignment.c +36 -8
75 lines not on this page · raw message
arch/mips/bcm63xx/prom.c +1 -1
@@ -88,7 +88,7 @@ void __init prom_init(void)* Here we will start up CPU1 in the background and ask it to * reconfigure itself then go back to sleep. */ -memcpy ((void *)0xa0000200 , &bmips_smp_movevec,0x20 ); +memcpy ((void *)0xa0000200 , bmips_smp_movevec,0x20 );__sync ();set_c0_cause (C_SW0 );cpumask_set_cpu (1 , &bmips_booted_mask);
arch/mips/configs/mtx1_defconfig +0 -1
@@ -637,7 +637,6 @@ CONFIG_USB_SERIAL_OMNINET=m CONFIG_USB_EMI62=m CONFIG_USB_EMI26=m CONFIG_USB_ADUTUX=m -CONFIG_USB_RIO500=m CONFIG_USB_LEGOTOWER=m CONFIG_USB_LCD=m CONFIG_USB_LED=m
arch/mips/configs/rm200_defconfig +0 -1
@@ -351,7 +351,6 @@ CONFIG_USB_SERIAL_SAFE_PADDED=y CONFIG_USB_SERIAL_CYBERJACK=m CONFIG_USB_SERIAL_XIRCOM=m CONFIG_USB_SERIAL_OMNINET=m -CONFIG_USB_RIO500=m CONFIG_USB_LEGOTOWER=m CONFIG_USB_LCD=m CONFIG_USB_LED=m
arch/mips/include/asm/bmips.h +5 -5
@@ -75,11 +75,11 @@ static inline int register_bmips_smp_ops(void)#endif } -extern char bmips_reset_nmi_vec; -extern char bmips_reset_nmi_vec_end; -extern char bmips_smp_movevec; -extern char bmips_smp_int_vec; -extern char bmips_smp_int_vec_end; +extern char bmips_reset_nmi_vec[]; +extern char bmips_reset_nmi_vec_end[]; +extern char bmips_smp_movevec[]; +extern char bmips_smp_int_vec[]; +extern char bmips_smp_int_vec_end[];extern int bmips_smp_enabled;extern int bmips_cpu_offset;
arch/mips/kernel/smp-bmips.c +4 -4
@@ -467,10 +467,10 @@ static void bmips_wr_vec(unsigned long dst, char *start, char *end)static inline void bmips_nmi_handler_setup (void ) { -bmips_wr_vec (BMIPS_NMI_RESET_VEC , &bmips_reset_nmi_vec, - &bmips_reset_nmi_vec_end); -bmips_wr_vec (BMIPS_WARM_RESTART_VEC , &bmips_smp_int_vec, - &bmips_smp_int_vec_end); +bmips_wr_vec (BMIPS_NMI_RESET_VEC , bmips_reset_nmi_vec, + bmips_reset_nmi_vec_end); +bmips_wr_vec (BMIPS_WARM_RESTART_VEC , bmips_smp_int_vec, + bmips_smp_int_vec_end); }void bmips_ebase_setup (void )
arch/mips/mm/tlbex.c +15 -8
@@ -652,6 +652,13 @@ static void build_restore_pagemask(u32 **p, struct uasm_reloc **r, int restore_scratch) {if (restore_scratch) { +/* +* Ensure the MFC0 below observes the value written to the +* KScratch register by the prior MTC0. +*/ +if (scratch_reg >=0 ) +uasm_i_ehb (p); +/* Reset default page size */ if (PM_DEFAULT_MASK >>16 ) {uasm_i_lui (p, tmp,PM_DEFAULT_MASK >>16 );
@@ -666,12 +673,10 @@ static void build_restore_pagemask(u32 **p, struct uasm_reloc **r,uasm_i_mtc0 (p,0 ,C0_PAGEMASK );uasm_il_b (p, r, lid); } -if (scratch_reg >=0 ) { -uasm_i_ehb (p); +if (scratch_reg >=0 )UASM_i_MFC0 (p,1 ,c0_kscratch (), scratch_reg); - }else { +else UASM_i_LW (p,1 ,scratchpad_offset (0 ),0 ); - } }else {/* Reset default page size */ if (PM_DEFAULT_MASK >>16 ) {
@@ -893,6 +898,10 @@ build_get_pgd_vmalloc64(u32 **p, struct uasm_label **l, struct uasm_reloc **r, }if (mode != not_refill && check_for_high_segbits) {uasm_l_large_segbits_fault (l, *p); + +if (mode == refill_scratch && scratch_reg >=0 ) +uasm_i_ehb (p); +/* * We get here if we are an xsseg address, or if we are * an xuseg address above (PGDIR_SHIFT+PGDIR_BITS) boundary.
@@ -909,12 +918,10 @@ build_get_pgd_vmalloc64(u32 **p, struct uasm_label **l, struct uasm_reloc **r,uasm_i_jr (p, ptr);if (mode == refill_scratch) { -if (scratch_reg >=0 ) { -uasm_i_ehb (p); +if (scratch_reg >=0 )UASM_i_MFC0 (p,1 ,c0_kscratch (), scratch_reg); - }else { +else UASM_i_LW (p,1 ,scratchpad_offset (0 ),0 ); - } }else {uasm_i_nop (p); }
arch/parisc/mm/ioremap.c +7 -5
@@ -2,7 +2,7 @@* arch/parisc/mm/ioremap.c * * (C) Copyright 1995 1996 Linus Torvalds -* (C) Copyright 2001-2006 Helge Deller <[email protected]> +* (C) Copyright 2001-2019 Helge Deller <[email protected]> * (C) Copyright 2005 Kyle McMartin <[email protected]> */
@@ -83,7 +83,7 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l addr = (void __iomem *) area->addr;if (ioremap_page_range ((unsigned long )addr, (unsigned long )addr + size, phys_addr, pgprot)) { -vfree (addr); +vunmap (addr);return NULL ; }
@@ -91,9 +91,11 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l }EXPORT_SYMBOL (__ioremap); -void iounmap (const volatile void __iomem *addr) +void iounmap (const volatile void __iomem *io_addr) { -if (addr > high_memory) -return vfree ((void *) (PAGE_MASK & (unsigned long __force ) addr)); +unsigned long addr = (unsigned long )io_addr &PAGE_MASK ; + +if (is_vmalloc_addr ((void *)addr)) +vunmap ((void *)addr); }EXPORT_SYMBOL (iounmap);
arch/powerpc/configs/c2k_defconfig +0 -1
@@ -315,7 +315,6 @@ CONFIG_USB_SERIAL_CYBERJACK=m CONFIG_USB_SERIAL_XIRCOM=m CONFIG_USB_SERIAL_OMNINET=m CONFIG_USB_EMI62=m -CONFIG_USB_RIO500=m CONFIG_USB_LEGOTOWER=m CONFIG_USB_LCD=m CONFIG_USB_LED=m
arch/s390/mm/cmm.c +6 -6
@@ -306,16 +306,16 @@ static int cmm_timeout_handler(struct ctl_table *ctl, int write, }if (write) { - len = *lenp; -if (copy_from_user (buf, buffer, - len >sizeof (buf) ?sizeof (buf) : len)) + len =min (*lenp,sizeof (buf)); +if (copy_from_user (buf, buffer, len))return -EFAULT ; - buf[sizeof (buf) -1 ] ='\0' ; + buf[len -1 ] ='\0' ;cmm_skip_blanks (buf, &p); nr =simple_strtoul (p, &p,0 );cmm_skip_blanks (p, &p); seconds =simple_strtoul (p, &p,0 );cmm_set_timeout (nr, seconds); + *ppos += *lenp; }else { len =sprintf (buf,"%ld %ld\n" , cmm_timeout_pages, cmm_timeout_seconds);
@@ -323,9 +323,9 @@ static int cmm_timeout_handler(struct ctl_table *ctl, int write, len = *lenp;if (copy_to_user (buffer, buf, len))return -EFAULT ; + *lenp = len; + *ppos += len; } - *lenp = len; - *ppos += len;return 0 ; }
arch/x86/kernel/cpu/perf_event_amd_ibs.c +3 -2
@@ -351,7 +351,8 @@ static inline void perf_ibs_disable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) { config &= ~perf_ibs->cnt_mask; -wrmsrl (hwc->config_base, config); +if (boot_cpu_data.x86 ==0x10 ) +wrmsrl (hwc->config_base, config); config &= ~perf_ibs->enable_mask;wrmsrl (hwc->config_base, config); }
@@ -555,7 +556,7 @@ static int perf_ibs_handle_irq(struct perf_ibs *perf_ibs, struct pt_regs *iregs)if (event->attr.sample_type &PERF_SAMPLE_RAW ) offset_max = perf_ibs->offset_max;else if (check_rip) - offset_max =2 ; + offset_max =3 ;else offset_max =1 ; do {
arch/x86/kernel/early-quirks.c +2 -0
@@ -672,6 +672,8 @@ static struct chipset early_qrk[] __initdata = {*/ {PCI_VENDOR_ID_INTEL ,0x0f00 , PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, + { PCI_VENDOR_ID_INTEL, 0x3ec4, + PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, { PCI_VENDOR_ID_BROADCOM, 0x4331, PCI_CLASS_NETWORK_OTHER, PCI_ANY_ID, 0, apple_airport_reset}, {}
arch/xtensa/kernel/xtensa_ksyms.c +0 -7
@@ -114,13 +114,6 @@ EXPORT_SYMBOL(__invalidate_icache_range);// FIXME EXPORT_SYMBOL(screen_info); #endif -EXPORT_SYMBOL (outsb); -EXPORT_SYMBOL (outsw); -EXPORT_SYMBOL (outsl); -EXPORT_SYMBOL (insb); -EXPORT_SYMBOL (insw); -EXPORT_SYMBOL (insl); -extern long common_exception_return;EXPORT_SYMBOL (common_exception_return);
drivers/block/drbd/drbd_main.c +0 -1
@@ -786,7 +786,6 @@ int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cmif (nc->tentative && connection->agreed_pro_version <92 ) {rcu_read_unlock (); -mutex_unlock (&sock->mutex);drbd_err (connection,"--dry-run is not supported by peer" );return -EOPNOTSUPP ; }
drivers/char/virtio_console.c +13 -15
@@ -1362,24 +1362,24 @@ static void set_console_size(struct port *port, u16 rows, u16 cols) port->cons.ws.ws_col = cols; } -static unsigned int fill_queue (struct virtqueue *vq,spinlock_t *lock) +static int fill_queue (struct virtqueue *vq,spinlock_t *lock) {struct port_buffer *buf; -unsigned int nr_added_bufs; +int nr_added_bufs;int ret; nr_added_bufs =0 ; do { buf = alloc_buf(vq->vdev, PAGE_SIZE, 0); if (!buf) - break; + return -ENOMEM; spin_lock_irq(lock); ret = add_inbuf(vq, buf); if (ret < 0) { spin_unlock_irq(lock); free_buf(buf, true); - break; + return ret; } nr_added_bufs++; spin_unlock_irq(lock);
@@ -1399,7 +1399,6 @@ static int add_port(struct ports_device *portdev, u32 id)char debugfs_name[16 ];struct port *port;dev_t devt; -unsigned int nr_added_bufs;int err; port =kmalloc (sizeof (*port),GFP_KERNEL );
@@ -1457,11 +1456,13 @@ static int add_port(struct ports_device *portdev, u32 id)spin_lock_init (&port->outvq_lock);init_waitqueue_head (&port->waitqueue); -/* Fill the in_vq with buffers so the host can send us data. */ - nr_added_bufs =fill_queue (port->in_vq, &port->inbuf_lock); -if (!nr_added_bufs) { +/* We can safely ignore ENOSPC because it means +* the queue already has buffers. Buffers are removed +* only by virtcons_remove(), not by unplug_port() +*/ + err =fill_queue (port->in_vq, &port->inbuf_lock); +if (err <0 && err != -ENOSPC ) {dev_err (port->dev,"Error allocating inbufs\n" ); - err = -ENOMEM ; goto free_device; }
@@ -2079,14 +2080,11 @@ static int virtcons_probe(struct virtio_device *vdev)INIT_WORK (&portdev->control_work, &control_work_handler);if (multiport) { -unsigned int nr_added_bufs; -spin_lock_init (&portdev->c_ivq_lock);spin_lock_init (&portdev->c_ovq_lock); - nr_added_bufs =fill_queue (portdev->c_ivq, - &portdev->c_ivq_lock); -if (!nr_added_bufs) { + err =fill_queue (portdev->c_ivq, &portdev->c_ivq_lock); +if (err <0 ) {dev_err (&vdev->dev,"Error allocating buffers for control queue\n" );/*
@@ -2097,7 +2095,7 @@ static int virtcons_probe(struct virtio_device *vdev) VIRTIO_CONSOLE_DEVICE_READY, 0);/* Device was functional: we need full cleanup. */ virtcons_remove (vdev); -return -ENOMEM ; +return err; } }else {/*
drivers/clk/at91/clk-main.c +4 -1
@@ -374,7 +374,10 @@ static int clk_main_probe_frequency(struct at91_pmc *pmc) tmp =pmc_read (pmc,AT91_CKGR_MCFR );if (tmp &AT91_PMC_MAINRDY )return 0 ; -usleep_range (MAINF_LOOP_MIN_WAIT ,MAINF_LOOP_MAX_WAIT ); +if (system_state <SYSTEM_RUNNING ) +udelay (MAINF_LOOP_MIN_WAIT ); +else +usleep_range (MAINF_LOOP_MIN_WAIT ,MAINF_LOOP_MAX_WAIT ); }while (time_before (prep_time, timeout));return -ETIMEDOUT ;
drivers/clk/at91/clk-slow.c +12 -3
@@ -83,7 +83,10 @@ static int clk_slow_osc_prepare(struct clk_hw *hw)writel (tmp |AT91_SCKC_OSC32EN , sckcr); -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 );return 0 ; }
@@ -202,7 +205,10 @@ static int clk_slow_rc_osc_prepare(struct clk_hw *hw)writel (readl (sckcr) |AT91_SCKC_RCEN , sckcr); -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 );return 0 ; }
@@ -311,7 +317,10 @@ static int clk_sam9x5_slow_set_parent(struct clk_hw *hw, u8 index)writel (tmp, sckcr); -usleep_range (SLOWCK_SW_TIME_USEC ,SLOWCK_SW_TIME_USEC +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (SLOWCK_SW_TIME_USEC ); +else +usleep_range (SLOWCK_SW_TIME_USEC ,SLOWCK_SW_TIME_USEC +1 );return 0 ; }
drivers/clk/samsung/clk-exynos5420.c +6 -0
@@ -162,12 +162,18 @@ static unsigned long exynos5x_clk_regs[] __initdata = {GATE_BUS_CPU ,GATE_SCLK_CPU ,CLKOUT_CMU_CPU , +CPLL_CON0 , +DPLL_CON0 ,EPLL_CON0 ,EPLL_CON1 ,EPLL_CON2 ,RPLL_CON0 ,RPLL_CON1 ,RPLL_CON2 , +IPLL_CON0 , +SPLL_CON0 , +VPLL_CON0 , +MPLL_CON0 ,SRC_TOP0 ,SRC_TOP1 , SRC_TOP2,
drivers/gpu/drm/radeon/si_dpm.c +1 -0
@@ -1951,6 +1951,7 @@ static void si_initialize_powertune_defaults(struct radeon_device *rdev)case 0x682C : si_pi->cac_weights = cac_weights_cape_verde_pro; si_pi->dte_data = dte_data_sun_xt; + update_dte_from_pl2 = true;break ;case 0x6825 :case 0x6827 :
drivers/hid/hid-core.c +5 -2
@@ -911,6 +911,7 @@ int hid_open_report(struct hid_device *device)__u8 *start;__u8 *buf;__u8 *end; +__u8 *next;int ret;static int (*dispatch_type[])(struct hid_parser *parser,struct hid_item *item) = {
@@ -964,7 +965,8 @@ int hid_open_report(struct hid_device *device) device->collection_size =HID_DEFAULT_NUM_COLLECTIONS ; ret = -EINVAL ; -while ((start =fetch_item (start, end, &item)) !=NULL ) { +while ((next =fetch_item (start, end, &item)) !=NULL ) { + start = next;if (item.format !=HID_ITEM_FORMAT_SHORT ) {hid_err (device,"unexpected long global item\n" );
@@ -993,7 +995,8 @@ int hid_open_report(struct hid_device *device) } } -hid_err (device,"item fetching failed at offset %d\n" , (int )(end - start)); +hid_err (device,"item fetching failed at offset %u/%u\n" , + size - (unsigned int )(end - start), size); err:vfree (parser);hid_close_report (device);
drivers/infiniband/core/cma.c +2 -1
@@ -1549,9 +1549,10 @@ static int iw_conn_req_handler(struct iw_cm_id *cm_id, conn_id->cm_id.iw =NULL ;cma_exch (conn_id,RDMA_CM_DESTROYING );mutex_unlock (&conn_id->handler_mutex); +mutex_unlock (&listen_id->handler_mutex);cma_deref_id (conn_id);rdma_destroy_id (&conn_id->id); - goto out; +return ret; }mutex_unlock (&conn_id->handler_mutex);
drivers/media/usb/stkwebcam/stk-webcam.c +1 -2
@@ -644,8 +644,7 @@ static int v4l_stk_release(struct file *fp) dev->owner =NULL ; } -if (is_present (dev)) -usb_autopm_put_interface (dev->interface); +usb_autopm_put_interface (dev->interface);mutex_unlock (&dev->lock);return v4l2_fh_release (fp); }
drivers/memstick/host/jmb38x_ms.c +1 -1
@@ -947,7 +947,7 @@ static int jmb38x_ms_probe(struct pci_dev *pdev,if (!cnt) { rc = -ENODEV ; pci_dev_busy =1 ; - goto err_out; + goto err_out_int; } jm = kzalloc(sizeof(struct jmb38x_ms)
drivers/net/bonding/bond_main.c +4 -2
@@ -1645,7 +1645,8 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)slave_disable_netpoll (new_slave); err_close: - slave_dev->priv_flags &= ~IFF_BONDING ; +if (!netif_is_bond_master (slave_dev)) + slave_dev->priv_flags &= ~IFF_BONDING ;dev_close (slave_dev); err_restore_mac:
@@ -1858,7 +1859,8 @@ static int __bond_release_one(struct net_device *bond_dev,dev_set_mtu (slave_dev, slave->original_mtu); - slave_dev->priv_flags &= ~IFF_BONDING ; +if (!netif_is_bond_master (slave_dev)) + slave_dev->priv_flags &= ~IFF_BONDING ;bond_free_slave (slave);
drivers/net/can/c_can/c_can.c +20 -5
@@ -96,6 +96,9 @@#define BTR_TSEG2_SHIFT 12#define BTR_TSEG2_MASK (0x7 << BTR_TSEG2_SHIFT) +/* interrupt register */ +#define INT_STS_PENDING 0x8000 +/* brp extension register */ #define BRP_EXT_BRPE_MASK 0x0f#define BRP_EXT_BRPE_SHIFT 0
@@ -1021,10 +1024,16 @@ static int c_can_poll(struct napi_struct *napi, int quota)u16 curr, last = priv->last_status;int work_done =0 ; - priv->last_status = curr = priv->read_reg (priv,C_CAN_STS_REG ); -/* Ack status on C_CAN. D_CAN is self clearing */ -if (priv->type !=BOSCH_D_CAN ) - priv->write_reg (priv,C_CAN_STS_REG ,LEC_UNUSED ); +/* Only read the status register if a status interrupt was pending */ +if (atomic_xchg (&priv->sie_pending,0 )) { + priv->last_status = curr = priv->read_reg (priv,C_CAN_STS_REG ); +/* Ack status on C_CAN. D_CAN is self clearing */ +if (priv->type !=BOSCH_D_CAN ) + priv->write_reg (priv,C_CAN_STS_REG ,LEC_UNUSED ); + }else { +/* no change detected ... */ + curr = last; + }/* handle state changes */ if ((curr &STATUS_EWARN ) && (!(last &STATUS_EWARN ))) {
@@ -1075,10 +1084,16 @@ static irqreturn_t c_can_isr(int irq, void *dev_id) {struct net_device *dev = (struct net_device *)dev_id;struct c_can_priv *priv =netdev_priv (dev); +int reg_int; -if (!priv->read_reg (priv,C_CAN_INT_REG )) + reg_int = priv->read_reg (priv,C_CAN_INT_REG ); +if (!reg_int)return IRQ_NONE ; +/* save for later use */ +if (reg_int &INT_STS_PENDING ) +atomic_set (&priv->sie_pending,1 ); +/* disable all interrupts and schedule the NAPI */ c_can_irq_control (priv, false);napi_schedule (&priv->napi);
drivers/net/can/c_can/c_can.h +1 -0
@@ -176,6 +176,7 @@ struct c_can_priv {struct net_device *dev;struct device *device;atomic_t tx_active; +atomic_t sie_pending;unsigned long tx_dir;int last_status;u16 (*read_reg) (const struct c_can_priv *priv,enum reg index);
drivers/net/can/usb/peak_usb/pcan_usb.c +12 -5
@@ -108,7 +108,7 @@ struct pcan_usb_msg_context {u8 *end;u8 rec_cnt;u8 rec_idx; -u8 rec_data_idx; +u8 rec_ts_idx;struct net_device *netdev;struct pcan_usb *pdev; };
@@ -551,10 +551,15 @@ static int pcan_usb_decode_status(struct pcan_usb_msg_context *mc, mc->ptr +=PCAN_USB_CMD_ARGS ;if (status_len &PCAN_USB_STATUSLEN_TIMESTAMP ) { -int err =pcan_usb_decode_ts (mc, !mc->rec_idx); +int err =pcan_usb_decode_ts (mc, !mc->rec_ts_idx);if (err)return err; + +/* Next packet in the buffer will have a timestamp on a single +* byte +*/ + mc->rec_ts_idx++; }switch (f) {
@@ -637,10 +642,13 @@ static int pcan_usb_decode_data(struct pcan_usb_msg_context *mc, u8 status_len) cf->can_dlc =get_can_dlc (rec_len); -/* first data packet timestamp is a word */ -if (pcan_usb_decode_ts (mc, !mc->rec_data_idx)) +/* Only first packet timestamp is a word */ +if (pcan_usb_decode_ts (mc, !mc->rec_ts_idx)) goto decode_failed; +/* Next packet in the buffer will have a timestamp on a single byte */ + mc->rec_ts_idx++; +/* read data */ memset (cf->data,0x0 ,sizeof (cf->data));if (status_len &PCAN_USB_STATUSLEN_RTR ) {
@@ -695,7 +703,6 @@ static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf)/* handle normal can frames here */ }else { err =pcan_usb_decode_data (&mc, sl); - mc.rec_data_idx++; } }
drivers/net/can/usb/usb_8dev.c +1 -2
@@ -1013,9 +1013,8 @@ static void usb_8dev_disconnect(struct usb_interface *intf)netdev_info (priv->netdev,"device disconnected\n" );unregister_netdev (priv->netdev); -free_candev (priv->netdev); -unlink_all_urbs (priv); +free_candev (priv->netdev); } }
drivers/net/ethernet/broadcom/genet/bcmgenet.c +11 -4
@@ -1558,11 +1558,13 @@ static void init_umac(struct bcmgenet_priv *priv)dev_dbg (kdev,"%s:Enabling RXDMA_BDONE interrupt\n" , __func__);/* Monitor cable plug/unpluged event for internal PHY */ -if (phy_is_internal (priv->phydev)) +if (phy_is_internal (priv->phydev)) { cpu_mask_clear |= (UMAC_IRQ_LINK_DOWN |UMAC_IRQ_LINK_UP ); -else if (priv->ext_phy) +if (GENET_IS_V1 (priv) ||GENET_IS_V2 (priv) ||GENET_IS_V3 (priv)) + cpu_mask_clear |=UMAC_IRQ_PHY_DET_R ; + }else if (priv->ext_phy) { cpu_mask_clear |= (UMAC_IRQ_LINK_DOWN |UMAC_IRQ_LINK_UP ); -else if (priv->phy_interface ==PHY_INTERFACE_MODE_MOCA ) { + }else if (priv->phy_interface ==PHY_INTERFACE_MODE_MOCA ) { reg =bcmgenet_bp_mc_get (priv); reg |=BIT (priv->hw_params->bp_in_en_shift);
@@ -1861,11 +1863,16 @@ static void bcmgenet_irq_task(struct work_struct *work) priv->irq0_stat =0 ;spin_unlock_irqrestore (&priv->lock, flags); +if (status &UMAC_IRQ_PHY_DET_R && + priv->dev->phydev->autoneg !=AUTONEG_ENABLE ) +phy_init_hw (priv->dev->phydev); +/* Link UP/DOWN event */ if ((priv->hw_params->flags &GENET_HAS_MDIO_INTR ) && (status & (UMAC_IRQ_LINK_UP |UMAC_IRQ_LINK_DOWN )))phy_mac_interrupt (priv->phydev, status &UMAC_IRQ_LINK_UP ); + }/* bcmgenet_isr1: interrupt handler for ring buffer. */
@@ -1934,7 +1941,7 @@ static irqreturn_t bcmgenet_isr0(int irq, void *dev_id) }/* all other interested interrupts handled in bottom half */ - status &=UMAC_IRQ_LINK_UP |UMAC_IRQ_LINK_DOWN ; + status &= (UMAC_IRQ_LINK_UP |UMAC_IRQ_LINK_DOWN |UMAC_IRQ_PHY_DET_R );if (status) {/* Save irq status for bottom-half processing. */ spin_lock_irqsave (&priv->lock, flags);
drivers/net/ethernet/broadcom/genet/bcmgenet.h +1 -0
@@ -335,6 +335,7 @@ struct bcmgenet_mib_counters {#define EXT_ENERGY_DET_MASK (1 << 12)#define EXT_RGMII_OOB_CTRL 0x0C +#define RGMII_MODE_EN_V123 (1 << 0)#define RGMII_LINK (1 << 4)#define OOB_DISABLE (1 << 5)#define RGMII_MODE_EN (1 << 6)
drivers/net/ethernet/broadcom/genet/bcmmii.c +5 -1
@@ -280,7 +280,11 @@ int bcmgenet_mii_config(struct net_device *dev)else phy_name ="external RGMII (TX delay)" ; reg =bcmgenet_ext_readl (priv,EXT_RGMII_OOB_CTRL ); - reg |=RGMII_MODE_EN | id_mode_dis; + reg |= id_mode_dis; +if (GENET_IS_V1 (priv) ||GENET_IS_V2 (priv) ||GENET_IS_V3 (priv)) + reg |=RGMII_MODE_EN_V123 ; +else + reg |=RGMII_MODE_EN ;bcmgenet_ext_writel (priv, reg,EXT_RGMII_OOB_CTRL );bcmgenet_sys_writel (priv,PORT_MODE_EXT_GPHY ,SYS_PORT_CTRL );
drivers/net/ethernet/sfc/ptp.c +2 -1
@@ -1310,7 +1310,8 @@ void efx_ptp_remove(struct efx_nic *efx) (void )efx_ptp_disable (efx);cancel_work_sync (&efx->ptp_data->work); -cancel_work_sync (&efx->ptp_data->pps_work); +if (efx->ptp_data->pps_workwq) +cancel_work_sync (&efx->ptp_data->pps_work);skb_queue_purge (&efx->ptp_data->rxq);skb_queue_purge (&efx->ptp_data->txq);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +1 -0
@@ -539,6 +539,7 @@ static int stmmac_hwtstamp_ioctl(struct net_device *dev, struct ifreq *ifr) ptp_v2 =PTP_TCR_TSVER2ENA ;/* take time stamp for all event messages */ snap_type_sel =PTP_TCR_SNAPTYPSEL_1 ; + ts_event_en =PTP_TCR_TSEVNTENA ; ptp_over_ipv4_udp =PTP_TCR_TSIPV4ENA ; ptp_over_ipv6_udp =PTP_TCR_TSIPV6ENA ;
drivers/net/phy/bcm7xxx.c +1 -0
@@ -306,6 +306,7 @@ static struct phy_driver bcm7xxx_driver[] = { .features = PHY_GBIT_FEATURES | SUPPORTED_Pause | SUPPORTED_Asym_Pause, .flags = PHY_IS_INTERNAL, + .soft_reset = genphy_soft_reset, .config_init = bcm7xxx_config_init, .config_aneg = genphy_config_aneg, .read_status = genphy_read_status,
drivers/net/usb/hso.c +8 -4
@@ -2637,14 +2637,18 @@ static struct hso_device *hso_create_bulk_serial_device(*/ if (serial->tiocmget) { tiocmget = serial->tiocmget; + tiocmget->endp =hso_get_ep (interface, +USB_ENDPOINT_XFER_INT , +USB_DIR_IN ); +if (!tiocmget->endp) { +dev_err (&interface->dev,"Failed to find INT IN ep\n" ); + goto exit; + } + tiocmget->urb =usb_alloc_urb (0 ,GFP_KERNEL );if (tiocmget->urb) {mutex_init (&tiocmget->mutex);init_waitqueue_head (&tiocmget->waitq); - tiocmget->endp =hso_get_ep ( - interface, -USB_ENDPOINT_XFER_INT , -USB_DIR_IN ); }else hso_free_tiomget (serial); }
drivers/net/xen-netback/interface.c +0 -1
@@ -616,7 +616,6 @@ int xenvif_connect(struct xenvif_queue *queue, unsigned long tx_ring_ref, err_unmap:xenvif_unmap_frontend_rings (queue); err: -module_put (THIS_MODULE );return err; }
drivers/pci/pci.c +11 -13
@@ -656,19 +656,6 @@ void pci_update_current_state(struct pci_dev *dev, pci_power_t state) } } -/** -* pci_power_up - Put the given device into D0 forcibly -* @dev: PCI device to power up -*/ -void pci_power_up (struct pci_dev *dev) -{ -if (platform_pci_power_manageable (dev)) -platform_pci_set_power_state (dev,PCI_D0 ); - -pci_raw_set_power_state (dev,PCI_D0 ); -pci_update_current_state (dev,PCI_D0 ); -} -/** * pci_platform_power_transition - Use platform to change device power state * @dev: PCI device to handle.
@@ -844,6 +831,17 @@ int pci_set_power_state(struct pci_dev *dev, pci_power_t state) }EXPORT_SYMBOL (pci_set_power_state); +/** +* pci_power_up - Put the given device into D0 forcibly +* @dev: PCI device to power up +*/ +void pci_power_up (struct pci_dev *dev) +{ +__pci_start_power_transition (dev,PCI_D0 ); +pci_raw_set_power_state (dev,PCI_D0 ); +pci_update_current_state (dev,PCI_D0 ); +} +/** * pci_choose_state - Choose the power state of a PCI device * @dev: PCI device to be suspended
drivers/s390/scsi/zfcp_fsf.c +13 -3
@@ -20,6 +20,11 @@struct kmem_cache *zfcp_fsf_qtcb_cache; +static bool ber_stop = true; +module_param (ber_stop, bool,0600 ); +MODULE_PARM_DESC (ber_stop, +"Shuts down FCP devices for FCP channels that report a bit-error count in excess of its threshold (default on)" ); +static void zfcp_fsf_request_timeout_handler (unsigned long data) {struct zfcp_adapter *adapter = (struct zfcp_adapter *) data;
@@ -231,10 +236,15 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req)case FSF_STATUS_READ_SENSE_DATA_AVAIL :break ;case FSF_STATUS_READ_BIT_ERROR_THRESHOLD : -dev_warn (&adapter->ccw_device->dev, -"The error threshold for checksum statistics " -"has been exceeded\n" );zfcp_dbf_hba_bit_err ("fssrh_3" , req); +if (ber_stop) { +dev_warn (&adapter->ccw_device->dev, +"All paths over this FCP device are disused because of excessive bit errors\n" ); +zfcp_erp_adapter_shutdown (adapter,0 ,"fssrh_b" ); + }else { +dev_warn (&adapter->ccw_device->dev, +"The error threshold for checksum statistics has been exceeded\n" ); + }break ;case FSF_STATUS_READ_LINK_DOWN :zfcp_fsf_status_read_link_down (req);
drivers/scsi/lpfc/lpfc_nportdisc.c +2 -2
@@ -742,9 +742,9 @@ lpfc_disc_set_adisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)if (!(vport->fc_flag &FC_PT2PT )) {/* Check config parameter use-adisc or FCP-2 */ -if ((vport->cfg_use_adisc && (vport->fc_flag &FC_RSCN_MODE )) || +if (vport->cfg_use_adisc && ((vport->fc_flag &FC_RSCN_MODE ) || ((ndlp->nlp_fcp_info &NLP_FCP_2_DEVICE ) && - (ndlp->nlp_type &NLP_FCP_TARGET ))) { + (ndlp->nlp_type &NLP_FCP_TARGET )))) {spin_lock_irq (shost->host_lock); ndlp->nlp_flag |=NLP_NPR_ADISC ;spin_unlock_irq (shost->host_lock);
drivers/scsi/qla2xxx/qla_os.c +4 -0
@@ -3006,6 +3006,10 @@ qla2x00_shutdown(struct pci_dev *pdev)/* Stop currently executing firmware. */ qla2x00_try_to_stop_firmware (vha); +/* Disable timer */ +if (vha->timer_active) +qla2x00_stop_timer (vha); +/* Turn adapter off line */ vha->flags.online =0 ;
drivers/scsi/scsi_sysfs.c +10 -1
@@ -652,6 +652,14 @@ sdev_store_delete(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) {struct kernfs_node *kn; +struct scsi_device *sdev =to_scsi_device (dev); + +/* +* We need to try to get module, avoiding the module been removed +* during delete. +*/ +if (scsi_device_get (sdev)) +return -ENODEV ; kn =sysfs_break_active_protection (&dev->kobj, &attr->attr);WARN_ON_ONCE (!kn);
@@ -666,9 +674,10 @@ sdev_store_delete(struct device *dev, struct device_attribute *attr,* state into SDEV_DEL. */ device_remove_file (dev, attr); -scsi_remove_device (to_scsi_device (dev)); +scsi_remove_device (sdev);if (kn)sysfs_unbreak_active_protection (kn); +scsi_device_put (sdev);return count; }; static DEVICE_ATTR(delete, S_IWUSR, NULL, sdev_store_delete);
drivers/scsi/sd.c +2 -1
@@ -1470,7 +1470,8 @@ static int sd_sync_cache(struct scsi_disk *sdkp)/* we need to evaluate the error return */ if (scsi_sense_valid (&sshdr) && (sshdr.asc ==0x3a ||/* medium not present */ - sshdr.asc ==0x20 ))/* invalid command */ + sshdr.asc ==0x20 ||/* invalid command */ + (sshdr.asc ==0x74 && sshdr.ascq ==0x71 )))/* drive is password locked */ /* this is no error here */ return 0 ;
drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c +1 -1
@@ -403,7 +403,7 @@ static int odm_ARFBRefresh_8188E(struct odm_dm_struct *dm_odm, struct odm_ra_inf pRaInfo->PTModeSS =3 ; else if (pRaInfo->HighestRate > 0x0b) pRaInfo->PTModeSS = 2; - else if (pRaInfo->HighestRate > 0x0b) + else if (pRaInfo->HighestRate > 0x03) pRaInfo->PTModeSS = 1; else pRaInfo->PTModeSS = 0;
drivers/tty/serial/uartlite.c +2 -1
@@ -708,7 +708,8 @@ static int __init ulite_init(void) static void __exit ulite_exit(void) {platform_driver_unregister (&ulite_platform_driver); -uart_unregister_driver (&ulite_uart_driver); +if (ulite_uart_driver.state) +uart_unregister_driver (&ulite_uart_driver); }module_init (ulite_init);
drivers/usb/class/usblp.c +8 -4
@@ -447,6 +447,7 @@ static void usblp_cleanup(struct usblp *usblp)kfree (usblp->readbuf);kfree (usblp->device_id_string);kfree (usblp->statusbuf); +usb_put_intf (usblp->intf);kfree (usblp); }
@@ -463,10 +464,12 @@ static int usblp_release(struct inode *inode, struct file *file)mutex_lock (&usblp_mutex); usblp->used =0 ; -if (usblp->present) { +if (usblp->present)usblp_unlink_urbs (usblp); -usb_autopm_put_interface (usblp->intf); - }else /* finish cleanup from disconnect */ + +usb_autopm_put_interface (usblp->intf); + +if (!usblp->present)/* finish cleanup from disconnect */ usblp_cleanup (usblp);mutex_unlock (&usblp_mutex);return 0 ;
@@ -1102,7 +1105,7 @@ static int usblp_probe(struct usb_interface *intf,init_waitqueue_head (&usblp->wwait);init_usb_anchor (&usblp->urbs); usblp->ifnum = intf->cur_altsetting->desc.bInterfaceNumber; - usblp->intf = intf; + usblp->intf =usb_get_intf (intf);/* Malloc device ID string buffer to the largest expected length, * since we can re-query it on an ioctl and a dynamic string
@@ -1191,6 +1194,7 @@ static int usblp_probe(struct usb_interface *intf,kfree (usblp->readbuf);kfree (usblp->statusbuf);kfree (usblp->device_id_string); +usb_put_intf (usblp->intf);kfree (usblp); abort_ret:return retval;
drivers/usb/gadget/atmel_usba_udc.c +4 -2
@@ -392,9 +392,11 @@ static void submit_request(struct usba_ep *ep, struct usba_request *req)next_fifo_transaction (ep, req);if (req->last_transaction) {usba_ep_writel (ep,CTL_DIS ,USBA_TX_PK_RDY ); -usba_ep_writel (ep,CTL_ENB ,USBA_TX_COMPLETE ); +if (ep_is_control (ep)) +usba_ep_writel (ep,CTL_ENB ,USBA_TX_COMPLETE ); }else { -usba_ep_writel (ep,CTL_DIS ,USBA_TX_COMPLETE ); +if (ep_is_control (ep)) +usba_ep_writel (ep,CTL_DIS ,USBA_TX_COMPLETE );usba_ep_writel (ep,CTL_ENB ,USBA_TX_PK_RDY ); } }
drivers/usb/gadget/dummy_hcd.c +2 -1
@@ -50,6 +50,7 @@#define DRIVER_VERSION "02 May 2005"#define POWER_BUDGET 500/* in mA; use 8 for low-power port testing */ +#define POWER_BUDGET_3 900/* in mA */ static const char driver_name[] ="dummy_hcd" ;static const char driver_desc[] ="USB Host+Gadget Emulator" ;
@@ -2359,7 +2360,7 @@ static int dummy_start_ss(struct dummy_hcd *dum_hcd) dum_hcd->rh_state =DUMMY_RH_RUNNING ; dum_hcd->stream_en_ep =0 ;INIT_LIST_HEAD (&dum_hcd->urbp_list); -dummy_hcd_to_hcd (dum_hcd)->power_budget =POWER_BUDGET ; +dummy_hcd_to_hcd (dum_hcd)->power_budget =POWER_BUDGET_3 ;dummy_hcd_to_hcd (dum_hcd)->state =HC_STATE_RUNNING ;dummy_hcd_to_hcd (dum_hcd)->uses_new_polling =1 ;#ifdef CONFIG_USB_OTG
drivers/usb/gadget/lpc32xx_udc.c +3 -3
@@ -1228,11 +1228,11 @@ static void udc_pop_fifo(struct lpc32xx_udc *udc, u8 *data, u32 bytes) tmp =readl (USBD_RXDATA (udc->udp_baseaddr)); bl = bytes - n; -if (bl >3 ) - bl =3 ; +if (bl >4 ) + bl =4 ;for (i =0 ; i < bl; i++) - data[n + i] = (u8) ((tmp >> (n *8 )) &0xFF ); + data[n + i] = (u8) ((tmp >> (i *8 )) &0xFF ); }break ;
drivers/usb/host/xhci.c +22 -8
@@ -1029,6 +1029,18 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated) hibernated = true;if (!hibernated) { +/* +* Some controllers might lose power during suspend, so wait +* for controller not ready bit to clear, just as in xHC init. +*/ + retval =xhci_handshake (xhci, &xhci->op_regs->status, +STS_CNR ,0 ,10 *1000 *1000 ); +if (retval) { +xhci_warn (xhci,"Controller not ready at resume %d\n" , + retval); +spin_unlock_irq (&xhci->lock); +return retval; + }/* step 1: restore register */ xhci_restore_registers (xhci);/* step 2: initialize command ring buffer */
@@ -4503,12 +4515,12 @@ static int xhci_update_timeout_for_endpoint(struct xhci_hcd *xhci, alt_timeout =xhci_call_host_update_timeout_for_endpoint (xhci, udev, desc, state, timeout); -/* If we found we can't enable hub-initiated LPM, or +/* If we found we can't enable hub-initiated LPM, and * the U1 or U2 exit latency was too high to allow -* device-initiated LPM as well, just stop searching. +* device-initiated LPM as well, then we will disable LPM +* for this device, so stop searching any further. */ -if (alt_timeout ==USB3_LPM_DISABLED || - alt_timeout ==USB3_LPM_DEVICE_INITIATED ) { +if (alt_timeout ==USB3_LPM_DISABLED ) { *timeout = alt_timeout;return -E2BIG ; }
@@ -4618,10 +4630,12 @@ static u16 xhci_calculate_lpm_timeout(struct usb_hcd *hcd,if (intf->dev.driver) { driver =to_usb_driver (intf->dev.driver);if (driver && driver->disable_hub_initiated_lpm) { -dev_dbg (&udev->dev,"Hub-initiated %s disabled " -"at request of driver %s\n" , - state_name, driver->name); -return xhci_get_timeout_no_hub_lpm (udev, state); +dev_dbg (&udev->dev,"Hub-initiated %s disabled at request of driver %s\n" , + state_name, driver->name); + timeout =xhci_get_timeout_no_hub_lpm (udev, + state); +if (timeout ==USB3_LPM_DISABLED ) +return timeout; } }
drivers/usb/image/microtek.c +4 -0
@@ -727,6 +727,10 @@ static int mts_usb_probe(struct usb_interface *intf, } +if (ep_in_current != &ep_in_set[2 ]) { +MTS_WARNING ("couldn't find two input bulk endpoints. Bailing out.\n" ); +return -ENODEV ; + }if ( ep_out ==-1 ) {MTS_WARNING ("couldn't find an output bulk endpoint. Bailing out.\n" );
drivers/usb/misc/Kconfig +0 -10
@@ -46,16 +46,6 @@ config USB_SEVSEG To compile this driver as a module, choose M here: the module will be called usbsevseg. -config USB_RIO500 - tristate "USB Diamond Rio500 support" - help - Say Y here if you want to connect a USB Rio500 mp3 player to your - computer's USB port. Please read <file:Documentation/usb/rio.txt> - for more information. - - To compile this driver as a module, choose M here: the - module will be called rio500. - config USB_LEGOTOWER tristate "USB Lego Infrared Tower support" help
drivers/usb/misc/Makefile +0 -1
@@ -17,7 +17,6 @@ obj-$(CONFIG_USB_LCD) += usblcd.o obj-$(CONFIG_USB_LD) += ldusb.o obj-$(CONFIG_USB_LED) += usbled.o obj-$(CONFIG_USB_LEGOTOWER) += legousbtower.o -obj-$(CONFIG_USB_RIO500) += rio500.o obj-$(CONFIG_USB_TEST) += usbtest.o obj-$(CONFIG_USB_EHSET_TEST_FIXTURE) += ehset.o obj-$(CONFIG_USB_TRANCEVIBRATOR) += trancevibrator.o
drivers/usb/misc/adutux.c +12 -7
@@ -80,6 +80,7 @@ struct adu_device {char serial_number[8 ];int open_count;/* number of times this port has been opened */ + unsigned long disconnected:1;char *read_buffer_primary;int read_buffer_length;
@@ -121,7 +122,7 @@ static void adu_abort_transfers(struct adu_device *dev) {unsigned long flags; -if (dev->udev ==NULL ) +if (dev->disconnected)return ;/* shutdown transfer */
@@ -151,6 +152,7 @@ static void adu_delete(struct adu_device *dev)kfree (dev->read_buffer_secondary);kfree (dev->interrupt_in_buffer);kfree (dev->interrupt_out_buffer); +usb_put_dev (dev->udev);kfree (dev); }
@@ -244,7 +246,7 @@ static int adu_open(struct inode *inode, struct file *file) } dev =usb_get_intfdata (interface); -if (!dev || !dev->udev) { +if (!dev) { retval = -ENODEV ; goto exit_no_device; }
@@ -327,7 +329,7 @@ static int adu_release(struct inode *inode, struct file *file) }adu_release_internal (dev); -if (dev->udev ==NULL ) { +if (dev->disconnected) {/* the device was unplugged before the file was released */ if (!dev->open_count)/* ... and we're the last user */ adu_delete (dev);
@@ -356,7 +358,7 @@ static ssize_t adu_read(struct file *file, __user char *buffer, size_t count,return -ERESTARTSYS ;/* verify that the device wasn't unplugged */ -if (dev->udev ==NULL ) { +if (dev->disconnected) { retval = -ENODEV ;pr_err ("No device or device unplugged %d\n" , retval); goto exit;
@@ -521,7 +523,7 @@ static ssize_t adu_write(struct file *file, const __user char *buffer, goto exit_nolock;/* verify that the device wasn't unplugged */ -if (dev->udev ==NULL ) { +if (dev->disconnected) { retval = -ENODEV ;pr_err ("No device or device unplugged %d\n" , retval); goto exit;
@@ -676,7 +678,7 @@ static int adu_probe(struct usb_interface *interface,mutex_init (&dev->mtx);spin_lock_init (&dev->buflock); - dev->udev = udev; + dev->udev =usb_get_dev (udev);init_waitqueue_head (&dev->read_wait);init_waitqueue_head (&dev->write_wait);
@@ -801,11 +803,14 @@ static void adu_disconnect(struct usb_interface *interface)usb_deregister_dev (interface, &adu_class); +usb_poison_urb (dev->interrupt_in_urb); +usb_poison_urb (dev->interrupt_out_urb); +mutex_lock (&adutux_mutex);usb_set_intfdata (interface,NULL );mutex_lock (&dev->mtx);/* not interruptible */ - dev->udev =NULL ;/* poison */ + dev->disconnected =1 ;mutex_unlock (&dev->mtx);/* if the device is not opened, then we clean up right now */
drivers/usb/misc/iowarrior.c +8 -1
@@ -89,6 +89,7 @@ struct iowarrior {char chip_serial[9 ];/* the serial number string of the chip connected */ int report_size;/* number of bytes in a report */ u16 product_id; +struct usb_anchor submitted; };/*--------------*/
@@ -248,6 +249,7 @@ static inline void iowarrior_delete(struct iowarrior *dev)kfree (dev->int_in_buffer);usb_free_urb (dev->int_in_urb);kfree (dev->read_queue); +usb_put_intf (dev->interface);kfree (dev); }
@@ -436,11 +438,13 @@ static ssize_t iowarrior_write(struct file *file, retval = -EFAULT ; goto error; } +usb_anchor_urb (int_out_urb, &dev->submitted); retval =usb_submit_urb (int_out_urb,GFP_KERNEL );if (retval) {dev_dbg (&dev->interface->dev,"submit error %d for urb nr.%d\n" , retval,atomic_read (&dev->write_busy)); +usb_unanchor_urb (int_out_urb); goto error; }/* submit was ok */
@@ -782,11 +786,13 @@ static int iowarrior_probe(struct usb_interface *interface,init_waitqueue_head (&dev->write_wait); dev->udev = udev; - dev->interface = interface; + dev->interface =usb_get_intf (interface); iface_desc = interface->cur_altsetting; dev->product_id =le16_to_cpu (udev->descriptor.idProduct); +init_usb_anchor (&dev->submitted); +/* set up the endpoint information */ for (i =0 ; i < iface_desc->desc.bNumEndpoints; ++i) { endpoint = &iface_desc->endpoint[i].desc;
@@ -916,6 +922,7 @@ static void iowarrior_disconnect(struct usb_interface *interface)Deleting the device is postponed until close() was called. */ usb_kill_urb (dev->int_in_urb); +usb_kill_anchored_urbs (&dev->submitted);wake_up_interruptible (&dev->read_wait);wake_up_interruptible (&dev->write_wait);mutex_unlock (&dev->mutex);
drivers/usb/misc/ldusb.c +27 -23
154 lines not on this page · raw message
drivers/usb/misc/legousbtower.c +26 -37
212 lines not on this page · raw message
drivers/usb/misc/rio500.c deleted +0 -578
578 lines not on this page · raw message
drivers/usb/misc/rio500_usb.h deleted +0 -37
@@ -1,37 +0,0 @@ -/* ---------------------------------------------------------------------- - -Copyright (C) 2000 Cesar Miquel ([email protected]) - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - ----------------------------------------------------------------------- */ - - - -#define RIO_SEND_COMMAND 0x1 -#define RIO_RECV_COMMAND 0x2 - -#define RIO_DIR_OUT 0x0 -#define RIO_DIR_IN 0x1 - -struct RioCommand { -short length; -int request; -int requesttype; -int value; -int index; -void __user *buffer; -int timeout; -};
drivers/usb/misc/usblcd.c +31 -2
@@ -17,6 +17,7 @@#include <linux/slab.h> #include <linux/errno.h> #include <linux/mutex.h> +#include <linux/rwsem.h> #include <linux/uaccess.h> #include <linux/usb.h>
@@ -56,6 +57,8 @@ struct usb_lcd {using up all RAM */ struct usb_anchor submitted;/* URBs to wait for before suspend */ +struct rw_semaphore io_rwsem; + unsigned long disconnected:1; };#define to_lcd_dev (d) container_of(d, struct usb_lcd, kref)
@@ -141,6 +144,13 @@ static ssize_t lcd_read(struct file *file, char __user * buffer, dev = file->private_data; +down_read (&dev->io_rwsem); + +if (dev->disconnected) { + retval = -ENODEV ; + goto out_up_io; + } +/* do a blocking bulk read to get data from the device */ retval = usb_bulk_msg(dev->udev, usb_rcvbulkpipe(dev->udev,
@@ -157,6 +167,9 @@ static ssize_t lcd_read(struct file *file, char __user * buffer, retval = bytes_read; } +out_up_io: +up_read (&dev->io_rwsem); +return retval; }
@@ -236,11 +249,18 @@ static ssize_t lcd_write(struct file *file, const char __user * user_buffer,if (r <0 )return -EINTR ; +down_read (&dev->io_rwsem); + +if (dev->disconnected) { + retval = -ENODEV ; + goto err_up_io; + } +/* create a urb, and a buffer for it, and copy the data to the urb */ urb =usb_alloc_urb (0 ,GFP_KERNEL );if (!urb) { retval = -ENOMEM ; - goto err_no_buf; + goto err_up_io; } buf = usb_alloc_coherent(dev->udev, count, GFP_KERNEL,
@@ -277,6 +297,7 @@ static ssize_t lcd_write(struct file *file, const char __user * user_buffer,the USB core will eventually free it entirely */ usb_free_urb (urb); +up_read (&dev->io_rwsem); exit:return count; error_unanchor:
@@ -284,7 +305,8 @@ static ssize_t lcd_write(struct file *file, const char __user * user_buffer, error:usb_free_coherent (dev->udev, count, buf, urb->transfer_dma);usb_free_urb (urb); -err_no_buf: +err_up_io: +up_read (&dev->io_rwsem);up (&dev->limit_sem);return retval; }
@@ -327,6 +349,7 @@ static int lcd_probe(struct usb_interface *interface, }kref_init (&dev->kref);sema_init (&dev->limit_sem,USB_LCD_CONCURRENT_WRITES ); +init_rwsem (&dev->io_rwsem);init_usb_anchor (&dev->submitted); dev->udev =usb_get_dev (interface_to_usbdev (interface));
@@ -437,6 +460,12 @@ static void lcd_disconnect(struct usb_interface *interface)/* give back our minor */ usb_deregister_dev (interface, &lcd_class); +down_write (&dev->io_rwsem); + dev->disconnected =1 ; +up_write (&dev->io_rwsem); + +usb_kill_anchored_urbs (&dev->submitted); +/* decrement our usage count */ kref_put (&dev->kref, lcd_delete);
drivers/usb/misc/yurex.c +11 -7
@@ -64,6 +64,7 @@ struct usb_yurex {struct kref kref;struct mutex io_mutex; + unsigned long disconnected:1;struct fasync_struct *async_queue;wait_queue_head_t waitq;
@@ -111,6 +112,7 @@ static void yurex_delete(struct kref *kref) dev->int_buffer, dev->urb->transfer_dma);usb_free_urb (dev->urb); } +usb_put_intf (dev->interface);usb_put_dev (dev->udev);kfree (dev); }
@@ -136,6 +138,7 @@ static void yurex_interrupt(struct urb *urb)switch (status) {case 0 :/*success*/ break ; +/* The device is terminated or messed up, give up */ case -EOVERFLOW : dev_err(&dev->interface->dev, "%s - overflow with length %d, actual length is %d\n",
@@ -144,12 +147,13 @@ static void yurex_interrupt(struct urb *urb)case -ENOENT :case -ESHUTDOWN :case -EILSEQ : -/* The device is terminated, clean up */ +case -EPROTO : +case -ETIME :return ;default :dev_err (&dev->interface->dev,"%s - unknown status received: %d\n" , __func__, status); - goto exit; +return ; }/* handle received message */
@@ -181,7 +185,6 @@ static void yurex_interrupt(struct urb *urb)break ; } -exit: retval =usb_submit_urb (dev->urb,GFP_ATOMIC );if (retval) { dev_err(&dev->interface->dev, "%s - usb_submit_urb failed: %d\n",
@@ -210,7 +213,7 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_init_waitqueue_head (&dev->waitq); dev->udev =usb_get_dev (interface_to_usbdev (interface)); - dev->interface = interface; + dev->interface =usb_get_intf (interface);/* set up the endpoint information */ iface_desc = interface->cur_altsetting;
@@ -333,8 +336,9 @@ static void yurex_disconnect(struct usb_interface *interface)/* prevent more I/O from starting */ usb_poison_urb (dev->urb); +usb_poison_urb (dev->cntl_urb);mutex_lock (&dev->io_mutex); - dev->interface =NULL ; + dev->disconnected =1 ;mutex_unlock (&dev->io_mutex);/* wakeup waiters */
@@ -421,7 +425,7 @@ static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t dev = (struct usb_yurex *)file->private_data;mutex_lock (&dev->io_mutex); -if (!dev->interface) {/* already disconnected */ +if (dev->disconnected) {/* already disconnected */ mutex_unlock (&dev->io_mutex);return -ENODEV ; }
@@ -452,7 +456,7 @@ static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t co goto error;mutex_lock (&dev->io_mutex); -if (!dev->interface) {/* already disconnected */ +if (dev->disconnected) {/* already disconnected */ mutex_unlock (&dev->io_mutex); retval = -ENODEV ; goto error;
drivers/usb/renesas_usbhs/common.h +1 -0
@@ -207,6 +207,7 @@ struct usbhs_priv;/* DCPCTR */ #define BSTS (1 << 15)/* Buffer Status */ #define SUREQ (1 << 14)/* Sending SETUP Token */ +#define INBUFM (1 << 14)/* (PIPEnCTR) Transfer Buffer Monitor */ #define CSSTS (1 << 12)/* CSSTS Status */ #define ACLRM (1 << 9)/* Buffer Auto-Clear Mode */ #define SQCLR (1 << 8)/* Toggle Bit Clear */
drivers/usb/renesas_usbhs/fifo.c +1 -1
@@ -100,7 +100,7 @@ static void __usbhsf_pkt_del(struct usbhs_pkt *pkt)list_del_init (&pkt->node); } -static struct usbhs_pkt *__usbhsf_pkt_get (struct usbhs_pipe *pipe) +struct usbhs_pkt *__usbhsf_pkt_get (struct usbhs_pipe *pipe) {if (list_empty (&pipe->list))return NULL ;
drivers/usb/renesas_usbhs/fifo.h +1 -0
@@ -98,5 +98,6 @@ void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, void *buf, int len, int zero, int sequence);struct usbhs_pkt *usbhs_pkt_pop (struct usbhs_pipe *pipe,struct usbhs_pkt *pkt);void usbhs_pkt_start (struct usbhs_pipe *pipe); +struct usbhs_pkt *__usbhsf_pkt_get (struct usbhs_pipe *pipe);#endif /* RENESAS_USB_FIFO_H */
drivers/usb/renesas_usbhs/mod_gadget.c +15 -3
@@ -704,8 +704,7 @@ static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge)struct usbhs_priv *priv =usbhsg_gpriv_to_priv (gpriv);struct device *dev =usbhsg_gpriv_to_dev (gpriv);unsigned long flags; - -usbhsg_pipe_disable (uep); +int ret =0 ;dev_dbg (dev,"set halt %d (pipe %d)\n" , halt,usbhs_pipe_number (pipe));
@@ -713,6 +712,18 @@ static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge)/******************** spin lock ********************/ usbhs_lock (priv, flags); +/* +* According to usb_ep_set_halt()'s description, this function should +* return -EAGAIN if the IN endpoint has any queue or data. Note +* that the usbhs_pipe_is_dir_in() returns false if the pipe is an +* IN endpoint in the gadget mode. +*/ +if (!usbhs_pipe_is_dir_in (pipe) && (__usbhsf_pkt_get (pipe) || +usbhs_pipe_contains_transmittable_data (pipe))) { + ret = -EAGAIN ; + goto out; + } +if (halt)usbhs_pipe_stall (pipe);else
@@ -723,10 +734,11 @@ static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge)else usbhsg_status_clr (gpriv,USBHSG_STATUS_WEDGE ); +out:usbhs_unlock (priv, flags);/******************** spin unlock ******************/ -return 0 ; +return ret; }static int usbhsg_ep_set_halt (struct usb_ep *ep,int value)
drivers/usb/renesas_usbhs/pipe.c +15 -0
@@ -263,6 +263,21 @@ int usbhs_pipe_is_accessible(struct usbhs_pipe *pipe)return -EBUSY ; } +bool usbhs_pipe_contains_transmittable_data (struct usbhs_pipe *pipe) +{ +u16 val; + +/* Do not support for DCP pipe */ +if (usbhs_pipe_is_dcp (pipe)) +return false; + + val =usbhsp_pipectrl_get (pipe); +if (val &INBUFM ) +return true; + +return false; +} +/* * PID ctrl */
drivers/usb/renesas_usbhs/pipe.h +1 -0
@@ -85,6 +85,7 @@ void usbhs_pipe_init(struct usbhs_priv *priv,int usbhs_pipe_get_maxpacket (struct usbhs_pipe *pipe);void usbhs_pipe_clear (struct usbhs_pipe *pipe);int usbhs_pipe_is_accessible (struct usbhs_pipe *pipe); +bool usbhs_pipe_contains_transmittable_data (struct usbhs_pipe *pipe);void usbhs_pipe_enable (struct usbhs_pipe *pipe);void usbhs_pipe_disable (struct usbhs_pipe *pipe);void usbhs_pipe_stall (struct usbhs_pipe *pipe);
drivers/usb/serial/ftdi_sio.c +3 -0
@@ -1038,6 +1038,9 @@ static const struct usb_device_id id_table_combined[] = {/* EZPrototypes devices */ { USB_DEVICE(EZPROTOTYPES_VID, HJELMSLUND_USB485_ISO_PID) }, { USB_DEVICE_INTERFACE_NUMBER(UNJO_VID, UNJO_ISODEBUG_V1_PID, 1) }, +/* Sienna devices */ + { USB_DEVICE(FTDI_VID, FTDI_SIENNA_PID) }, + { USB_DEVICE(ECHELON_VID, ECHELON_U20_PID) }, { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +9 -0
@@ -38,6 +38,9 @@#define FTDI_LUMEL_PD12_PID 0x6002 +/* Sienna Serial Interface by Secyourit GmbH */ +#define FTDI_SIENNA_PID 0x8348 +/* Cyber Cortex AV by Fabulous Silicon (http://fabuloussilicon.com) */ #define CYBER_CORTEX_AV_PID 0x8698
@@ -687,6 +690,12 @@#define BANDB_TTL3USB9M_PID 0xAC50#define BANDB_ZZ_PROG1_USB_PID 0xBA02 +/* +* Echelon USB Serial Interface +*/ +#define ECHELON_VID 0x0920 +#define ECHELON_U20_PID 0x7500 +/* * Intrepid Control Systems (http://www.intrepidcs.com/) ValueCAN and NeoVI */
drivers/usb/serial/keyspan.c +2 -2
@@ -1249,8 +1249,8 @@ static struct urb *keyspan_setup_urb(struct usb_serial *serial, int endpoint, ep_desc =find_ep (serial, endpoint);if (!ep_desc) { -/* leak the urb, something's wrong and the callers don't care */ -return urb; +usb_free_urb (urb); +return NULL ; }if (usb_endpoint_xfer_int (ep_desc)) { ep_type_name ="INT" ;
drivers/usb/serial/ti_usb_3410_5052.c +3 -7
@@ -542,7 +542,6 @@ static void ti_close(struct usb_serial_port *port)struct ti_port *tport;int port_number;int status; -int do_unlock;unsigned long flags; tdev =usb_get_serial_data (port->serial);
@@ -569,16 +568,13 @@ static void ti_close(struct usb_serial_port *port)"%s - cannot send close port command, %d\n" , __func__, status); -/* if mutex_lock is interrupted, continue anyway */ - do_unlock = !mutex_lock_interruptible (&tdev->td_open_close_lock); +mutex_lock (&tdev->td_open_close_lock); --tport->tp_tdev->td_open_port_count; -if (tport->tp_tdev->td_open_port_count <=0 ) { +if (tport->tp_tdev->td_open_port_count ==0 ) {/* last port is closed, shut down interrupt urb */ usb_kill_urb (port->serial->port[0 ]->interrupt_in_urb); - tport->tp_tdev->td_open_port_count =0 ; } -if (do_unlock) -mutex_unlock (&tdev->td_open_close_lock); +mutex_unlock (&tdev->td_open_close_lock); }
drivers/usb/serial/usb-serial.c +1 -4
@@ -317,10 +317,7 @@ static void serial_cleanup(struct tty_struct *tty) serial = port->serial; owner = serial->type->driver.owner; -mutex_lock (&serial->disc_mutex); -if (!serial->disconnected) -usb_autopm_put_interface (serial->interface); -mutex_unlock (&serial->disc_mutex); +usb_autopm_put_interface (serial->interface);usb_serial_put (serial);module_put (owner);
drivers/usb/serial/whiteheat.c +10 -3
@@ -604,6 +604,10 @@ static int firm_send_command(struct usb_serial_port *port, __u8 command, command_port = port->serial->port[COMMAND_PORT ]; command_info =usb_get_serial_port_data (command_port); + +if (command_port->bulk_out_size < datasize +1 ) +return -EIO ; +mutex_lock (&command_info->mutex); command_info->command_finished = false;
@@ -677,6 +681,7 @@ static void firm_setup_port(struct tty_struct *tty)struct device *dev = &port->dev;struct whiteheat_port_settings port_settings;unsigned int cflag = tty->termios.c_cflag; +speed_t baud; port_settings.port = port->port_number +1 ;
@@ -737,11 +742,13 @@ static void firm_setup_port(struct tty_struct *tty)dev_dbg (dev,"%s - XON = %2x, XOFF = %2x\n" , __func__, port_settings.xon, port_settings.xoff);/* get the baud rate wanted */ - port_settings.baud =tty_get_baud_rate (tty); -dev_dbg (dev,"%s - baud rate = %d\n" , __func__, port_settings.baud); + baud =tty_get_baud_rate (tty); + port_settings.baud =cpu_to_le32 (baud); +dev_dbg (dev,"%s - baud rate = %u\n" , __func__, baud);/* fixme: should set validated settings */ -tty_encode_baud_rate (tty, port_settings.baud, port_settings.baud); +tty_encode_baud_rate (tty, baud, baud); +/* handle any settings that aren't specified in the tty structure */ port_settings.lloop =0 ;
drivers/usb/serial/whiteheat.h +1 -1
@@ -91,7 +91,7 @@ struct whiteheat_simple {struct whiteheat_port_settings {__u8 port;/* port number (1 to N) */ -__u32 baud;/* any value 7 - 460800, firmware calculates +__le32 baud;/* any value 7 - 460800, firmware calculates best fit; arrives little endian */ __u8 bits;/* 5, 6, 7, or 8 */ __u8 stop;/* 1 or 2, default 1 (2 = 1.5 if bits = 5) */
drivers/usb/usb-skeleton.c +7 -8
@@ -63,6 +63,7 @@ struct usb_skel {spinlock_t err_lock;/* lock for errors */ struct kref kref;struct mutex io_mutex;/* synchronize I/O with disconnect */ + unsigned long disconnected:1;wait_queue_head_t bulk_in_wait;/* to wait for an ongoing read */ };#define to_skel_dev (d) container_of(d, struct usb_skel, kref)
@@ -75,6 +76,7 @@ static void skel_delete(struct kref *kref)struct usb_skel *dev =to_skel_dev (kref);usb_free_urb (dev->bulk_in_urb); +usb_put_intf (dev->interface);usb_put_dev (dev->udev);kfree (dev->bulk_in_buffer);kfree (dev);
@@ -126,10 +128,7 @@ static int skel_release(struct inode *inode, struct file *file)return -ENODEV ;/* allow the device to be autosuspended */ -mutex_lock (&dev->io_mutex); -if (dev->interface) -usb_autopm_put_interface (dev->interface); -mutex_unlock (&dev->io_mutex); +usb_autopm_put_interface (dev->interface);/* decrement the count on our device */ kref_put (&dev->kref, skel_delete);
@@ -241,7 +240,7 @@ static ssize_t skel_read(struct file *file, char *buffer, size_t count,if (rv <0 )return rv; -if (!dev->interface) {/* disconnect() was called */ +if (dev->disconnected) {/* disconnect() was called */ rv = -ENODEV ; goto exit; }
@@ -422,7 +421,7 @@ static ssize_t skel_write(struct file *file, const char *user_buffer,/* this lock makes sure we don't submit URBs to gone devices */ mutex_lock (&dev->io_mutex); -if (!dev->interface) {/* disconnect() was called */ +if (dev->disconnected) {/* disconnect() was called */ mutex_unlock (&dev->io_mutex); retval = -ENODEV ; goto error;
@@ -511,7 +510,7 @@ static int skel_probe(struct usb_interface *interface,init_waitqueue_head (&dev->bulk_in_wait); dev->udev =usb_get_dev (interface_to_usbdev (interface)); - dev->interface = interface; + dev->interface =usb_get_intf (interface);/* set up the endpoint information */ /* use only the first bulk-in and bulk-out endpoints */
@@ -590,7 +589,7 @@ static void skel_disconnect(struct usb_interface *interface)/* prevent more I/O from starting */ mutex_lock (&dev->io_mutex); - dev->interface =NULL ; + dev->disconnected =1 ;mutex_unlock (&dev->io_mutex);usb_kill_anchored_urbs (&dev->submitted);
drivers/video/fbdev/omap2/dss/dss.c +1 -1
@@ -708,7 +708,7 @@ static const struct dss_features omap34xx_dss_feats __initconst = { };static const struct dss_features omap3630_dss_feats__initconst = { - .fck_div_max =32 , + .fck_div_max =31 , .dss_fck_multiplier =1 , .parent_clk_name ="dpll4_ck" , .dpi_select_source = &dss_dpi_select_source_omap2_omap3,
fs/btrfs/file.c +19 -17
@@ -1888,23 +1888,6 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)bool full_sync =0 ;u64 len; -/* -* If the inode needs a full sync, make sure we use a full range to -* avoid log tree corruption, due to hole detection racing with ordered -* extent completion for adjacent ranges, and assertion failures during -* hole detection. -*/ -if (test_bit (BTRFS_INODE_NEEDS_FULL_SYNC , - &BTRFS_I (inode)->runtime_flags)) { - start =0 ; - end =LLONG_MAX ; - } - -/* -* The range length can be represented by u64, we have to do the typecasts -* to avoid signed overflow if it's [0, LLONG_MAX] eg. from fsync() -*/ - len = (u64 )end - (u64 )start +1 ;trace_btrfs_sync_file (file, datasync);/*
@@ -1924,6 +1907,25 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)mutex_lock (&inode->i_mutex); +/* +* If the inode needs a full sync, make sure we use a full range to +* avoid log tree corruption, due to hole detection racing with ordered +* extent completion for adjacent ranges, and assertion failures during +* hole detection. Do this while holding the inode lock, to avoid races +* with other tasks. +*/ +if (test_bit (BTRFS_INODE_NEEDS_FULL_SYNC , + &BTRFS_I (inode)->runtime_flags)) { + start =0 ; + end =LLONG_MAX ; + } + +/* +* The range length can be represented by u64, we have to do the typecasts +* to avoid signed overflow if it's [0, LLONG_MAX] eg. from fsync() +*/ + len = (u64 )end - (u64 )start +1 ; +/* * We flush the dirty pages again to avoid some dirty pages in the * range being left.
fs/ceph/caps.c +5 -5
@@ -913,6 +913,11 @@ void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release)dout ("__ceph_remove_cap %p from %p\n" , cap, &ci->vfs_inode); +/* remove from inode's cap rbtree, and clear auth cap */ +rb_erase (&cap->ci_node, &ci->i_caps); +if (ci->i_auth_cap == cap) + ci->i_auth_cap =NULL ; +/* remove from session list */ spin_lock (&session->s_cap_lock);/*
@@ -939,11 +944,6 @@ void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) cap->ci =NULL ;spin_unlock (&session->s_cap_lock); -/* remove from inode list */ -rb_erase (&cap->ci_node, &ci->i_caps); -if (ci->i_auth_cap == cap) - ci->i_auth_cap =NULL ; -if (removed)ceph_put_cap (mdsc, cap);
fs/ceph/inode.c +1 -0
@@ -1260,6 +1260,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req, req->r_request_started);dout (" final dn %p\n" , dn); }else if (!req->r_aborted && + req->r_locked_dir && (req->r_op ==CEPH_MDS_OP_LOOKUPSNAP || req->r_op ==CEPH_MDS_OP_MKSNAP )) {struct dentry *dn = req->r_dentry;
fs/ceph/mds_client.c +11 -10
@@ -199,8 +199,8 @@ static int parse_reply_info_dir(void **p, void *end, } done: -if (*p != end) - goto bad; +/* Skip over any unrecognized fields */ + *p = end;return 0 ; bad:
@@ -221,12 +221,10 @@ static int parse_reply_info_filelock(void **p, void *end, goto bad; info->filelock_reply = *p; - *p +=sizeof (*info->filelock_reply); -if (unlikely (*p != end)) - goto bad; +/* Skip over any unrecognized fields */ + *p = end;return 0 ; - bad:return -EIO ; }
@@ -239,18 +237,21 @@ static int parse_reply_info_create(void **p, void *end, u64 features) {if (features &CEPH_FEATURE_REPLY_CREATE_INODE ) { +/* Malformed reply? */ if (*p == end) { info->has_create_ino = false; }else { info->has_create_ino = true; - info->ino =ceph_decode_64 (p); +ceph_decode_64_safe (p, end, info->ino, bad); } + }else { +if (*p != end) + goto bad; } -if (unlikely (*p != end)) - goto bad; +/* Skip over any unrecognized fields */ + *p = end;return 0 ; - bad:return -EIO ; }
fs/cifs/dir.c +7 -1
@@ -817,10 +817,16 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,static int cifs_d_revalidate (struct dentry *direntry,unsigned int flags) { +struct inode *inode; +if (flags &LOOKUP_RCU )return -ECHILD ;if (direntry->d_inode) { + inode =d_inode (direntry); +if ((flags &LOOKUP_REVAL ) && !CIFS_CACHE_READ (CIFS_I (inode))) +CIFS_I (inode)->time =0 ;/* force reval */ +if (cifs_revalidate_dentry (direntry))return 0 ;else {
@@ -831,7 +837,7 @@ cifs_d_revalidate(struct dentry *direntry, unsigned int flags)* attributes will have been updated by * cifs_revalidate_dentry(). */ -if (IS_AUTOMOUNT (direntry->d_inode) && +if (IS_AUTOMOUNT (inode) && !(direntry->d_flags &DCACHE_NEED_AUTOMOUNT )) {spin_lock (&direntry->d_lock); direntry->d_flags |=DCACHE_NEED_AUTOMOUNT ;
fs/cifs/file.c +6 -0
@@ -253,6 +253,12 @@ cifs_nt_open(char *full_path, struct inode *inode, struct cifs_sb_info *cifs_sb, rc =cifs_get_inode_info (&inode, full_path, buf, inode->i_sb, xid, fid); +if (rc) { + server->ops->close (xid, tcon, fid); +if (rc == -ESTALE ) + rc = -EOPENSTALE ; + } + out:kfree (buf);return rc;
fs/cifs/inode.c +51 -2
71 lines not on this page · raw message
kernel/time/tick-broadcast-hrtimer.c +31 -26
57 lines not on this page · raw message
net/batman-adv/bat_iv_ogm.c +50 -11
61 lines not on this page · raw message
sound/core/timer.c +39 -28
67 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.