- May 18, 2015
-
-
popcornmix authored
dwc_otg: Don't use dma_to_virt()
-
Phil Elwell authored
-
Phil Elwell authored
Also only warn once for each overclock setting.
-
Phil Elwell authored
Also only warn once for each overclock setting.
-
Noralf Trønnes authored
dwc_otg has been fixed, so no need to revert 6ce0d200 : ARM: dma: Use dma_pfn_offset for dma address translation The pfn_to_dma/dma_to_pfn changes that came with that commit is needed to use the 'dma-ranges' DT property on ARCH_BCM2835. dma-ranges is needed by bcm2708_fb and vchiq on ARCH_BCM2835. If not the mailbox call fails to hand over the correct bus address to videocore. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Commit 6ce0d200 changes dma_to_virt() which breaks this driver. Open code the old dma_to_virt() implementation to work around this. Limit the use of __bus_to_virt() to cases where transfer_buffer_length is set and transfer_buffer is not set. This is done to increase the chance that this driver will also work on ARCH_BCM2835. transfer_buffer should not be NULL if the length is set, but the comment in the code indicates that there are situations where this might happen. drivers/usb/isp1760/isp1760-hcd.c also has a similar comment pointing to a possible: 'usb storage / SCSI bug'. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
- May 17, 2015
-
-
Phil Elwell authored
-
Phil Elwell authored
-
Matthias Reichl authored
bcm2708-dmaengine supports residue reporting at burst level but didn't report this via the residue_granularity field. Without this field set properly we get playback issues with I2S cards.
-
Phil Elwell authored
Allow a different clock speed to be substitued for a requested 50MHz. This option is exposed using the "overclock_50" DT parameter. Note that the mmc interface is restricted to EVEN integer divisions of 250MHz, and the highest sensible option is 63 (250/4 = 62.5), the next being 125 (250/2) which is much too high. Use at your own risk.
-
Phil Elwell authored
Allow a different clock speed to be substitued for a requested 50MHz. This option is exposed using the "overclock_50" DT parameter. Note that the sdhost interface is restricted to integer divisions of core_freq, and the highest sensible option for a core_freq of 250MHz is 84 (250/3 = 83.3MHz), the next being 125 (250/2) which is much too high. Use at your own risk.
-
Phil Elwell authored
-
Gordon Hollingworth authored
-
Noralf Trønnes authored
With the VC reader blocked and the ARM writing, MAIL0_STA reads empty permanently while MAIL1_STA goes from empty (0x40000000) to non-empty (0x00000001-0x00000007) to full (0x80000008). Suggested-by: Phil Elwell <phil@raspberrypi.org> Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
No need to do atomic allocation in a context that can sleep. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Add mailbox to Device Tree. There are no kernel users yet, but it's available to userspace. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Enable the mailbox driver. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Add bcm2708-vcio to Device Tree and don't add the platform device when booting in DT mode. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Remove the arch vcio.c driver and header file. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Use bcm2708-vcio instead of the arch version. Change affected drivers to use linux/platform_data/mailbox-bcm2708.h Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Load ordering of modules are determined by the initcall used. If it's the same initcall level, makefile ordering decides. Now that the mailbox driver is being moved, it's no longer placed before the power driver by the linker. So use a later initcall level to let the mailbox driver load first. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Copy the arch vcio.c driver to drivers/mailbox. This is done to make it available on ARCH_BCM2835. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Use device resources instead of hardcoding them. Use devm_* functions where possible. Merge dev_mbox_register() with probe function. Add Device Tree support. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
It is not common practice to print messages from a module init function that only register a driver. Remove obsolete module alias. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
No need to keep pointers to the sub registers. Only store the base address. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Move some macros that are only used by the driver: MAJOR_NUM IOCTL_MBOX_PROPERTY DEVICE_FILE_NAME This one becomes superfluous: BCM_VCIO_DRIVER_NAME Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
No need to use if/else clauses on error when return can be used directly. Also test for errors first if possible. This is done to enhance readability. bcm_vcio_probe() is not touched, it will be reworked later. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
chrdev is created in the probe function, but teared down in module exit. Move chrdev teardown to happen on device removal. Also add missing mbox_dev disabling. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
The config reference SERIAL_BCM_MBOX_CONSOLE does not exist, so remove the whole clause as it will always be false. Remove includes that are not needed. Add <linux/fs.h>. Also sort include headers alphabetically, since this is now the preferred coding style. Remove vc_mailbox->dev since it is not used. Compact some comments to one line. Remove superfluous comments. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
checkpatch.pl errors and warnings: Many whitespace related issues in some form or another. Consider using <linux/uaccess.h> instead of <asm/uaccess.h>. braces {} are not necessary for single statement blocks. Use pr_* instead of printk. Do not initialise statics to 0 or NULL. Avoid CamelCase. sizeof size should be sizeof(size). break is not useful after a goto or return. struct file_operations should normally be const Possible unnecessary 'out of memory' message Comparison to NULL could be written "!res" quoted string split across lines. This has not been adressed: WARNING: consider using a completion Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
No need to panic the kernel if the video driver fails. Just print a message and return an error. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
The vcio driver hardcodes these resources, so this is the first step in correcting this. Spell out the device name so we don't have to include mach/vcio.h, since this header file will eventually go away when the driver is later moved to drivers/mailbox. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
popcornmix authored
bcm2835-mmc: Add option to disable some delays bcm2835-mmc: Add option to disable MMC_QUIRK_BLK_NO_CMD23 bcm2835-mmc: Default to disabling MMC_QUIRK_BLK_NO_CMD23
-
popcornmix authored
-
Christopher Freeman authored
Channels allocated via dma_get_any_slave_channel were not increasing the counter tracking private allocations. When these channels were released, privatecnt may erroneously fall to zero. The DMA device would then lose its DMA_PRIVATE cap and fail to allocate future private channels (via private_candidate) as any allocations still outstanding would incorrectly be seen as public allocations. Signed-off-by: Christopher Freeman <cfreeman@nvidia.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-
Noralf Trønnes authored
Use downstream bcm2835-mmc driver to get increased throughput and DMA support. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Enable the downstream bcm2835-mmc driver and DMA support. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Make the bcm2835-mmc driver available for use on ARCH_BCM2835. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Some options in bcm2835_defconfig are now the default and some have changed. Update to keep functionality. No longer available: SCSI_MULTI_LUN and RESOURCE_COUNTERS. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-
Noralf Trønnes authored
Remove the dmaman device since the dmaengine now handles the legacy API manager. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
-