未验证 提交 608f7cf3 编写于 作者: A Arnd Bergmann

Merge tag 'memory-controller-drv-5.18-2' of...

Merge tag 'memory-controller-drv-5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl into arm/drivers

Memory controller drivers for v5.18, part two

1. TI: Two fixes for TI EMIF driver for quite old error path issues (so
   for unlikely scenarios).
2. Renesas: Document RZ/V2L SoC in bindings.

* tag 'memory-controller-drv-5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl:
  dt-bindings: memory: renesas,rpc-if: Document RZ/V2L SoC
  memory: emif: check the pointer temp in get_device_details()
  memory: emif: Add check for setup_interrupts

Link: https://lore.kernel.org/r/20220307082552.55719-1-krzysztof.kozlowski@canonical.comSigned-off-by: NArnd Bergmann <arnd@arndb.de>
...@@ -40,7 +40,8 @@ properties: ...@@ -40,7 +40,8 @@ properties:
- items: - items:
- enum: - enum:
- renesas,r9a07g044-rpc-if # RZ/G2{L,LC} - renesas,r9a07g044-rpc-if # RZ/G2{L,LC}
- const: renesas,rzg2l-rpc-if # RZ/G2L family - renesas,r9a07g054-rpc-if # RZ/V2L
- const: renesas,rzg2l-rpc-if
reg: reg:
items: items:
......
...@@ -1025,7 +1025,7 @@ static struct emif_data *__init_or_module get_device_details( ...@@ -1025,7 +1025,7 @@ static struct emif_data *__init_or_module get_device_details(
temp = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); temp = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
dev_info = devm_kzalloc(dev, sizeof(*dev_info), GFP_KERNEL); dev_info = devm_kzalloc(dev, sizeof(*dev_info), GFP_KERNEL);
if (!emif || !pd || !dev_info) { if (!emif || !temp || !dev_info) {
dev_err(dev, "%s:%d: allocation error\n", __func__, __LINE__); dev_err(dev, "%s:%d: allocation error\n", __func__, __LINE__);
goto error; goto error;
} }
...@@ -1117,7 +1117,7 @@ static int __init_or_module emif_probe(struct platform_device *pdev) ...@@ -1117,7 +1117,7 @@ static int __init_or_module emif_probe(struct platform_device *pdev)
{ {
struct emif_data *emif; struct emif_data *emif;
struct resource *res; struct resource *res;
int irq; int irq, ret;
if (pdev->dev.of_node) if (pdev->dev.of_node)
emif = of_get_memory_device_details(pdev->dev.of_node, &pdev->dev); emif = of_get_memory_device_details(pdev->dev.of_node, &pdev->dev);
...@@ -1147,7 +1147,9 @@ static int __init_or_module emif_probe(struct platform_device *pdev) ...@@ -1147,7 +1147,9 @@ static int __init_or_module emif_probe(struct platform_device *pdev)
emif_onetime_settings(emif); emif_onetime_settings(emif);
emif_debugfs_init(emif); emif_debugfs_init(emif);
disable_and_clear_all_interrupts(emif); disable_and_clear_all_interrupts(emif);
setup_interrupts(emif, irq); ret = setup_interrupts(emif, irq);
if (ret)
goto error;
/* One-time actions taken on probing the first device */ /* One-time actions taken on probing the first device */
if (!emif1) { if (!emif1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册