Commit af6432c7 authored by Andrew Jeffery's avatar Andrew Jeffery Committed by Corey Minyard

ipmi: kcs: Finish configuring ASPEED KCS device before enable

The interrupts were configured after the channel was enabled. Configure
them beforehand so they will work.
Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
Reviewed-by: default avatarHaiyue Wang <haiyue.wang@linux.intel.com>
Message-Id: <c0aba2c9dfe2d0525e9cefd37995983ead0ec242.1576462051.git-series.andrew@aj.id.au>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 782da920
...@@ -268,13 +268,14 @@ static int aspeed_kcs_probe(struct platform_device *pdev) ...@@ -268,13 +268,14 @@ static int aspeed_kcs_probe(struct platform_device *pdev)
kcs_bmc->io_inputb = aspeed_kcs_inb; kcs_bmc->io_inputb = aspeed_kcs_inb;
kcs_bmc->io_outputb = aspeed_kcs_outb; kcs_bmc->io_outputb = aspeed_kcs_outb;
rc = aspeed_kcs_config_irq(kcs_bmc, pdev);
if (rc)
return rc;
dev_set_drvdata(dev, kcs_bmc); dev_set_drvdata(dev, kcs_bmc);
aspeed_kcs_set_address(kcs_bmc, addr); aspeed_kcs_set_address(kcs_bmc, addr);
aspeed_kcs_enable_channel(kcs_bmc, true); aspeed_kcs_enable_channel(kcs_bmc, true);
rc = aspeed_kcs_config_irq(kcs_bmc, pdev);
if (rc)
return rc;
rc = misc_register(&kcs_bmc->miscdev); rc = misc_register(&kcs_bmc->miscdev);
if (rc) { if (rc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment