lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 23 Feb 2014 15:21:08 +0100
From:	Sebastian Hesselbarth <>
To:	Sebastian Hesselbarth <>
Cc:	Thomas Petazzoni <>,
	Linus Walleij <>,
	Jason Cooper <>,
	Andrew Lunn <>,
	Gregory Clement <>,
	Ezequiel Garcia <>,,
Subject: [PATCH v4 10/16] pinctrl: mvebu: armada-375: provide generic mpp callbacks

From: Thomas Petazzoni <>

We want to get rid of passing register addresses to common pinctrl
driver, so provide set/get callbacks that use generic mpp pins helper
and will be used later.

Signed-off-by: Thomas Petazzoni <>
Signed-off-by: Sebastian Hesselbarth <>
- also take care of new Armada 375 pinctrl driver
- use generic mpp helpers (Suggested by Thomas Petazzoni)

Cc: Linus Walleij <>
Cc: Jason Cooper <>
Cc: Andrew Lunn <>
Cc: Gregory Clement <>
Cc: Thomas Petazzoni <>
Cc: Ezequiel Garcia <>
 drivers/pinctrl/mvebu/pinctrl-armada-375.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-375.c b/drivers/pinctrl/mvebu/pinctrl-armada-375.c
index c741a347e3d8..30958873cd9b 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-375.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-375.c
@@ -23,6 +23,18 @@
 #include "pinctrl-mvebu.h"
+static void __iomem *mpp_base;
+static int armada_375_mpp_ctrl_get(unsigned pid, unsigned long *config)
+	return default_mpp_ctrl_get(mpp_base, pid, config);
+static int armada_375_mpp_ctrl_set(unsigned pid, unsigned long config)
+	return default_mpp_ctrl_set(mpp_base, pid, config);
 static struct mvebu_mpp_mode mv88f6720_mpp_modes[] = {
 		 MPP_FUNCTION(0x0, "gpio", NULL),

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists