Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deepin-Kernel-SIG][Upstream]Update kernel base to 6.6.32 #214

Merged
merged 103 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
caa2ea6
cifs: Add client version details to NTLM authenticate message
meetakshi253 Oct 4, 2023
172e006
SMB3: clarify some of the unused CreateOption flags
Oct 9, 2023
174411e
Add definition for new smb3.1.1 command type
Oct 9, 2023
8972017
smb: use crypto_shash_digest() in symlink_hash()
ebiggers Oct 29, 2023
b90878e
cifs: print server capabilities in DebugData
sprasad-microsoft Oct 30, 2023
c4cf882
smb3: minor RDMA cleanup
Nov 6, 2023
589820e
smb3: more minor cleanups for session handling routines
Nov 7, 2023
578ed18
smb3: minor cleanup of session handling code
Nov 6, 2023
02fb37c
Missing field not being returned in ioctl CIFS_IOC_GET_MNT_INFO
Nov 10, 2023
4789dcd
cifs: fix use after free for iface while disabling secondary channels
ritbudhiraja Nov 21, 2023
92911ab
smb: client: introduce cifs_sfu_make_node()
Apr 27, 2024
63cf3af
smb: client: Fix minor whitespace errors and warnings
pmariani Nov 27, 2023
e3cbcab
smb: client: extend smb2_compound_op() to accept more commands
Apr 28, 2024
03f9c27
smb: client: allow creating special files via reparse points
Apr 28, 2024
fdff365
smb: client: optimise reparse point querying
Apr 28, 2024
7cbb800
smb: client: allow creating symlinks via reparse points
pcacjr Nov 26, 2023
d5653fe
smb: client: cleanup smb2_query_reparse_point()
pcacjr Nov 26, 2023
5ad8a8a
smb: client: handle special files and symlinks in SMB3 POSIX
pcacjr Nov 28, 2023
1fdb490
cifs: fix in logging in cifs_chan_update_iface
Apr 28, 2024
50389fd
smb3: Improve exception handling in allocate_mr_list()
elfring Dec 29, 2023
3afa2e9
cifs: Pass unbyteswapped eof value into SMB2_set_eof()
dhowells Jan 1, 2024
335fe2f
cifs: get rid of dup length check in parse_reparse_point()
pcacjr Jan 6, 2024
029cdcc
cifs: remove unneeded return statement
Jan 9, 2024
8dde6fa
ksmbd: auth: fix most kernel-doc warnings
rddunlap Dec 16, 2023
55a1649
ksmbd: vfs: fix all kernel-doc warnings
rddunlap Dec 16, 2023
b3a79ec
cifs: remove redundant variable tcon_exist
ColinIanKing Jan 16, 2024
f3aafbc
cifs: minor comment cleanup
Jan 17, 2024
f56b8fd
cifs: pick channel for tcon and tdis
sprasad-microsoft Jan 10, 2024
578fc4b
cifs: new nt status codes from MS-SMB2
sprasad-microsoft Jan 17, 2024
b3fdd5c
smb: client: don't clobber ->i_rdev from cached reparse points
pcacjr Jan 19, 2024
21f1438
cifs: new mount option called retrans
sprasad-microsoft Jan 17, 2024
45f3348
smb: Fix some kernel-doc comments
Jan 19, 2024
7626044
smb: client: delete "true", "false" defines
Jan 23, 2024
4320d42
cifs: commands that are retried should have replay flag set
sprasad-microsoft Jan 21, 2024
7f58939
cifs: set replay flag for retries of write command
sprasad-microsoft Jan 18, 2024
bf05544
ksmbd: Add kernel-doc for ksmbd_extract_sharename() function
Feb 2, 2024
1c62710
cifs: update the same create_guid on replay
Apr 28, 2024
f991086
smb: client: handle path separator of created SMB symlinks
pcacjr Feb 11, 2024
e7f7a43
smb3: update allocation size more accurately on write completion
Feb 22, 2024
09d4c99
smb: client: parse owner/group when creating reparse points
May 1, 2024
ec7dc4d
smb: client: get rid of smb311_posix_query_path_info()
pcacjr Jan 19, 2024
4263617
smb: client: reuse file lease key in compound operations
meetakshi253 Mar 6, 2024
ff0c681
smb: client: do not defer close open handles to deleted files
May 1, 2024
7baa405
smb: client: retry compound request without reusing lease
meetakshi253 Mar 6, 2024
e942a99
smb: client: introduce reparse mount option
pcacjr Jan 21, 2024
e8cc08e
smb: client: move most of reparse point handling code to common file
pcacjr Mar 6, 2024
88eba02
smb: client: fix potential broken compound request
pcacjr Jan 25, 2024
9d33fcb
smb: client: reduce number of parameters in smb2_compound_op()
pcacjr Jan 25, 2024
354aa35
smb: client: add support for WSL reparse points
pcacjr Jan 26, 2024
9340269
smb: client: Fix a NULL vs IS_ERR() check in wsl_set_xattrs()
Jan 31, 2024
643cb95
smb: client: introduce SMB2_OP_QUERY_WSL_EA
May 1, 2024
eb62a32
smb: client: parse uid, gid, mode and dev from WSL reparse points
pcacjr Jan 29, 2024
be41615
smb: client: set correct d_type for reparse DFS/DFSR and mount point
pcacjr Feb 2, 2024
447751a
smb: client: return reparse type in /proc/mounts
pcacjr Feb 24, 2024
f7392b4
smb3: add dynamic trace point for ioctls
Mar 6, 2024
3b64e95
smb: client: negotiate compression algorithms
ematsumiya Feb 23, 2024
e644824
smb: common: fix fields sizes in compression_pattern_payload_v1
ematsumiya Mar 8, 2024
441a379
smb: common: simplify compression headers
ematsumiya Mar 8, 2024
23b1350
ksmbd: mark SMB2_SESSION_EXPIRED to session when destroying previous …
namjaejeon Mar 10, 2024
7a14ad9
ksmbd: add support for durable handles v1/v2
namjaejeon Mar 12, 2024
883d9a6
cifs: defer close file handles having RH lease
bharathsm-ms Mar 13, 2024
27f1e58
cifs: fixes for get_inode_info
meetakshi253 Mar 14, 2024
b7399d3
cifs: remove redundant variable assignment
bharathsm-ms Mar 14, 2024
067b9c8
ksmbd: fix possible null-deref in smb_lazy_parent_lease_break_close
Mar 13, 2024
3b19175
ksmbd: Fix spelling mistake "connction" -> "connection"
ColinIanKing Mar 13, 2024
6557009
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
namjaejeon Mar 16, 2024
d0cf587
ksmbd: fix potencial out-of-bounds when buffer offset is invalid
namjaejeon Mar 18, 2024
26c0020
cifs: Move some extern decls from .c files to .h
May 1, 2024
ccb677d
smb311: correct incorrect offset field in compression header
Mar 19, 2024
194f742
smb311: additional compression flag defined in updated protocol spec
Mar 19, 2024
589c0e9
smb3: add trace event for mknod
Mar 24, 2024
581c650
smb: client: fix NULL ptr deref in cifs_mark_open_handles_for_deleted…
pcacjr Apr 8, 2024
b941b04
smb: client: instantiate when creating SFU files
pcacjr Apr 9, 2024
bb914b7
cifs: Add tracing for the cifs_tcon struct refcounting
dhowells Apr 4, 2024
6b36371
ksmbd: add continuous availability share parameter
namjaejeon Apr 20, 2024
e0fbf72
smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings
GustavoARSilva Apr 11, 2024
10bf6c4
drm/amd/display: Fix division by zero in setup_dsc_config
jfernandez Apr 22, 2024
f57d8dd
net: ks8851: Fix another TX stall caused by wrong ISR flag handling
tanstafel May 13, 2024
4353045
ice: pass VSI pointer into ice_vc_isvalid_q_id
jacob-keller Feb 16, 2024
775a0ec
ice: remove unnecessary duplicate checks for VF VSI ID
jacob-keller Feb 16, 2024
9df6f69
Bluetooth: L2CAP: Fix slab-use-after-free in l2cap_connect()
swkim101 Apr 30, 2024
57aa29f
Bluetooth: L2CAP: Fix div-by-zero in l2cap_le_flowctl_init()
swkim101 May 4, 2024
3c756ff
KEYS: trusted: Fix memory leak in tpm2_key_encode()
jarkkojs May 19, 2024
40d8eb8
mmc: core: Add HS400 tuning in HS400es initialization
Dec 25, 2023
267388b
kselftest: Add a ksft_perror() helper
broonie Sep 28, 2023
3546257
bpf: Add missing BPF_LINK_TYPE invocations
olsajiri Dec 15, 2023
b0e0cf3
erofs: get rid of erofs_fs_context
LiBaokun96 Apr 19, 2024
55d0e06
erofs: reliably distinguish block based and fscache mode
brauner Apr 19, 2024
2b4aa2f
drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_s…
srishanm Dec 26, 2023
0828ae5
binder: fix max_thread type inconsistency
Apr 21, 2024
27ed5d1
usb: dwc3: Wait unconditionally after issuing EndXfer command
May 2, 2024
31739f2
net: usb: ax88179_178a: fix link status when link is set to down/up
jtornosm May 10, 2024
0a16316
usb: typec: ucsi: displayport: Fix potential deadlock
May 7, 2024
ce81984
usb: typec: tipd: fix event checking for tps6598x
JC-WV Apr 29, 2024
2264f01
serial: kgdboc: Fix NMI-safety problems from keyboard reset code
daniel-thompson Apr 24, 2024
a05670a
remoteproc: mediatek: Make sure IPI buffer fits in L2TCM
Mar 21, 2024
fa6331a
KEYS: trusted: Do not use WARN when encode fails
jarkkojs May 13, 2024
6e56cf9
admin-guide/hw-vuln/core-scheduling: fix return type of PR_SCHED_CORE…
t-8ch Apr 23, 2024
5f4fb33
docs: kernel_include.py: Cope with docutils 0.21
akiyks May 1, 2024
ba32392
Docs/admin-guide/mm/damon/usage: fix wrong example of DAMOS filter ma…
sjp38 May 3, 2024
c21f4db
block: add a disk_has_partscan helper
May 2, 2024
ada74f8
block: add a partscan sysfs attribute for disks
May 2, 2024
ef6675a
Linux 6.6.32
gregkh May 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Documentation/ABI/stable/sysfs-block
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ Description:
devices that support receiving integrity metadata.


What: /sys/block/<disk>/partscan
Date: May 2024
Contact: Christoph Hellwig <[email protected]>
Description:
The /sys/block/<disk>/partscan files reports if partition
scanning is enabled for the disk. It returns "1" if partition
scanning is enabled, or "0" if not. The value type is a 32-bit
unsigned integer, but only "0" and "1" are valid values.


What: /sys/block/<disk>/<partition>/alignment_offset
Date: April 2009
Contact: Martin K. Petersen <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions Documentation/admin-guide/hw-vuln/core-scheduling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ arg4:
will be performed for all tasks in the task group of ``pid``.

arg5:
userspace pointer to an unsigned long for storing the cookie returned by
``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands.
userspace pointer to an unsigned long long for storing the cookie returned
by ``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands.

In order for a process to push a cookie to, or pull a cookie from a process, it
is required to have the ptrace access mode: `PTRACE_MODE_READ_REALCREDS` to the
Expand Down
2 changes: 1 addition & 1 deletion Documentation/admin-guide/mm/damon/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ pages of all memory cgroups except ``/having_care_already``.::
# # further filter out all cgroups except one at '/having_care_already'
echo memcg > 1/type
echo /having_care_already > 1/memcg_path
echo N > 1/matching
echo Y > 1/matching

