Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752697AbbEHIez (ORCPT ); Fri, 8 May 2015 04:34:55 -0400 Received: from mout.web.de ([212.227.15.14]:58775 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbbEHIev convert rfc822-to-8bit (ORCPT ); Fri, 8 May 2015 04:34:51 -0400 From: Alexander Stein To: linux-rpi-kernel@lists.infradead.org Cc: Eric Anholt , Noralf =?ISO-8859-1?Q?Tr=F8nnes?= , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Jassi Brar , linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support Date: Fri, 08 May 2015 10:33:53 +0200 Message-ID: <2464203.68HkYCAlx7@kongar> User-Agent: KMail/4.14.7 (Linux/3.18.11-gentoo; KDE/4.14.7; x86_64; ; ) In-Reply-To: <87mw1grwnn.fsf@eliezer.anholt.net> References: <1430857666-18877-1-git-send-email-eric@anholt.net> <554BA0B7.8040600@tronnes.org> <87mw1grwnn.fsf@eliezer.anholt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="utf-8" X-Provags-ID: V03:K0:GF8wZcTTk8lskKzv92frWhmbtf4bLunZuT+O9XmIlSTbf19gqvy Nf77W3v0+4XlbaInBnRnsLXisdWYBZW/mB9kjTXLYwA1Bgf4mnBlY1w7+7hNfZoupx/W8zX fyQWK9iX/4EAPEJSjyEw8chae4KTNd7jVu7VrCp5f6Ow5R5rkrJJeDWcadazGCHSc/ylXWe E+jUMgrLekPg6ULt7tfgA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2204 Lines: 57 On Thursday 07 May 2015, 12:54:20 wrote Eric Anholt: > Noralf Trønnes writes: > > > Den 05.05.2015 22:27, skrev Eric Anholt: > >> From: Lubomir Rintel > >> > >> This mailbox driver provides a single mailbox channel to write 32-bit > >> values to the VPU and get a 32-bit response. The Raspberry Pi > >> firmware uses this mailbox channel to implement firmware calls, while > >> Roku 2 (despite being derived from the same firmware tree) doesn't. > >> > >> The driver was originally submitted by Lubomir, based on the > >> out-of-tree 2708 mailbox driver. Eric Anholt fixed it up for > >> upstreaming, with the major functional change being that it now has no > >> notion of multiple channels (since that is a firmware-dependent > >> concept) and instead the raspberrypi-firmware driver will do that > >> bit-twiddling in its own messages. > > ... > >> +static struct platform_driver bcm2835_mbox_driver = { > >> + .driver = { > >> + .name = "bcm2835-mbox", > >> + .owner = THIS_MODULE, > >> + .of_match_table = bcm2835_mbox_of_match, > >> + }, > >> + .probe = bcm2835_mbox_probe, > >> + .remove = bcm2835_mbox_remove, > >> +}; > >> +module_platform_driver(bcm2835_mbox_driver); > > > > I have tested this driver and the firmware driver booting directly > > from the VideoCore bootloader (no uboot). > > The mailbox driver loads too late to turn on USB power: > > Yeah, I have a patch on my branches that returns -EPROBE_DEFER when > trying to get a power domain and not finding the provider. It was > rejected by the maintainers in favor of a proposed solution whose > description I didn't quite follow. Do you have a link for this thread? > > This silences the warning: > > struct raspberrypi_power_domain raspberrypi_power_domain_usb = { > > .base = { > > .power_on_latency_ns = 600000000, > > Oh, nice. Thanks! Well, Using a timeout for dependencies seems odd to me. Regards, Alexander -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/