From: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> To: Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>, Scott Branden <sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>, Ray Jui <rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>, Ian Campbell <ijc-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>, Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org>, bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>, Florian Fainelli <f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: Re: [PATCH V3 2/5] ARM: dts: bcm283x: Add dtsi for USB host mode Date: Mon, 22 Aug 2016 22:18:15 +0200 (CEST) [thread overview] Message-ID: <533983163.19485.709cd5b7-97dd-4dda-9392-7c46ec5e192c.open-xchange@email.1und1.de> (raw) In-Reply-To: <87fupw4rgm.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org> Hi Eric, > Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org> hat am 22. August 2016 um 19:57 geschrieben: > > > Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org> writes: > > > In case dr_mode isn't passed via DT, the dwc2 defaults to OTG mode. > > But all Raspberry Pi boards here are designed only for host mode. > > So fix this issue by providing a dtsi file which set the dr_mode > > to host. > > Can you explain what change this should cause for these boards? Is it > just going to drop this message from dmesg: > > dwc2 3f980000.usb: Configuration mismatch. dr_mode forced to host IMO it isn't a message which could be ignored. The dwc2 tries to detected the USB role from compile configuration and hardware capabilities, but according to the decision table [1] we should provide the correct dr_mode which is import for FIFO configuration and so on. Another problem that i see is that the USB behavior is influenced by compile settings in a unexpected way. With arm/configs/bcm2835_defconfig the driver is forced to host, but in a multiplatform config like arm64/configs/defconfig not. I would expect a more stable dr_mode. At the end the dwc2 can't reliable detect the dr_mode because it depends on the board design. Any concerns? Stefan [1] - https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=5268ed9d2e3b52f703f3661eef14cecbb2b572d4 > > or something else? > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: stefan.wahren@i2se.com (Stefan Wahren) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V3 2/5] ARM: dts: bcm283x: Add dtsi for USB host mode Date: Mon, 22 Aug 2016 22:18:15 +0200 (CEST) [thread overview] Message-ID: <533983163.19485.709cd5b7-97dd-4dda-9392-7c46ec5e192c.open-xchange@email.1und1.de> (raw) In-Reply-To: <87fupw4rgm.fsf@eliezer.anholt.net> Hi Eric, > Eric Anholt <eric@anholt.net> hat am 22. August 2016 um 19:57 geschrieben: > > > Stefan Wahren <stefan.wahren@i2se.com> writes: > > > In case dr_mode isn't passed via DT, the dwc2 defaults to OTG mode. > > But all Raspberry Pi boards here are designed only for host mode. > > So fix this issue by providing a dtsi file which set the dr_mode > > to host. > > Can you explain what change this should cause for these boards? Is it > just going to drop this message from dmesg: > > dwc2 3f980000.usb: Configuration mismatch. dr_mode forced to host IMO it isn't a message which could be ignored. The dwc2 tries to detected the USB role from compile configuration and hardware capabilities, but according to the decision table [1] we should provide the correct dr_mode which is import for FIFO configuration and so on. Another problem that i see is that the USB behavior is influenced by compile settings in a unexpected way. With arm/configs/bcm2835_defconfig the driver is forced to host, but in a multiplatform config like arm64/configs/defconfig not. I would expect a more stable dr_mode. At the end the dwc2 can't reliable detect the dr_mode because it depends on the board design. Any concerns? Stefan [1] - https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=5268ed9d2e3b52f703f3661eef14cecbb2b572d4 > > or something else? > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2016-08-22 20:18 UTC|newest] Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-08-21 15:09 [PATCH V3 0/5] ARM: dts: bcm2835: Add Raspberry Pi Zero Stefan Wahren 2016-08-21 15:09 ` Stefan Wahren 2016-08-22 16:21 ` Stephen Warren 2016-08-22 16:21 ` Stephen Warren [not found] ` <1471792204-21908-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 2016-08-21 15:09 ` [PATCH V3 1/5] ARM: dts: bcm283x: Add missing USB clock Stefan Wahren 2016-08-21 15:09 ` Stefan Wahren 2016-08-21 15:10 ` [PATCH V3 2/5] ARM: dts: bcm283x: Add dtsi for USB host mode Stefan Wahren 2016-08-21 15:10 ` Stefan Wahren [not found] ` <1471792204-21908-3-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 2016-08-22 17:57 ` Eric Anholt 2016-08-22 17:57 ` Eric Anholt [not found] ` <87fupw4rgm.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org> 2016-08-22 20:18 ` Stefan Wahren [this message] 2016-08-22 20:18 ` Stefan Wahren 2016-08-21 15:10 ` [PATCH V3 RFT 3/5] ARM64: dts: bcm283x: Use " Stefan Wahren 2016-08-21 15:10 ` Stefan Wahren [not found] ` <1471792204-21908-4-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org> 2016-08-31 7:59 ` Stefan Wahren 2016-08-31 7:59 ` Stefan Wahren [not found] ` <bb073ea3-2f89-4fc5-e3af-2e27c54f221e-eS4NqCHxEME@public.gmane.org> 2016-09-07 10:59 ` Gerd Hoffmann 2016-09-07 10:59 ` Gerd Hoffmann [not found] ` <1473245956.28663.50.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-09-07 12:02 ` Stefan Wahren 2016-09-07 12:02 ` Stefan Wahren [not found] ` <18641a83-ddd7-1689-535a-c5a15b8a54f9-eS4NqCHxEME@public.gmane.org> 2016-09-07 14:17 ` Gerd Hoffmann 2016-09-07 14:17 ` Gerd Hoffmann [not found] ` <1473257837.28663.80.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-09-23 7:33 ` Stefan Wahren 2016-09-23 7:33 ` Stefan Wahren [not found] ` <aeba1434-3903-3ec4-1a94-e5c8229f4e5f-eS4NqCHxEME@public.gmane.org> 2016-09-23 8:15 ` Eric Anholt 2016-09-23 8:15 ` Eric Anholt [not found] ` <87zimz821m.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org> 2016-09-23 8:23 ` Stefan Wahren 2016-09-23 8:23 ` Stefan Wahren [not found] ` <4cda98b0-03a6-f43d-0eee-29b7702eac8c-eS4NqCHxEME@public.gmane.org> 2016-09-23 11:55 ` Eric Anholt 2016-09-23 11:55 ` Eric Anholt 2016-10-17 17:29 ` Eric Anholt 2016-10-17 17:29 ` Eric Anholt 2016-08-21 15:10 ` [PATCH V3 4/5] DT: bindings: bcm: Add Raspberry Pi Zero Stefan Wahren 2016-08-21 15:10 ` Stefan Wahren 2016-08-21 15:10 ` [PATCH V3 5/5] ARM: dts: bcm2835: " Stefan Wahren 2016-08-21 15:10 ` Stefan Wahren 2016-08-25 22:45 ` [PATCH V3 0/5] " Eric Anholt 2016-08-25 22:45 ` Eric Anholt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=533983163.19485.709cd5b7-97dd-4dda-9392-7c46ec5e192c.open-xchange@email.1und1.de \ --to=stefan.wahren-es4nqchxeme@public.gmane.org \ --cc=bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \ --cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org \ --cc=f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=ijc-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \ --cc=rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \ --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \ --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \ --cc=will.deacon-5wv7dgnIgG8@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.