Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 185925dd authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Merge 3.18.17 into android-3.18



Changes in 3.18.17:
	Revert "tools/vm: fix page-flags build"
	ARM: 8221/1: PJ4: allow building in Thumb-2 mode
	fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings
	net: core: Correct an over-stringent device loop detection.
	x86: bpf_jit: fix FROM_BE16 and FROM_LE16/32 instructions
	x86: bpf_jit: fix compilation of large bpf programs
	net: phy: Allow EEE for all RGMII variants
	rtnl/bond: don't send rtnl msg for unregistered iface
	tcp/ipv6: fix flow label setting in TIME_WAIT state
	net/ipv6/udp: Fix ipv6 multicast socket filter regression
	net: sched: fix call_rcu() race on classifier module unloads
	ipv4: Avoid crashing in ip_error
	cdc_ncm: Fix tx_bytes statistics
	bridge: fix parsing of MLDv2 reports
	net: dp83640: fix broken calibration routine.
	net: dp83640: reinforce locking rules.
	net: dp83640: fix improper double spin locking.
	unix/caif: sk_socket can disappear when state is unlocked
	xen/netback: Properly initialize credit_bytes
	net_sched: invoke ->attach() after setting dev->qdisc
	sctp: Fix mangled IPv4 addresses on a IPv6 listening socket
	bridge: fix br_multicast_query_expired() bug
	udp: fix behavior of wrong checksums
	tcp: fix child sockets to use system default congestion control if not set
	xen: netback: read hotplug script once at start of day.
	ipv4/udp: Verify multicast group is ours in upd_v4_early_demux()
	be2net: Replace dma/pci_alloc_coherent() calls with dma_zalloc_coherent()
	bridge: disable softirqs around br_fdb_update to avoid lockup
	crush: ensuring at most num-rep osds are selected
	sched, numa: Do not hint for NUMA balancing on VM_MIXEDMAP mappings
	ARM: shmobile: r8a7791: add USBDMAC{0,1} clocks to device tree
	ARM: shmobile: r8a7791: Correct SDHI clock labels and output-names
	xtensa: xtfpga: fix hardware lockup caused by LCD driver
	serial: imx: Enable UCR4_OREN in startup interface
	serial: imx: Fix clearing of receiver overrun flag
	pinctrl: remove maxpin from documentation
	ARM: shmobile: r8a7790: Correct SYSCIER value
	ARM: shmobile: r8a7791: Correct SYSCIER value
	pinctrl: remove enable/disable callbacks from documentation
	pinctrl: remove doc mention of the enable/disable API
	pinctrl: fix example .get_group_pins implementation signature
	HID: kye: Fix report descriptor for Genius PenSketch M912
	HID: uclogic: Set quirks from inside the driver
	HID: saitek: add USB ID for older R.A.T. 7
	HID: microsoft: Add ID for NE7K wireless keyboard
	HID: Introduce hidpp, a module to handle Logitech hid++ devices
	HID: add ALWAYS_POLL quirk for a Logitech 0xc007
	HID: add HP OEM mouse to quirk ALWAYS_POLL
	HID: add quirk for PIXART OEM mouse used by HP
	HID: usbhid: more mice with ALWAYS_POLL
	HID: usbhid: yet another mouse with ALWAYS_POLL
	HID: usbhid: Add a quirk for raphnet multi-gamepad adapters
	HID: sjoy: support Super Joy Box 4
	HID: usbhid: Add HID_QUIRK_NOGET for Aten DVI KVM switch
	iommu/vt-d: Allow RMRR on graphics devices too
	ACPI: Add support for device specific properties
	Driver core: Unified device properties interface for platform firmware
	serial: 8250: add support for ACPI-probed serial port for X-Gene platform
	serial: 8250_dw: add support for AMD SOC Carrizo
	stable_kernel_rules: Add clause about specification of kernel versions to patch.
	xprtrdma: Take struct ib_device_attr off the stack
	xprtrdma: Prevent infinite loop in rpcrdma_ep_create()
	inet: add TCP_NEW_SYN_RECV state
	net: add sk_fullsock() helper
	netfilter: x_tables: fix cgroup matching on non-full sks
	ext4: fix bh leak on error paths in ext4_rename() and ext4_cross_rename()
	jhash: Update jhash_[321]words functions to use correct initval
	vti6: fix uninit when using x-netns
	usb: dwc2: hcd: use new USB_RESUME_TIMEOUT
	[media] Add and use IS_REACHABLE macro
	RDS: Documentation: Document AF_RDS, PF_RDS and SOL_RDS correctly.
	selinux/nlmsg: add XFRM_MSG_NEWSPDINFO
	selinux/nlmsg: add XFRM_MSG_GETSPDINFO
	selinux/nlmsg: add XFRM_MSG_[NEW|GET]SADINFO
	x86/iommu: Fix header comments regarding standard and _FINISH macros
	mnt: Fix the error check in __detach_mounts
	selinux/nlmsg: add XFRM_MSG_REPORT
	selinux/nlmsg: add XFRM_MSG_MIGRATE
	selinux/nlmsg: add XFRM_MSG_MAPPING
	mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures
	firmware/ihex2fw.c: restore missing default in switch statement
	efivarfs: Ensure VariableName is NUL-terminated
	x86/efi: Store upper bits of command line buffer address in ext_cmd_line_ptr
	tcp: tcp_get_info() should fetch socket fields once
	dmaengine: shdmac: avoid unused variable warnings
	spi: bitbang: Make setup_transfer() callback optional
	x86: Clean up cr4 manipulation
	x86: Store a per-cpu shadow copy of CR4
	KVM: VMX: Preserve host CR4.MCE value while in guest mode.
	kernel: make READ_ONCE() valid on const arguments
	Linux 3.18.17

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parents 20384e23 ea5dd38e
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -62,11 +62,10 @@ Socket Interface
================

  AF_RDS, PF_RDS, SOL_RDS
        These constants haven't been assigned yet, because RDS isn't in
        mainline yet. Currently, the kernel module assigns some constant
        and publishes it to user space through two sysctl files
                /proc/sys/net/rds/pf_rds
                /proc/sys/net/rds/sol_rds
	AF_RDS and PF_RDS are the domain type to be used with socket(2)
	to create RDS sockets. SOL_RDS is the socket-level to be used
	with setsockopt(2) and getsockopt(2) for RDS specific socket
	options.

  fd = socket(PF_RDS, SOCK_SEQPACKET, 0);
        This creates a new, unbound RDS socket.
