Merge 58e2cf5d79
("init: Revert accidental changes to print irqs_disabled()") into android-mainline
Steps on the way to 5.15-rc3 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I00f2888b4478101f9c42498d346aa8ad53f5f58f
This commit is contained in:
commit
5b79693625
18
MAINTAINERS
18
MAINTAINERS
@ -2804,9 +2804,8 @@ F: arch/arm/mach-pxa/include/mach/vpac270.h
|
||||
F: arch/arm/mach-pxa/vpac270.c
|
||||
|
||||
ARM/VT8500 ARM ARCHITECTURE
|
||||
M: Tony Prisk <linux@prisktech.co.nz>
|
||||
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
|
||||
S: Maintained
|
||||
S: Orphan
|
||||
F: Documentation/devicetree/bindings/i2c/i2c-wmt.txt
|
||||
F: arch/arm/mach-vt8500/
|
||||
F: drivers/clocksource/timer-vt8500.c
|
||||
@ -13268,9 +13267,9 @@ S: Maintained
|
||||
F: drivers/hid/hid-nintendo*
|
||||
|
||||
NIOS2 ARCHITECTURE
|
||||
M: Ley Foon Tan <ley.foon.tan@intel.com>
|
||||
M: Dinh Nguyen <dinguyen@kernel.org>
|
||||
S: Maintained
|
||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2.git
|
||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
|
||||
F: arch/nios2/
|
||||
|
||||
NITRO ENCLAVES (NE)
|
||||
@ -17982,10 +17981,11 @@ F: Documentation/admin-guide/svga.rst
|
||||
F: arch/x86/boot/video*
|
||||
|
||||
SWIOTLB SUBSYSTEM
|
||||
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
||||
M: Christoph Hellwig <hch@infradead.org>
|
||||
L: iommu@lists.linux-foundation.org
|
||||
S: Supported
|
||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git
|
||||
W: http://git.infradead.org/users/hch/dma-mapping.git
|
||||
T: git git://git.infradead.org/users/hch/dma-mapping.git
|
||||
F: arch/*/kernel/pci-swiotlb.c
|
||||
F: include/linux/swiotlb.h
|
||||
F: kernel/dma/swiotlb.c
|
||||
@ -20488,7 +20488,6 @@ F: samples/bpf/xdpsock*
|
||||
F: tools/lib/bpf/xsk*
|
||||
|
||||
XEN BLOCK SUBSYSTEM
|
||||
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
||||
M: Roger Pau Monné <roger.pau@citrix.com>
|
||||
L: xen-devel@lists.xenproject.org (moderated for non-subscribers)
|
||||
S: Supported
|
||||
@ -20536,7 +20535,7 @@ S: Supported
|
||||
F: drivers/net/xen-netback/*
|
||||
|
||||
XEN PCI SUBSYSTEM
|
||||
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
||||
M: Juergen Gross <jgross@suse.com>
|
||||
L: xen-devel@lists.xenproject.org (moderated for non-subscribers)
|
||||
S: Supported
|
||||
F: arch/x86/pci/*xen*
|
||||
@ -20559,7 +20558,8 @@ S: Supported
|
||||
F: sound/xen/*
|
||||
|
||||
XEN SWIOTLB SUBSYSTEM
|
||||
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
||||
M: Juergen Gross <jgross@suse.com>
|
||||
M: Stefano Stabellini <sstabellini@kernel.org>
|
||||
L: xen-devel@lists.xenproject.org (moderated for non-subscribers)
|
||||
L: iommu@lists.linux-foundation.org
|
||||
S: Supported
|
||||
|
@ -71,7 +71,7 @@
|
||||
#define AMD_CPU_ID_YC 0x14B5
|
||||
|
||||
#define PMC_MSG_DELAY_MIN_US 100
|
||||
#define RESPONSE_REGISTER_LOOP_MAX 200
|
||||
#define RESPONSE_REGISTER_LOOP_MAX 20000
|
||||
|
||||
#define SOC_SUBSYSTEM_IP_MAX 12
|
||||
#define DELAY_MIN_US 2000
|
||||
|
@ -166,8 +166,7 @@ config DELL_WMI
|
||||
|
||||
config DELL_WMI_PRIVACY
|
||||
bool "Dell WMI Hardware Privacy Support"
|
||||
depends on DELL_WMI
|
||||
depends on LEDS_TRIGGER_AUDIO
|
||||
depends on LEDS_TRIGGER_AUDIO = y || DELL_WMI = LEDS_TRIGGER_AUDIO
|
||||
help
|
||||
This option adds integration with the "Dell Hardware Privacy"
|
||||
feature of Dell laptops to the dell-wmi driver.
|
||||
|
@ -144,6 +144,7 @@ static const struct dmi_system_id gigabyte_wmi_known_working_platforms[] = {
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("B550 AORUS ELITE"),
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("B550 AORUS ELITE V2"),
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("B550 GAMING X V2"),
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("B550I AORUS PRO AX"),
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("B550M AORUS PRO-P"),
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("B550M DS3H"),
|
||||
DMI_EXACT_MATCH_GIGABYTE_BOARD_NAME("Z390 I AORUS PRO WIFI-CF"),
|
||||
|
@ -118,12 +118,30 @@ static const struct dmi_system_id dmi_vgbs_allow_list[] = {
|
||||
{ }
|
||||
};
|
||||
|
||||
/*
|
||||
* Some devices, even non convertible ones, can send incorrect SW_TABLET_MODE
|
||||
* reports. Accept such reports only from devices in this list.
|
||||
*/
|
||||
static const struct dmi_system_id dmi_auto_add_switch[] = {
|
||||
{
|
||||
.matches = {
|
||||
DMI_EXACT_MATCH(DMI_CHASSIS_TYPE, "31" /* Convertible */),
|
||||
},
|
||||
},
|
||||
{
|
||||
.matches = {
|
||||
DMI_EXACT_MATCH(DMI_CHASSIS_TYPE, "32" /* Detachable */),
|
||||
},
|
||||
},
|
||||
{} /* Array terminator */
|
||||
};
|
||||
|
||||
struct intel_hid_priv {
|
||||
struct input_dev *input_dev;
|
||||
struct input_dev *array;
|
||||
struct input_dev *switches;
|
||||
bool wakeup_mode;
|
||||
bool dual_accel;
|
||||
bool auto_add_switch;
|
||||
};
|
||||
|
||||
#define HID_EVENT_FILTER_UUID "eeec56b3-4442-408f-a792-4edd4d758054"
|
||||
@ -452,10 +470,8 @@ static void notify_handler(acpi_handle handle, u32 event, void *context)
|
||||
* Some convertible have unreliable VGBS return which could cause incorrect
|
||||
* SW_TABLET_MODE report, in these cases we enable support when receiving
|
||||
* the first event instead of during driver setup.
|
||||
*
|
||||
* See dual_accel_detect.h for more info on the dual_accel check.
|
||||
*/
|
||||
if (!priv->switches && !priv->dual_accel && (event == 0xcc || event == 0xcd)) {
|
||||
if (!priv->switches && priv->auto_add_switch && (event == 0xcc || event == 0xcd)) {
|
||||
dev_info(&device->dev, "switch event received, enable switches supports\n");
|
||||
err = intel_hid_switches_setup(device);
|
||||
if (err)
|
||||
@ -596,7 +612,8 @@ static int intel_hid_probe(struct platform_device *device)
|
||||
return -ENOMEM;
|
||||
dev_set_drvdata(&device->dev, priv);
|
||||
|
||||
priv->dual_accel = dual_accel_detect();
|
||||
/* See dual_accel_detect.h for more info on the dual_accel check. */
|
||||
priv->auto_add_switch = dmi_check_system(dmi_auto_add_switch) && !dual_accel_detect();
|
||||
|
||||
err = intel_hid_input_setup(device);
|
||||
if (err) {
|
||||
|
@ -8,7 +8,6 @@
|
||||
* which provide mailbox interface for power management usage.
|
||||
*/
|
||||
|
||||
#include <linux/acpi.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/device.h>
|
||||
@ -319,7 +318,7 @@ static struct platform_driver intel_punit_ipc_driver = {
|
||||
.remove = intel_punit_ipc_remove,
|
||||
.driver = {
|
||||
.name = "intel_punit_ipc",
|
||||
.acpi_match_table = ACPI_PTR(punit_ipc_acpi_ids),
|
||||
.acpi_match_table = punit_ipc_acpi_ids,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -655,7 +655,7 @@ static int acpi_add(struct acpi_device *device)
|
||||
goto out_platform_registered;
|
||||
}
|
||||
product = dmi_get_system_info(DMI_PRODUCT_NAME);
|
||||
if (strlen(product) > 4)
|
||||
if (product && strlen(product) > 4)
|
||||
switch (product[4]) {
|
||||
case '5':
|
||||
case '6':
|
||||
|
@ -100,10 +100,10 @@ static const struct ts_dmi_data chuwi_hi10_air_data = {
|
||||
};
|
||||
|
||||
static const struct property_entry chuwi_hi10_plus_props[] = {
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-x", 1914),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-y", 1283),
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-x", 1908),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
|
||||
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
|
||||
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
|
||||
PROPERTY_ENTRY_BOOL("silead,home-button"),
|
||||
@ -111,6 +111,15 @@ static const struct property_entry chuwi_hi10_plus_props[] = {
|
||||
};
|
||||
|
||||
static const struct ts_dmi_data chuwi_hi10_plus_data = {
|
||||
.embedded_fw = {
|
||||
.name = "silead/gsl1680-chuwi-hi10plus.fw",
|
||||
.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
|
||||
.length = 34056,
|
||||
.sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
|
||||
0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
|
||||
0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
|
||||
0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
|
||||
},
|
||||
.acpi_name = "MSSL0017:00",
|
||||
.properties = chuwi_hi10_plus_props,
|
||||
};
|
||||
@ -141,6 +150,33 @@ static const struct ts_dmi_data chuwi_hi10_pro_data = {
|
||||
.properties = chuwi_hi10_pro_props,
|
||||
};
|
||||
|
||||
static const struct property_entry chuwi_hibook_props[] = {
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
|
||||
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
|
||||
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
|
||||
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
|
||||
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
|
||||
PROPERTY_ENTRY_BOOL("silead,home-button"),
|
||||
{ }
|
||||
};
|
||||
|
||||
static const struct ts_dmi_data chuwi_hibook_data = {
|
||||
.embedded_fw = {
|
||||
.name = "silead/gsl1680-chuwi-hibook.fw",
|
||||
.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
|
||||
.length = 40392,
|
||||
.sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
|
||||
0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
|
||||
0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
|
||||
0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
|
||||
},
|
||||
.acpi_name = "MSSL0017:00",
|
||||
.properties = chuwi_hibook_props,
|
||||
};
|
||||
|
||||
static const struct property_entry chuwi_vi8_props[] = {
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
|
||||
PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
|
||||
@ -979,6 +1015,16 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
|
||||
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
|
||||
},
|
||||
},
|
||||
{
|
||||
/* Chuwi HiBook (CWI514) */
|
||||
.driver_data = (void *)&chuwi_hibook_data,
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
|
||||
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
|
||||
/* Above matches are too generic, add bios-date match */
|
||||
DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
|
||||
},
|
||||
},
|
||||
{
|
||||
/* Chuwi Vi8 (CWI506) */
|
||||
.driver_data = (void *)&chuwi_vi8_data,
|
||||
|
@ -58,10 +58,6 @@ modalias_show(struct device *dev, struct device_attribute *a, char *buf)
|
||||
const struct spi_device *spi = to_spi_device(dev);
|
||||
int len;
|
||||
|
||||
len = of_device_modalias(dev, buf, PAGE_SIZE);
|
||||
if (len != -ENODEV)
|
||||
return len;
|
||||
|
||||
len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1);
|
||||
if (len != -ENODEV)
|
||||
return len;
|
||||
@ -367,10 +363,6 @@ static int spi_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||
const struct spi_device *spi = to_spi_device(dev);
|
||||
int rc;
|
||||
|
||||
rc = of_device_uevent_modalias(dev, env);
|
||||
if (rc != -ENODEV)
|
||||
return rc;
|
||||
|
||||
rc = acpi_device_uevent_modalias(dev, env);
|
||||
if (rc != -ENODEV)
|
||||
return rc;
|
||||
|
@ -134,18 +134,9 @@ svcxdr_decode_owner(struct xdr_stream *xdr, struct xdr_netobj *obj)
|
||||
static inline bool
|
||||
svcxdr_encode_owner(struct xdr_stream *xdr, const struct xdr_netobj *obj)
|
||||
{
|
||||
unsigned int quadlen = XDR_QUADLEN(obj->len);
|
||||
__be32 *p;
|
||||
|
||||
if (xdr_stream_encode_u32(xdr, obj->len) < 0)
|
||||
if (obj->len > XDR_MAX_NETOBJ)
|
||||
return false;
|
||||
p = xdr_reserve_space(xdr, obj->len);
|
||||
if (!p)
|
||||
return false;
|
||||
p[quadlen - 1] = 0; /* XDR pad */
|
||||
memcpy(p, obj->data, obj->len);
|
||||
|
||||
return true;
|
||||
return xdr_stream_encode_opaque(xdr, obj->data, obj->len) > 0;
|
||||
}
|
||||
|
||||
#endif /* _LOCKD_SVCXDR_H_ */
|
||||
|
@ -3570,7 +3570,7 @@ static struct nfsd4_conn *__nfsd4_find_conn(struct svc_xprt *xpt, struct nfsd4_s
|
||||
}
|
||||
|
||||
static __be32 nfsd4_match_existing_connection(struct svc_rqst *rqst,
|
||||
struct nfsd4_session *session, u32 req)
|
||||
struct nfsd4_session *session, u32 req, struct nfsd4_conn **conn)
|
||||
{
|
||||
struct nfs4_client *clp = session->se_client;
|
||||
struct svc_xprt *xpt = rqst->rq_xprt;
|
||||
@ -3593,6 +3593,8 @@ static __be32 nfsd4_match_existing_connection(struct svc_rqst *rqst,
|
||||
else
|
||||
status = nfserr_inval;
|
||||
spin_unlock(&clp->cl_lock);
|
||||
if (status == nfs_ok && conn)
|
||||
*conn = c;
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -3617,8 +3619,16 @@ __be32 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp,
|
||||
status = nfserr_wrong_cred;
|
||||
if (!nfsd4_mach_creds_match(session->se_client, rqstp))
|
||||
goto out;
|
||||
status = nfsd4_match_existing_connection(rqstp, session, bcts->dir);
|
||||
if (status == nfs_ok || status == nfserr_inval)
|
||||
status = nfsd4_match_existing_connection(rqstp, session,
|
||||
bcts->dir, &conn);
|
||||
if (status == nfs_ok) {
|
||||
if (bcts->dir == NFS4_CDFC4_FORE_OR_BOTH ||
|
||||
bcts->dir == NFS4_CDFC4_BACK)
|
||||
conn->cn_flags |= NFS4_CDFC4_BACK;
|
||||
nfsd4_probe_callback(session->se_client);
|
||||
goto out;
|
||||
}
|
||||
if (status == nfserr_inval)
|
||||
goto out;
|
||||
status = nfsd4_map_bcts_dir(&bcts->dir);
|
||||
if (status)
|
||||
|
@ -1242,7 +1242,7 @@ trace_initcall_start_cb(void *data, initcall_t fn)
|
||||
{
|
||||
ktime_t *calltime = (ktime_t *)data;
|
||||
|
||||
printk(KERN_DEBUG "calling %pS @ %i irqs_disabled() %d\n", fn, task_pid_nr(current), irqs_disabled());
|
||||
printk(KERN_DEBUG "calling %pS @ %i\n", fn, task_pid_nr(current));
|
||||
*calltime = ktime_get();
|
||||
}
|
||||
|
||||
@ -1256,8 +1256,8 @@ trace_initcall_finish_cb(void *data, initcall_t fn, int ret)
|
||||
rettime = ktime_get();
|
||||
delta = ktime_sub(rettime, *calltime);
|
||||
duration = (unsigned long long) ktime_to_ns(delta) >> 10;
|
||||
printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs, irqs_disabled() %d\n",
|
||||
fn, ret, duration, irqs_disabled());
|
||||
printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs\n",
|
||||
fn, ret, duration);
|
||||
}
|
||||
|
||||
static ktime_t initcall_calltime;
|
||||
|
Loading…
Reference in New Issue
Block a user