]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: pn533: Add dev_up/dev_down hooks to phy_ops
authorLars Poeschel <poeschel@lemonage.de>
Tue, 29 Oct 2019 14:46:29 +0000 (15:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2019 04:05:26 +0000 (21:05 -0700)
commitffddbdfa9dd119a18bd2b0239deb382522d182f7
tree63fcb5afda4b044d737000ef46f78ae60acd71e5
parentb4f610e3f28f6f19b16e18fcceb4ed5e559881c0
nfc: pn533: Add dev_up/dev_down hooks to phy_ops

This adds hooks for dev_up and dev_down to the phy_ops. They are
optional.
The idea is to inform the phy driver when the nfc chip is really going
to be used. When it is not used, the phy driver can suspend it's
interface to the nfc chip to save some power. The nfc chip is considered
not in use before dev_up and after dev_down.

Cc: Johan Hovold <johan@kernel.org>
Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn533/pn533.c
drivers/nfc/pn533/pn533.h