lists.openwall.net   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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 13 Dec 2011 10:33:13 +0100
From:	Alexander Stein <alexander.stein@...tec-electronic.com>
To:	Joachim Foerster <joachim.foerster@...singlinkelectronics.com>,
	Paul Gortmaker <paul.gortmaker@...driver.com>,
	Grant Likely <grant.likely@...retlab.ca>
Cc:	Greg Kroah-Hartman <gregkh@...e.de>, linux-usb@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Alexander Stein <alexander.stein@...tec-electronic.com>
Subject: [PATCH] ISP1760: Add flags for interrupt polarity and edge/level trigger

Signed-off-by: Alexander Stein <alexander.stein@...tec-electronic.com>
---
 drivers/usb/host/isp1760-if.c |    4 ++++
 include/linux/usb/isp1760.h   |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c
index a7dc1e1..0ef9867 100644
--- a/drivers/usb/host/isp1760-if.c
+++ b/drivers/usb/host/isp1760-if.c
@@ -388,6 +388,10 @@ static int __devinit isp1760_plat_probe(struct platform_device *pdev)
 			devflags |= ISP1760_FLAG_DACK_POL_HIGH;
 		if (priv->dreq_polarity_high)
 			devflags |= ISP1760_FLAG_DREQ_POL_HIGH;
+		if (priv->interrupt_polarity_high)
+			devflags |= ISP1760_FLAG_INTR_POL_HIGH;
+		if (priv->interrupt_edge_triggered)
+			devflags |= ISP1760_FLAG_INTR_EDGE_TRIG;
 	}
 
 	hcd = isp1760_register(mem_res->start, mem_size, irq_res->start,
diff --git a/include/linux/usb/isp1760.h b/include/linux/usb/isp1760.h
index de7de53..c5edbc8 100644
--- a/include/linux/usb/isp1760.h
+++ b/include/linux/usb/isp1760.h
@@ -13,6 +13,8 @@ struct isp1760_platform_data {
 	unsigned analog_oc:1;			/* Analog overcurrent */
 	unsigned dack_polarity_high:1;		/* DACK active high */
 	unsigned dreq_polarity_high:1;		/* DREQ active high */
+	unsigned interrupt_polarity_high:1;
+	unsigned interrupt_edge_triggered:1;
 };
 
 #endif /* __LINUX_USB_ISP1760_H */
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