Skip to content
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

Merged
merged 3 commits into from
Jul 24, 2015
Merged

dwc_otg: Add ARCH_BCM2835 support #1086

merged 3 commits into from
Jul 24, 2015

Conversation

notro
Copy link
Contributor

@notro notro commented Jul 24, 2015

Tested on ARCH_BCM2708 and ARCH_BCM2835.

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>
@popcornmix
Copy link
Collaborator

Looks okay to me. Ping @pelwell @P33M

@P33M
Copy link
Contributor

P33M commented Jul 24, 2015

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)
Copy link
Contributor

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?

@pelwell
Copy link
Contributor

pelwell commented Jul 24, 2015

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.

@notro
Copy link
Contributor Author

notro commented Jul 24, 2015

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.

pelwell added a commit that referenced this pull request Jul 24, 2015
dwc_otg: Add ARCH_BCM2835 support
@pelwell pelwell merged commit ab1bc20 into raspberrypi:rpi-4.1.y Jul 24, 2015
@notro notro deleted the fiq branch July 24, 2015 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants