Skip to content

linux-v5.15.y: fix issues, warnings, dups, etc. and remove unused options#66

Merged
MrCry0 merged 23 commits intofoundriesio:linux-v5.15.yfrom
MrCry0:linux-v5.15.y-nxp-bsp-update
Sep 27, 2022
Merged

linux-v5.15.y: fix issues, warnings, dups, etc. and remove unused options#66
MrCry0 merged 23 commits intofoundriesio:linux-v5.15.yfrom
MrCry0:linux-v5.15.y-nxp-bsp-update

Conversation

@MrCry0
Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 commented Aug 29, 2022

Some work to forward port improves from 5.10 to 5.15.

In testing...

  • imx8mm - OK
  • imx6ull - OK

NOTES

  • imx8mm requires these changes to boot properly. Otherwise, it reboots by a watchdog.

Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for doing this pr, I also noted a lot of warnings when building locally.

Did you boot test to see if the board is still working as expected? Just because sometimes disabling an option can cause bad side effects.

@MrCry0 MrCry0 marked this pull request as draft August 29, 2022 15:44
@MrCry0
Copy link
Copy Markdown
Contributor Author

MrCry0 commented Aug 29, 2022

@ricardosalveti Not yet, I converted it to draft until the booting test is complete.

MrCry0 and others added 18 commits August 31, 2022 12:57
Major changes:
- remove DPAA*  options (not supported in iMX8M platform)
- enable PINCTRL (important option for all pin control domain)

Signed-off-by: Oleksandr Suvorov <[email protected]>
Major changes:
- remove DPAA*  options (supported in LS/LX platforms only)
- enable PINCTRL (important option for all pin control domain)

Signed-off-by: Oleksandr Suvorov <[email protected]>
Major changes:
- remove DPAA*  options (supported in LS/LX platforms only)
- enable PINCTRL (important option for all pin control domain)

Signed-off-by: Oleksandr Suvorov <[email protected]>
DPAA* options are supported in LS/LX platforms only. Remove them.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Include cfg/non-x86.cfg file to explicitly disable options not
applicable for non-x86/ACPI platforms.

Signed-off-by: Oleksandr Suvorov <[email protected]>
For iMX-series only i.MX8MP is supported by a Synopsys DDR Memory
Controller to control DDR frequency. Whereas i.MX8MM/MN/MQ are
supported by i.MX8M DDRC DEVFREQ driver. Tune configs accordingly.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Tune configs to fix all conflicts and avoid build warnings.

Signed-off-by: Oleksandr Suvorov <[email protected]>
All i.MX8M family uses reset-imx7 driver to manage reset control of
PCIEPHY. Enable RESET_IMX7 for imx8mm boards.

Fixes: e0d1e82 ("bsp: imx: add imx8mmevk config")
Signed-off-by: Oleksandr Suvorov <[email protected]>
Removed by accident during the 5.10 warning cleanup.

Signed-off-by: Ricardo Salveti <[email protected]>
Signed-off-by: Oleksandr Suvorov <[email protected]>
SND_SOC_FSL_ASOC_CARD may be built as a module for reference BSP.
Doing it makes kernel smaller and fixes building warnings.

Signed-off-by: Oleksandr Suvorov <[email protected]>
EDAC_SYNOPSYS option which enables fsl,imx8mp-ddrc driver requires
EDAC and RAS options enabled. Do it.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Include cfg/non-x86.cfg file to explicitly disable options not
applicable for non-x86/ACPI platforms.

Signed-off-by: Oleksandr Suvorov <[email protected]>
The option V4L2 is built as a module so that all related options
should be built as module too.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Enable UIO to add support of user-land drivers.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Enable FLEXCAN, SOF and ADC drivers properly and fix building config
warnings.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Enable FLEXCAN, SOF and ADC drivers properly and fix building config
warnings.

Signed-off-by: Oleksandr Suvorov <[email protected]>
- pca95xx mux / regulator probe
- STM GbE probe
- IMX DSP remote proc driver
- HDMI probe

Signed-off-by: Michael Scott <[email protected]>
Signed-off-by: Oleksandr Suvorov <[email protected]>
Some options are duplicated in configuration files.
Remove duplications.

Signed-off-by: Oleksandr Suvorov <[email protected]>
@MrCry0 MrCry0 force-pushed the linux-v5.15.y-nxp-bsp-update branch from 4920b41 to 6830535 Compare August 31, 2022 10:40
@MrCry0 MrCry0 changed the title bsp: imx: imx8mmevk: 5.15: fix warnings and remove unused options linux-v5.15.y: fix issues, warnings, dups, etc. and remove unused options Aug 31, 2022
Copy link
Copy Markdown
Contributor

@Tim-Anderson Tim-Anderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM so far

@ricardosalveti
Copy link
Copy Markdown
Member

Nice, thanks for all the cleaning effort here.

@MrCry0 MrCry0 marked this pull request as ready for review September 1, 2022 09:51
Some options couldn't be enabled due some dependencies. Fix it.
Also remove drivers for devices absent in i.MX8MM EVK[B].

TODO: There are still a lot of enabled drivers for devices, which
are not present on the board.

Signed-off-by: Oleksandr Suvorov <[email protected]>
@MrCry0 MrCry0 force-pushed the linux-v5.15.y-nxp-bsp-update branch 2 times, most recently from 596b82c to cff84e2 Compare September 1, 2022 17:46
Some options couldn't be enabled due dependencies. Fix it. Also
remove drivers for devices absent in i.MX8MP LPDDR4 EVK.

TODO: There are still a lot of enabled drivers for devices, which
are not present on the board.

Signed-off-by: Oleksandr Suvorov <[email protected]>
Some options couldn't be enabled due dependencies. Fix it. Also
remove drivers for devices absent in i.MX8MQ EVK.

TODO: There are still a lot of enabled drivers for devices, which
are not present on the board.

Signed-off-by: Oleksandr Suvorov <[email protected]>
@MrCry0 MrCry0 force-pushed the linux-v5.15.y-nxp-bsp-update branch 2 times, most recently from 7515b9c to 996bd3e Compare September 2, 2022 15:30
iMX6UL uses ChipIdea USB IP. Add a proper set of options.

TODO: There are still a lot of enabled drivers for devices, which
are not present on the board. Need to be disabled.

Signed-off-by: Oleksandr Suvorov <[email protected]>
@MrCry0 MrCry0 force-pushed the linux-v5.15.y-nxp-bsp-update branch from 996bd3e to 6ee59a8 Compare September 2, 2022 15:53
iMX6ULL uses ChipIdea USB IP. Add a proper set of options.
Fix a checkconfig warning.

TODO: There are still a lot of enabled drivers for devices, which
are not present on the board. Need to be disabled.

Signed-off-by: Oleksandr Suvorov <[email protected]>
@MrCry0 MrCry0 force-pushed the linux-v5.15.y-nxp-bsp-update branch from 6ee59a8 to 4b05d71 Compare September 2, 2022 16:39
@MrCry0 MrCry0 merged commit d1bfa82 into foundriesio:linux-v5.15.y Sep 27, 2022
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