2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/drivers/net/can
Gerhard Sittig 1149108e2f can: mscan: improve clock API use
the .get_clock() callback is run from probe() and might allocate
resources, introduce a .put_clock() callback that is run from remove()
to undo any allocation activities

prepare and enable the clocks in open(), disable and unprepare the
clocks in close() if clocks were acquired during probe(), to not assume
knowledge about which activities are done in probe() and remove()

use devm_get_clk() to lookup the SYS and REF clocks, to have the clocks
put upon device shutdown

store pointers to data structures upon successful allocation already
instead of deferral until complete setup, such that subroutines in the
setup sequence may access those data structures as well to track their
resource acquisition

since clock allocation remains optional, the release callback as well as
the enable/disable calls in open/close are optional as well

Cc: linux-can@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2013-08-29 22:49:35 +02:00
..
c_can can: c_can: fix error checking of priv->instance in probe() 2013-08-22 09:40:19 +02:00
cc770 net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
mscan can: mscan: improve clock API use 2013-08-29 22:49:35 +02:00
sja1000 net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
softing net: can: replace strict_strtoul() with kstrtoul() 2013-06-03 00:39:46 -07:00
usb can: pcan_usb: fix wrong memcpy() bytes length 2013-08-11 21:51:49 -07:00
at91_can.c can: at91_can: use platform_set_drvdata() 2013-08-22 09:40:19 +02:00
bfin_can.c net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
dev.c can: rework skb reserved data handling 2013-01-28 18:17:25 -05:00
flexcan.c can: flexcan: use platform_set_drvdata() 2013-08-22 09:40:20 +02:00
grcan.c net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
janz-ican3.c net: can: replace strict_strtoul() with kstrtoul() 2013-06-03 00:39:46 -07:00
Kconfig can: flexcan: remove HAVE_CAN_FLEXCAN Kconfig symbol 2013-06-03 13:13:49 +02:00
led.c net: pass info struct via netdevice notifier 2013-05-28 13:11:01 -07:00
Makefile can: add tx/rx LED trigger support 2013-01-26 16:58:59 +01:00
mcp251x.c can: mcp251x: Allow tuning SPI mode and limit maximal SPI speed 2013-08-21 09:28:29 +02:00
pch_can.c can: pch_can: fix invalid error codes 2013-01-26 17:13:41 +01:00
slcan.c net: can: replace strict_strtoul() with kstrtoul() 2013-06-03 00:39:46 -07:00
ti_hecc.c net: can: ti_hecc: remove unnecessary platform_set_drvdata() 2013-05-16 13:27:20 +02:00
vcan.c sections: fix section conflicts in drivers/net 2012-10-06 03:04:42 +09:00