-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dwc_otg: Add ARCH_BCM2835 support #1086
Conversation
Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
No objections. |
@@ -56,7 +56,7 @@ | |||
#include "irqchip.h" | |||
|
|||
/* Put the bank and irq (32 bits) into the hwirq */ | |||
#define MAKE_HWIRQ(b, n) ((b << 5) | (n)) | |||
#define MAKE_HWIRQ(b, n) (((b) << 5) | (n)) | |||
#define HWIRQ_BANK(i) (i >> 5) | |||
#define HWIRQ_BIT(i) BIT(i & 0x1f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i should get the same parenthetical treatment as b, no?
I just have the one unanswered point (use of parentheses within macros - the commit fixes one by necessity but there are two on adjacent lines that could also be fixed), but otherwise it looks good. |
I fixed that one because otherwise I would get a wrong result when I use it later: #define FIQ_START (NR_IRQS_BANK0 + MAKE_HWIRQ(NR_BANKS - 1, 0)) The patch is accepted in mainline, so it's too late to change it now. |
dwc_otg: Add ARCH_BCM2835 support
Tested on ARCH_BCM2708 and ARCH_BCM2835.