sunxi-5.16: Fix spi-nor node initialization error for orangepi-pc2#3597
Merged
Conversation
The problem was solved in the upstream kernel. commit e221ef82d9f5e97bca61f7c25e2b58b04466de87 linux-5.16.y branch. commit bac129dbc6560dfeb634c03f0c08b78024e71915 upstream. This driver, like several others, uses a chained IRQ for each GPIO bank, and forwards .irq_set_wake to the GPIO bank's upstream IRQ. As a result, a call to irq_set_irq_wake() needs to lock both the upstream and downstream irq_desc's. Lockdep considers this to be a possible deadlock when the irq_desc's share lockdep classes, which they do by default: ============================================ WARNING: possible recursive locking detected 5.17.0-rc3-00394-gc849047c2473 #1 Not tainted ...
[ 1.288263] spi-nor spi0.0: supply vdd not found, using dummy regulator [ 1.306391] spi-nor spi0.0: mx25l1606e (2048 Kbytes) [ 1.845203] Freeing initrd memory: 10824K [ 1.855263] sun6i-spi 1c68000.spi: chipselect 0 already in use [ 1.861159] spi_master spi0: spi_device register error /soc/spi@1c68000/spi-flash@0 [ 1.868842] spi_master spi0: Failed to create SPI device for /soc/spi@1c68000/spi-flash@0 Remove duplicate nodes from applied patches for the board sun50i-h5-orangepi-pc2. After this fix: [ 1.290252] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator [ 1.291250] spi-nor spi0.0: supply vdd not found, using dummy regulator [ 1.310397] spi-nor spi0.0: mx25l1606e (2048 Kbytes) [ 1.845686] Freeing initrd memory: 10824K [ 1.854333] 2 fixed-partitions partitions found on MTD device spi0.0 [ 1.854369] Creating 2 MTD partitions on "spi0.0": [ 1.854381] 0x000000000000-0x000000100000 : "uboot" [ 1.855679] 0x000000100000-0x000000200000 : "env"
littlecxm
pushed a commit
to littlecxm/armbian-build
that referenced
this pull request
May 7, 2022
…rmbian#3597) * Remove unused pinctrl-sunxi-Fix-misleading-lockdep-deadlock-warnin.patch The problem was solved in the upstream kernel. commit e221ef82d9f5e97bca61f7c25e2b58b04466de87 linux-5.16.y branch. commit bac129dbc6560dfeb634c03f0c08b78024e71915 upstream. This driver, like several others, uses a chained IRQ for each GPIO bank, and forwards .irq_set_wake to the GPIO bank's upstream IRQ. As a result, a call to irq_set_irq_wake() needs to lock both the upstream and downstream irq_desc's. Lockdep considers this to be a possible deadlock when the irq_desc's share lockdep classes, which they do by default: ============================================ WARNING: possible recursive locking detected 5.17.0-rc3-00394-gc849047c2473 #1 Not tainted ... * Fix spi-nor node initialization error for orangepi-pc2 [ 1.288263] spi-nor spi0.0: supply vdd not found, using dummy regulator [ 1.306391] spi-nor spi0.0: mx25l1606e (2048 Kbytes) [ 1.845203] Freeing initrd memory: 10824K [ 1.855263] sun6i-spi 1c68000.spi: chipselect 0 already in use [ 1.861159] spi_master spi0: spi_device register error /soc/spi@1c68000/spi-flash@0 [ 1.868842] spi_master spi0: Failed to create SPI device for /soc/spi@1c68000/spi-flash@0 Remove duplicate nodes from applied patches for the board sun50i-h5-orangepi-pc2. After this fix: [ 1.290252] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator [ 1.291250] spi-nor spi0.0: supply vdd not found, using dummy regulator [ 1.310397] spi-nor spi0.0: mx25l1606e (2048 Kbytes) [ 1.845686] Freeing initrd memory: 10824K [ 1.854333] 2 fixed-partitions partitions found on MTD device spi0.0 [ 1.854369] Creating 2 MTD partitions on "spi0.0": [ 1.854381] 0x000000000000-0x000000100000 : "uboot" [ 1.855679] 0x000000100000-0x000000200000 : "env"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
sun50i-h5-orangepi-pc2. After this fix:
Checklist: