-
Notifications
You must be signed in to change notification settings - Fork 292
sam9x60 sip types added to soc description. #46
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
Changes from 1 commit
8c30170
7f38ed4
ab87417
b5af97f
feff97a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,12 @@ static const struct at91_soc __initconst socs[] = { | |
| #endif | ||
| #ifdef CONFIG_SOC_SAM9X60 | ||
| AT91_SOC(SAM9X60_CIDR_MATCH, SAM9X60_EXID_MATCH, "sam9x60", "sam9x60"), | ||
| AT91_SOC(SAM9X60_CIDR_MATCH, SAM9X60D5M_EXID_MATCH, | ||
| "sam9x60d6m", "sam9x60"), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Take example on sama5d2 SiP lines to have a coherent display between the different SiP products. |
||
| AT91_SOC(SAM9X60_CIDR_MATCH, SAM9X60D1G_EXID_MATCH, | ||
| "sam9x60d1g", "sam9x60"), | ||
| AT91_SOC(SAM9X60_CIDR_MATCH, SAM9X60D6K_EXID_MATCH, | ||
| "sam9x60d6k", "sam9x60"), | ||
| #endif | ||
| #ifdef CONFIG_SOC_SAMA5 | ||
| AT91_SOC(SAMA5D2_CIDR_MATCH, SAMA5D21CU_EXID_MATCH, | ||
|
|
@@ -237,7 +243,8 @@ struct soc_device * __init at91_soc_init(const struct at91_soc *socs) | |
| } | ||
|
|
||
| if (!soc->name) { | ||
| pr_warn("Could not find matching SoC description\n"); | ||
| pr_warn("Could not find matching SoC description" | ||
| " (cidr %08x, exid %08x)", cidr, exid); | ||
| return NULL; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an unrelated change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I revert the change of the warning and probably create a different pull request? It is definitely useful, when running on yet unsupported soc's. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, two separate patches would be the best. However, This will increase the kernel size for a very unusual use case. Most of the time, the soc ids will be present. Maybe use pr_debug ? BTW, are you actually using this driver for something useful?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I reverted the change of the print and decided not to create a different pull request for it. As You pointed out, it should be of rare use. To be honest, I don't know, what the soc registration is good for. I just stumbled over the ""Could not find matching SoC description" warning in the dmesg and fixed it. You proposed to submit this change upstream. I guess You mean submitting it to the mainline kernel. I requested the pull to linux-at91, because this is my direct upstream. And I thought, that the linux-at91 maintainers will submit relevant changes further up.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we can do it. |
||
| } | ||
|
|
||
|
|
||
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'd like that the #defines are like the other ones: SAM9X60_D5M_EXID_MATCH
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.
@noglitch : EXID_MATCH definitions changed with commit feff97a.