mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
HSI changes for the 7.3 series
* omap_ssi_core: fix missing DMA mask * misc. small cleanups -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmqHV+QACgkQ2O7X88g7 +pp4dA/+JGwUDmUiizI+3oy3Tm3Q+yMlNOLqjPOzTAWoSDNf6HzKRBPGGeMhbj2k DMDf7bkDvgpQbsk6FXMothfvpxM+nR8G5zxUbntV+Ks2wAEqyp+TsyNLuQveARSb qmUUEaknp+YHOnhZWqcdWE/V7FSBmUg8BikF0kCSAj3yL0Ff09xahiFu+bnJxVh6 gU+FAqC6NZW7kMLKA4HUj/mp2r8eOs1KGKIcBOa5EPggxC30yynYggZGbqS9aJW1 Q8ahhKU3dAxK5CnkPZUsHJMsB0YXtoQbSSV9T//vxZFJx2jS2ZUV27yhEU6gLHCb DNdKiJasoscx/I51Y7XyWNHK/C4lF2yLVJO9Ra2rSKVudVGVRKurVLEdi/Dg9yC+ S/h6fVdBST7f2IgkAmNTvMvp0hSLITFeBf+kNKSov8a9nIzvB0uA2URRKHdFXyAI fCQaqyM00/oNG2oc+oIwSolxtMNBIDFir1qhZFY2/lBXqkH2S2YU4hDo2irBQskr Gw1GYd9W5AEzxgknRplkvfsgbn+9nOMgSju2wsXoFv7b8RoNxthstfeW7vylZWZ3 5zmYckhk1pUWNIMawbZ302BrSxnrsGEmYBxYtSlQcj56RxsRpPspjaA11dX8kW6A 6w4bvqXyyuxeJ7L2t8jC0cqagaGkpnQ51/VmchEUW/vzwDvQwMA= =TV6h -----END PGP SIGNATURE----- Merge tag 'hsi-for-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi Pull HSI updates from Sebastian Reichel: - omap_ssi_core: fix missing DMA mask - misc small cleanups * tag 'hsi-for-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi: hsi: omap_ssi_core: fix missing DMA mask setup for SSI controller device HSI: omap_ssi: Remove redundant dev_err() HSI: nokia-modem: Remove redundant dev_err() hsi: omap_ssi: remove debugfs on port creation failure
This commit is contained in:
commit
283955dfac
|
|
@ -157,11 +157,8 @@ static int nokia_modem_probe(struct device *dev)
|
|||
do_nokia_modem_rst_ind_tasklet, (unsigned long)modem);
|
||||
err = devm_request_irq(dev, irq, nokia_modem_rst_ind_isr,
|
||||
pflags, "modem_rst_ind", modem);
|
||||
if (err < 0) {
|
||||
dev_err(dev, "Request rst_ind irq(%d) failed (flags %d)\n",
|
||||
irq, pflags);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
enable_irq_wake(irq);
|
||||
|
||||
if (pm) {
|
||||
|
|
|
|||
|
|
@ -370,11 +370,8 @@ static int ssi_add_controller(struct hsi_controller *ssi,
|
|||
(unsigned long)ssi);
|
||||
err = devm_request_irq(&ssi->device, omap_ssi->gdd_irq, ssi_gdd_isr,
|
||||
0, "gdd_mpu", ssi);
|
||||
if (err < 0) {
|
||||
dev_err(&ssi->device, "Request GDD IRQ %d failed (%d)",
|
||||
omap_ssi->gdd_irq, err);
|
||||
if (err < 0)
|
||||
goto out_err;
|
||||
}
|
||||
|
||||
omap_ssi->port = devm_kcalloc(&ssi->device, ssi->num_ports,
|
||||
sizeof(*omap_ssi->port), GFP_KERNEL);
|
||||
|
|
@ -502,6 +499,12 @@ static int ssi_probe(struct platform_device *pd)
|
|||
|
||||
pm_runtime_enable(&pd->dev);
|
||||
|
||||
ssi->device.dma_mask = &ssi->device.coherent_dma_mask;
|
||||
|
||||
err = dma_set_mask_and_coherent(&ssi->device, DMA_BIT_MASK(32));
|
||||
if (err)
|
||||
goto out2;
|
||||
|
||||
err = ssi_hw_init(ssi);
|
||||
if (err < 0)
|
||||
goto out2;
|
||||
|
|
@ -529,6 +532,9 @@ static int ssi_probe(struct platform_device *pd)
|
|||
return err;
|
||||
out3:
|
||||
device_for_each_child(&pd->dev, NULL, ssi_remove_ports);
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
ssi_debug_remove_ctrl(ssi);
|
||||
#endif
|
||||
out2:
|
||||
ssi_remove_controller(ssi);
|
||||
pm_runtime_disable(&pd->dev);
|
||||
|
|
|
|||
|
|
@ -1024,9 +1024,6 @@ static int ssi_port_irq(struct hsi_port *port, struct platform_device *pd)
|
|||
omap_port->irq = err;
|
||||
err = devm_request_threaded_irq(&port->device, omap_port->irq, NULL,
|
||||
ssi_pio_thread, IRQF_ONESHOT, "SSI PORT", port);
|
||||
if (err < 0)
|
||||
dev_err(&port->device, "Request IRQ %d failed (%d)\n",
|
||||
omap_port->irq, err);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
@ -1048,9 +1045,6 @@ static int ssi_wake_irq(struct hsi_port *port, struct platform_device *pd)
|
|||
ssi_wake_thread,
|
||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
|
||||
"SSI cawake", port);
|
||||
if (err < 0)
|
||||
dev_err(&port->device, "Request Wake in IRQ %d failed %d\n",
|
||||
cawake_irq, err);
|
||||
err = enable_irq_wake(cawake_irq);
|
||||
if (err < 0)
|
||||
dev_err(&port->device, "Enable wake on the wakeline in irq %d failed %d\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user