Note that ``anon`` and ``memcg`` filters are currently supported only when
``paddr`` `implementation <sysfs_contexts>` is being used.
Expand Down
1 change: 0 additions & 1 deletion Documentation/sphinx/kernel_include.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def _run(self):
# HINT: this is the only line I had to change / commented out:
#path = utils.relative_path(None, path)

path = nodes.reprunicode(path)
encoding = self.options.get(
'encoding', self.state.document.settings.input_encoding)
e_handler=self.state.document.settings.input_encoding_error_handler
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 6
SUBLEVEL = 31
SUBLEVEL = 32
EXTRAVERSION =
NAME = Hurr durr I'ma ninja sloth

Expand Down
15 changes: 10 additions & 5 deletions block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,7 @@ int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode)
struct block_device *bdev;
int ret = 0;

if (disk->flags & (GENHD_FL_NO_PART | GENHD_FL_HIDDEN))
return -EINVAL;
if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
if (!disk_has_partscan(disk))
return -EINVAL;
if (disk->open_partitions)
return -EBUSY;
Expand Down Expand Up @@ -503,8 +501,7 @@ int __must_check device_add_disk(struct device *parent, struct gendisk *disk,
goto out_unregister_bdi;

/* Make sure the first partition scan will be proceed */
if (get_capacity(disk) && !(disk->flags & GENHD_FL_NO_PART) &&
!test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
if (get_capacity(disk) && disk_has_partscan(disk))
set_bit(GD_NEED_PART_SCAN, &disk->state);

bdev_add(disk->part0, ddev->devt);
Expand Down Expand Up @@ -1040,6 +1037,12 @@ static ssize_t diskseq_show(struct device *dev,
return sprintf(buf, "%llu\n", disk->diskseq);
}

static ssize_t partscan_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
return sprintf(buf, "%u\n", disk_has_partscan(dev_to_disk(dev)));
}

static DEVICE_ATTR(range, 0444, disk_range_show, NULL);
static DEVICE_ATTR(ext_range, 0444, disk_ext_range_show, NULL);
static DEVICE_ATTR(removable, 0444, disk_removable_show, NULL);
Expand All @@ -1053,6 +1056,7 @@ static DEVICE_ATTR(stat, 0444, part_stat_show, NULL);
static DEVICE_ATTR(inflight, 0444, part_inflight_show, NULL);
static DEVICE_ATTR(badblocks, 0644, disk_badblocks_show, disk_badblocks_store);
static DEVICE_ATTR(diskseq, 0444, diskseq_show, NULL);
static DEVICE_ATTR(partscan, 0444, partscan_show, NULL);

#ifdef CONFIG_FAIL_MAKE_REQUEST
ssize_t part_fail_show(struct device *dev,
Expand Down Expand Up @@ -1099,6 +1103,7 @@ static struct attribute *disk_attrs[] = {
&dev_attr_events_async.attr,
&dev_attr_events_poll_msecs.attr,
&dev_attr_diskseq.attr,
&dev_attr_partscan.attr,
#ifdef CONFIG_FAIL_MAKE_REQUEST
&dev_attr_fail.attr,
#endif
Expand Down
5 changes: 1 addition & 4 deletions block/partitions/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,7 @@ static int blk_add_partitions(struct gendisk *disk)
struct parsed_partitions *state;
int ret = -EAGAIN, p;

if (disk->flags & GENHD_FL_NO_PART)
return 0;

if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
if (!disk_has_partscan(disk))
return 0;

state = check_partition(disk);
Expand Down
2 changes: 1 addition & 1 deletion drivers/android/binder.c
Original file line number Diff line number Diff line change
Expand Up @@ -5368,7 +5368,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
goto err;
break;
case BINDER_SET_MAX_THREADS: {
int max_threads;
u32 max_threads;

if (copy_from_user(&max_threads, ubuf,
sizeof(max_threads))) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/android/binder_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ struct binder_proc {
struct list_head todo;
struct binder_stats stats;
struct list_head delivered_death;
int max_threads;
u32 max_threads;
int requested_threads;
int requested_threads_started;
int tmp_ref;
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,9 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
if (!obj)
return -EINVAL;

if (!info || info->head.block == AMDGPU_RAS_BLOCK_COUNT)
return -EINVAL;

if (info->head.block == AMDGPU_RAS_BLOCK__UMC) {
amdgpu_ras_get_ecc_info(adev, &err_data);
} else {
Expand Down
7 changes: 6 additions & 1 deletion drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,12 @@ static bool setup_dsc_config(
if (!is_dsc_possible)
goto done;

dsc_cfg->num_slices_v = pic_height/slice_height;
if (slice_height > 0) {
dsc_cfg->num_slices_v = pic_height / slice_height;
} else {
is_dsc_possible = false;
goto done;
}

if (target_bandwidth_kbps > 0) {
is_dsc_possible = decide_dsc_target_bpp_x16(
Expand Down
9 changes: 7 additions & 2 deletions drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1819,8 +1819,13 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,

if (err)
goto free_card;

} else if (!mmc_card_hs400es(card)) {
} else if (mmc_card_hs400es(card)) {
if (host->ops->execute_hs400_tuning) {
err = host->ops->execute_hs400_tuning(host, card);
if (err)
goto free_card;
}
} else {
/* Select the desired bus width optionally */
err = mmc_select_bus_width(card);
if (err > 0 && mmc_card_hs(card)) {
Expand Down
22 changes: 10 additions & 12 deletions drivers/net/ethernet/intel/ice/ice_virtchnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,17 +547,15 @@ bool ice_vc_isvalid_vsi_id(struct ice_vf *vf, u16 vsi_id)

/**
* ice_vc_isvalid_q_id
* @vf: pointer to the VF info
* @vsi_id: VSI ID
* @vsi: VSI to check queue ID against
* @qid: VSI relative queue ID
*
* check for the valid queue ID
*/
static bool ice_vc_isvalid_q_id(struct ice_vf *vf, u16 vsi_id, u8 qid)
static bool ice_vc_isvalid_q_id(struct ice_vsi *vsi, u8 qid)
{
struct ice_vsi *vsi = ice_find_vsi(vf->pf, vsi_id);
/* allocated Tx and Rx queues should be always equal for VF VSI */
return (vsi && (qid < vsi->alloc_txq));
return qid < vsi->alloc_txq;
}

/**
Expand Down Expand Up @@ -1257,7 +1255,7 @@ static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg)
*/
q_map = vqs->rx_queues;
for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF) {
if (!ice_vc_isvalid_q_id(vf, vqs->vsi_id, vf_q_id)) {
if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) {
v_ret = VIRTCHNL_STATUS_ERR_PARAM;
goto error_param;
}
Expand All @@ -1279,7 +1277,7 @@ static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg)

q_map = vqs->tx_queues;
for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF) {
if (!ice_vc_isvalid_q_id(vf, vqs->vsi_id, vf_q_id)) {
if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) {
v_ret = VIRTCHNL_STATUS_ERR_PARAM;
goto error_param;
}
Expand Down Expand Up @@ -1384,7 +1382,7 @@ static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)
q_map = vqs->tx_queues;

for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF) {
if (!ice_vc_isvalid_q_id(vf, vqs->vsi_id, vf_q_id)) {
if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) {
v_ret = VIRTCHNL_STATUS_ERR_PARAM;
goto error_param;
}
Expand All @@ -1410,7 +1408,7 @@ static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)
bitmap_zero(vf->rxq_ena, ICE_MAX_RSS_QS_PER_VF);
} else if (q_map) {
for_each_set_bit(vf_q_id, &q_map, ICE_MAX_RSS_QS_PER_VF) {
if (!ice_vc_isvalid_q_id(vf, vqs->vsi_id, vf_q_id)) {
if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) {
v_ret = VIRTCHNL_STATUS_ERR_PARAM;
goto error_param;
}
Expand Down Expand Up @@ -1466,7 +1464,7 @@ ice_cfg_interrupt(struct ice_vf *vf, struct ice_vsi *vsi, u16 vector_id,
for_each_set_bit(vsi_q_id_idx, &qmap, ICE_MAX_RSS_QS_PER_VF) {
vsi_q_id = vsi_q_id_idx;

if (!ice_vc_isvalid_q_id(vf, vsi->vsi_num, vsi_q_id))
if (!ice_vc_isvalid_q_id(vsi, vsi_q_id))
return VIRTCHNL_STATUS_ERR_PARAM;

q_vector->num_ring_rx++;
Expand All @@ -1480,7 +1478,7 @@ ice_cfg_interrupt(struct ice_vf *vf, struct ice_vsi *vsi, u16 vector_id,
for_each_set_bit(vsi_q_id_idx, &qmap, ICE_MAX_RSS_QS_PER_VF) {
vsi_q_id = vsi_q_id_idx;

if (!ice_vc_isvalid_q_id(vf, vsi->vsi_num, vsi_q_id))
if (!ice_vc_isvalid_q_id(vsi, vsi_q_id))
return VIRTCHNL_STATUS_ERR_PARAM;

q_vector->num_ring_tx++;
Expand Down Expand Up @@ -1629,7 +1627,7 @@ static int ice_vc_cfg_qs_msg(struct ice_vf *vf, u8 *msg)
qpi->txq.headwb_enabled ||
!ice_vc_isvalid_ring_len(qpi->txq.ring_len) ||
!ice_vc_isvalid_ring_len(qpi->rxq.ring_len) ||
!ice_vc_isvalid_q_id(vf, qci->vsi_id, qpi->txq.queue_id)) {
!ice_vc_isvalid_q_id(vsi, qpi->txq.queue_id)) {
goto error_param;
}

Expand Down
3 changes: 0 additions & 3 deletions drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ ice_vc_fdir_param_check(struct ice_vf *vf, u16 vsi_id)
if (!(vf->driver_caps & VIRTCHNL_VF_OFFLOAD_FDIR_PF))
return -EINVAL;

if (vsi_id != vf->lan_vsi_num)
return -EINVAL;

if (!ice_vc_isvalid_vsi_id(vf, vsi_id))
return -EINVAL;

Expand Down
18 changes: 1 addition & 17 deletions drivers/net/ethernet/micrel/ks8851_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,32 +328,24 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)
{
struct ks8851_net *ks = _ks;
struct sk_buff_head rxq;
unsigned handled = 0;
unsigned long flags;
unsigned int status;
struct sk_buff *skb;

ks8851_lock(ks, &flags);

status = ks8851_rdreg16(ks, KS_ISR);
ks8851_wrreg16(ks, KS_ISR, status);

netif_dbg(ks, intr, ks->netdev,
"%s: status 0x%04x\n", __func__, status);

if (status & IRQ_LCI)
handled |= IRQ_LCI;

if (status & IRQ_LDI) {
u16 pmecr = ks8851_rdreg16(ks, KS_PMECR);
pmecr &= ~PMECR_WKEVT_MASK;
ks8851_wrreg16(ks, KS_PMECR, pmecr | PMECR_WKEVT_LINK);

handled |= IRQ_LDI;
}

if (status & IRQ_RXPSI)
handled |= IRQ_RXPSI;

if (status & IRQ_TXI) {
unsigned short tx_space = ks8851_rdreg16(ks, KS_TXMIR);

Expand All @@ -365,20 +357,12 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)
if (netif_queue_stopped(ks->netdev))
netif_wake_queue(ks->netdev);
spin_unlock(&ks->statelock);

handled |= IRQ_TXI;
}

if (status & IRQ_RXI)
handled |= IRQ_RXI;

if (status & IRQ_SPIBEI) {
netdev_err(ks->netdev, "%s: spi bus error\n", __func__);
handled |= IRQ_SPIBEI;
}

ks8851_wrreg16(ks, KS_ISR, handled);

if (status & IRQ_RXI) {
/* the datasheet says to disable the rx interrupt during
* packet read-out, however we're masking the interrupt
Expand Down
Loading