Skip to content

Commit f956cb9

Browse files
committed
Merge tag 'char-misc-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver fixes from Greg KH: "Here are some tiny char/misc driver fixes for 5.13-rc4. Nothing huge here, just some tiny fixes for reported issues: - two interconnect driver fixes - kgdb build warning fix for gcc-11 - hgafb regression fix - soundwire driver fix - mei driver fix All have been in linux-next with no reported issues" * tag 'char-misc-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: mei: request autosuspend after sending rx flow control kgdb: fix gcc-11 warnings harder video: hgafb: correctly handle card detect failure during probe soundwire: qcom: fix handling of qcom,ports-block-pack-mode interconnect: qcom: Add missing MODULE_DEVICE_TABLE interconnect: qcom: bcm-voter: add a missing of_node_put()
2 parents e1a9e3d + bbf0a94 commit f956cb9

5 files changed

Lines changed: 19 additions & 5 deletions

File tree

drivers/interconnect/qcom/bcm-voter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/*
3-
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
3+
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
44
*/
55

66
#include <asm/div64.h>
@@ -205,6 +205,7 @@ struct bcm_voter *of_bcm_voter_get(struct device *dev, const char *name)
205205
}
206206
mutex_unlock(&bcm_voter_lock);
207207

208+
of_node_put(node);
208209
return voter;
209210
}
210211
EXPORT_SYMBOL_GPL(of_bcm_voter_get);
@@ -362,6 +363,7 @@ static const struct of_device_id bcm_voter_of_match[] = {
362363
{ .compatible = "qcom,bcm-voter" },
363364
{ }
364365
};
366+
MODULE_DEVICE_TABLE(of, bcm_voter_of_match);
365367

366368
static struct platform_driver qcom_icc_bcm_voter_driver = {
367369
.probe = qcom_icc_bcm_voter_probe,

drivers/misc/kgdbts.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@
101101
printk(KERN_INFO a); \
102102
} while (0)
103103
#define v2printk(a...) do { \
104-
if (verbose > 1) \
104+
if (verbose > 1) { \
105105
printk(KERN_INFO a); \
106+
} \
106107
touch_nmi_watchdog(); \
107108
} while (0)
108109
#define eprintk(a...) do { \

drivers/misc/mei/interrupt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ static int mei_cl_irq_read(struct mei_cl *cl, struct mei_cl_cb *cb,
277277
return ret;
278278
}
279279

280+
pm_runtime_mark_last_busy(dev->dev);
281+
pm_request_autosuspend(dev->dev);
282+
280283
list_move_tail(&cb->list, &cl->rd_pending);
281284

282285
return 0;

drivers/soundwire/qcom.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,16 @@ static int qcom_swrm_get_port_config(struct qcom_swrm_ctrl *ctrl)
11501150

11511151
ret = of_property_read_u8_array(np, "qcom,ports-block-pack-mode",
11521152
bp_mode, nports);
1153-
if (ret)
1154-
return ret;
1153+
if (ret) {
1154+
u32 version;
1155+
1156+
ctrl->reg_read(ctrl, SWRM_COMP_HW_VERSION, &version);
1157+
1158+
if (version <= 0x01030000)
1159+
memset(bp_mode, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS);
1160+
else
1161+
return ret;
1162+
}
11551163

11561164
memset(hstart, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS);
11571165
of_property_read_u8_array(np, "qcom,ports-hstart", hstart, nports);

drivers/video/fbdev/hgafb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static int hgafb_probe(struct platform_device *pdev)
558558
int ret;
559559

560560
ret = hga_card_detect();
561-
if (!ret)
561+
if (ret)
562562
return ret;
563563

564564
printk(KERN_INFO "hgafb: %s with %ldK of memory detected.\n",

0 commit comments

Comments
 (0)