+8 −9
Original line number Diff line number Diff line
@@ -72,7 +72,6 @@ static struct pinctrl_desc foo_desc = {
	.name = "foo",
	.pins = foo_pins,
	.npins = ARRAY_SIZE(foo_pins),
	.maxpin = 63,
	.owner = THIS_MODULE,
};

@@ -164,8 +163,8 @@ static const char *foo_get_group_name(struct pinctrl_dev *pctldev,
}

static int foo_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector,
			       unsigned ** const pins,
			       unsigned * const num_pins)
			       const unsigned **pins,
			       unsigned *num_pins)
{
	*pins = (unsigned *) foo_groups[selector].pins;
	*num_pins = foo_groups[selector].num_pins;
@@ -570,9 +569,8 @@ is possible to perform the requested mux setting, poke the hardware so that
this happens.

Pinmux drivers are required to supply a few callback functions, some are
optional. Usually the enable() and disable() functions are implemented,
writing values into some certain registers to activate a certain mux setting
for a certain pin.
optional. Usually the set_mux() function is implemented, writing values into
some certain registers to activate a certain mux setting for a certain pin.

A simple driver for the above example will work by setting bits 0, 1, 2, 3 or 4
into some register named MUX to select a certain function with a certain
@@ -1266,7 +1264,7 @@ The semantics of the pinctrl APIs are:

Usually the pin control core handled the get/put pair and call out to the
device drivers bookkeeping operations, like checking available functions and
the associated pins, whereas the enable/disable pass on to the pin controller
the associated pins, whereas select_state pass on to the pin controller
driver which takes care of activating and/or deactivating the mux setting by
quickly poking some registers.

@@ -1363,8 +1361,9 @@ function, but with different named in the mapping as described under
"Advanced mapping" above. So that for an SPI device, we have two states named
"pos-A" and "pos-B".

This snippet first muxes the function in the pins defined by group A, enables
it, disables and releases it, and muxes it in on the pins defined by group B:
This snippet first initializes a state object for both groups (in foo_probe()),
then muxes the function in the pins defined by group A, and finally muxes it in
on the pins defined by group B:

#include <linux/pinctrl/consumer.h>

+10 −0
Original line number Diff line number Diff line
@@ -81,6 +81,16 @@ format in the sign-off area:
     git cherry-pick fd21073
     git cherry-pick <this commit>

Also, some patches may have kernel version prerequisites.  This can be
specified in the following format in the sign-off area:

     Cc:  <stable@vger.kernel.org> # 3.3.x-

   The tag has the meaning of:
     git cherry-pick <this commit>

   For each "-stable" tree starting with the specified version.

Following the submission:

 - The sender will receive an ACK when the patch has been accepted into the
+1 −1
Original line number Diff line number Diff line
VERSION = 3
PATCHLEVEL = 18
SUBLEVEL = 16
SUBLEVEL = 17
EXTRAVERSION =
NAME = Shuffling Zombie Juror

+10 −7
Original line number Diff line number Diff line
@@ -695,19 +695,19 @@
		};

		/* Variable factor clocks */
		sd1_clk: sd2_clk@e6150078 {
		sd2_clk: sd2_clk@e6150078 {
			compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
			reg = <0 0xe6150078 0 4>;
			clocks = <&pll1_div2_clk>;
			#clock-cells = <0>;
			clock-output-names = "sd1";
			clock-output-names = "sd2";
		};
		sd2_clk: sd3_clk@e615026c {
		sd3_clk: sd3_clk@e615026c {
			compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
			reg = <0 0xe615026c 0 4>;
			clocks = <&pll1_div2_clk>;
			#clock-cells = <0>;
			clock-output-names = "sd2";
			clock-output-names = "sd3";
		};
		mmc0_clk: mmc0_clk@e6150240 {
			compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
@@ -922,17 +922,20 @@
		mstp3_clks: mstp3_clks@e615013c {
			compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
			reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
			clocks = <&cp_clk>, <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
				 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>;
			clocks = <&cp_clk>, <&sd3_clk>, <&sd2_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
				 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>,
				 <&hp_clk>, <&hp_clk>;
			#clock-cells = <1>;
			renesas,clock-indices = <
				R8A7791_CLK_TPU0 R8A7791_CLK_SDHI2 R8A7791_CLK_SDHI1 R8A7791_CLK_SDHI0
				R8A7791_CLK_MMCIF0 R8A7791_CLK_IIC0 R8A7791_CLK_PCIEC R8A7791_CLK_IIC1
				R8A7791_CLK_SSUSB R8A7791_CLK_CMT1
				R8A7791_CLK_USBDMAC0 R8A7791_CLK_USBDMAC1
			>;
			clock-output-names =
				"tpu0", "sdhi2", "sdhi1", "sdhi0",
				"mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1";
				"mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1",
				"usbdmac0", "usbdmac1";
		};
		mstp5_clks: mstp5_clks@e6150144 {
			compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
Loading