Re: [PATCH v7 0/2] phy: bcm63xx-usbh: Add BCM63xx USBH driver

2020-07-17 Thread Simon Arlott
. Please only Cc: this email address, I don't want multiple copies of everything. -- Simon Arlott

Re: [PATCH] ata: Disable queued TRIM for Samsung 860 SSDs

2020-07-15 Thread Simon Arlott
g that their Linux support is better, especially if specific chipsets are known to have issues... -- Simon Arlott

Re: [PATCH v6 2/2] phy: bcm63xx-usbh: Add BCM63xx USBH driver

2020-07-15 Thread Simon Arlott
find a branch with those in locally. Please remove my *email address* from the source code and MODULE_AUTHOR text. Historical signed-off-by lines can be updated to: Signed-off-by: Simon Arlott -- Simon Arlott

Re: [PATCH v6 2/2] phy: bcm63xx-usbh: Add BCM63xx USBH driver

2020-07-15 Thread Simon Arlott
On 2020-07-15 14:18, Álvaro Fernández Rojas wrote: Add BCM63xx USBH PHY driver for BMIPS. Signed-off-by: Álvaro Fernández Rojas --- ... +MODULE_DESCRIPTION("BCM63xx USBH PHY driver"); +MODULE_AUTHOR("Álvaro Fernández Rojas "); +MODULE_AUTHOR("Simon Arlott ");

[PATCH] ata: Disable queued TRIM for Samsung 860 SSDs

2020-07-15 Thread Simon Arlott
e. Signed-off-by: Simon Arlott Cc: Park Ju Hyung Cc: sta...@vger.kernel.org Fixes: ca6bfcb2f6d9 ("libata: Enable queued TRIM for Samsung SSD 860") --- drivers/ata/libata-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.

Re: [PATCH (v2)] scsi: sd: add parameter to stop disks before reboot

2020-07-15 Thread Simon Arlott
-3eefc8c17801@0882a8b5-c6c3-11e9-b005-00805fc181fe/ -- Simon Arlott

[PATCH 2/2] x86/reboot/quirks: Add ASRock Z170 Extreme4

2020-06-29 Thread Simon Arlott
for power off if the other reboot methods fail. It is necessary to re-order the processing of DMI checks because this quirk must apply even if a reboot= command line parameter is used as that's the only way to specify a PCI mode reboot. Signed-off-by: Simon Arlott --- Previous patches to make scsi/sd

[PATCH 1/2] reboot: add a "power cycle" quirk to prepare for a power off on reboot

2020-06-29 Thread Simon Arlott
s behaviour if "c" was used. Signed-off-by: Simon Arlott --- Previous patches to make scsi/sd stop before a reboot: https://lore.kernel.org/lkml/499138c8-b6d5-ef4a-2780-4f750ed337d3@0882a8b5-c6c3-11e9-b005-00805fc181fe/ https://lore.kernel.org/lkml/e726ffd8-8897-4a79-c3d6

[PATCH (v2)] scsi: sd: add parameter to stop disks before reboot

2020-06-28 Thread Simon Arlott
(sdkp, 0); + if (sdkp->device->manage_start_stop) { + if (system_state != SYSTEM_RESTART || stop_before_reboot) { + sd_printk(KERN_NOTICE, sdkp, "Stopping disk\n"); + sd_start_stop_device(sdkp, 0); + } } } -- 2.17.1 -- Simon Arlott

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-28 Thread Simon Arlott
my case none of the SSDs are recording unexpected power loss if they are stopped before the reboot, but the reboot won't necessarily be instantaneous after the last stop command returns. -- Simon Arlott

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-28 Thread Simon Arlott
On 19/06/2020 00:31, Damien Le Moal wrote: > On 2020/06/18 21:26, Simon Arlott wrote: >> I haven't verified it, but the BIOS leaves the power off for several >> seconds which should be long enough for the HDDs to spin down. >> >> I'm less concerned about those suddenl

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-28 Thread Simon Arlott
hange the patch so that it doesn't distinguish between types of disks. The default will have to be the existing behaviour (don't stop disks) because most reboots shouldn't result in a loss of power. -- Simon Arlott

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-18 Thread Simon Arlott
On 18/06/2020 08:21, Christoph Hellwig wrote: > On Wed, Jun 17, 2020 at 07:49:57PM +0100, Simon Arlott wrote: >> Avoiding a stop of the disk on a reboot is appropriate for HDDs because >> they're likely to continue to be powered (and should not be told to spin >> down

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-18 Thread Simon Arlott
On 18/06/2020 09:36, Damien Le Moal wrote: > On 2020/06/18 3:50, Simon Arlott wrote: >> I need to use "reboot=p" on my desktop because one of the PCIe devices >> does not appear after a warm boot. This results in a very cold boot >> because the BIOS turns the PSU

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-17 Thread Simon Arlott
On 17/06/2020 20:19, Bart Van Assche wrote: > On 2020-06-17 11:49, Simon Arlott wrote: >> @@ -3576,9 +3582,19 @@ static void sd_shutdown(struct device *dev) >> sd_sync_cache(sdkp, NULL); >> } >> >> -if (system_state != SYSTEM_RESTART &

[PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-06-17 Thread Simon Arlott
loss to corrupt data depending on the SSD model/firmware. Cc: sta...@vger.kernel.org Signed-off-by: Simon Arlott --- Documentation/scsi/scsi-parameters.rst | 7 +++ drivers/scsi/sd.c | 22 +++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/Doc

[PATCH v2 2/2] scsi: sr: Fix sr_probe() missing deallocate of device minor

2020-05-30 Thread Simon Arlott
If the cdrom fails to be registered then the device minor should be deallocated. Signed-off-by: Simon Arlott Cc: sta...@vger.kernel.org --- On 30/05/2020 17:24, Bart Van Assche wrote: > On 2020-05-30 02:33, Simon Arlott wrote: >> If the cdrom fails to be registered then the device min

[PATCH v2 1/2] scsi: sr: Fix sr_probe() missing mutex_destroy

2020-05-30 Thread Simon Arlott
If the device minor cannot be allocated or the cdrom fails to be registered then the mutex should be destroyed. Signed-off-by: Simon Arlott Fixes: 51a858817dcd ("scsi: sr: get rid of sr global mutex") Cc: sta...@vger.kernel.org --- On 30/05/2020 17:41, James Bottomley wrote: > On Sa

[PATCH 2/2] scsi: sr: Fix sr_probe() missing deallocate of device minor

2020-05-30 Thread Simon Arlott
If the cdrom fails to be registered then the device minor should be deallocated. Signed-off-by: Simon Arlott --- drivers/scsi/sr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 8d062d4f3ce0..1e13c6a0f0ca 100644 --- a/drivers

[PATCH 1/2] scsi: sr: Fix sr_probe() missing mutex_destroy

2020-05-30 Thread Simon Arlott
If the device minor cannot be allocated or the cdrom fails to be registered then the mutex should be destroyed. Signed-off-by: Simon Arlott --- drivers/scsi/sr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index d2fe3fa470f9..8d062d4f3ce0 100644

[PATCH] mailmap: Add Simon Arlott (replacement for expired email address)

2019-08-22 Thread Simon Arlott
Add replacement email address for the one on my expired domain. Signed-off-by: Simon Arlott --- I'd prefer not to be in this "list of email addresses to spam" but it appears to be the only way to stop people searching for other addresses to misuse after I had to let my domain expir

[tip:irq/core] irqchips/bmips: Add bcm6345-l1 interrupt controller

2016-02-08 Thread tip-bot for Simon Arlott
Commit-ID: c7c42ec2baa1de7ab3965e4f1bf5073bee6065e4 Gitweb: http://git.kernel.org/tip/c7c42ec2baa1de7ab3965e4f1bf5073bee6065e4 Author: Simon Arlott AuthorDate: Sun, 22 Nov 2015 14:30:14 + Committer: Thomas Gleixner CommitDate: Mon, 8 Feb 2016 15:03:42 +0100 irqchips/bmips: Add

[tip:irq/core] irqchips/bmips: Add bcm6345-l1 interrupt controller

2016-02-08 Thread tip-bot for Simon Arlott
Commit-ID: 64e1741f92191a9d8c3949eff48a4670b440c9f8 Gitweb: http://git.kernel.org/tip/64e1741f92191a9d8c3949eff48a4670b440c9f8 Author: Simon Arlott AuthorDate: Sun, 22 Nov 2015 14:30:14 + Committer: Thomas Gleixner CommitDate: Mon, 8 Feb 2016 11:45:21 +0100 irqchips/bmips: Add

[tip:irq/core] irqchips/bmips: Add bcm6345-l1 interrupt controller

2016-02-08 Thread tip-bot for Simon Arlott
Commit-ID: 64e1741f92191a9d8c3949eff48a4670b440c9f8 Gitweb: http://git.kernel.org/tip/64e1741f92191a9d8c3949eff48a4670b440c9f8 Author: Simon Arlott <si...@fire.lp0.eu> AuthorDate: Sun, 22 Nov 2015 14:30:14 + Committer: Thomas Gleixner <t...@linutronix.de> CommitDate: Mon

[tip:irq/core] irqchips/bmips: Add bcm6345-l1 interrupt controller

2016-02-08 Thread tip-bot for Simon Arlott
Commit-ID: c7c42ec2baa1de7ab3965e4f1bf5073bee6065e4 Gitweb: http://git.kernel.org/tip/c7c42ec2baa1de7ab3965e4f1bf5073bee6065e4 Author: Simon Arlott <si...@fire.lp0.eu> AuthorDate: Sun, 22 Nov 2015 14:30:14 + Committer: Thomas Gleixner <t...@linutronix.de> CommitDate: Mon

[PATCH linux-next v4 11/11] mtd: bcm63xxpart: Add NAND partitioning support

2015-12-13 Thread Simon Arlott
tfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline is used to select a rootfs. Signed-off-by: Simon Arlott --- v4: Reorganised functions based on earlier new patches in the series, no real logic changes other than having to check for nv

[PATCH linux-next v4 10/11] mtd: bcm63xxpart: Move NOR flash layout to a separate function

2015-12-13 Thread Simon Arlott
Move the NOR flash layout to a separate function to allow the NAND flash layout to be supported. Signed-off-by: Simon Arlott --- v4: New patch. drivers/mtd/bcm63xxpart.c | 54 --- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git

[PATCH linux-next v4 09/11] mtd: bcm63xxpart: Null terminate and validate conversion of flash strings

2015-12-13 Thread Simon Arlott
. Signed-off-by: Simon Arlott --- v4: New patch. drivers/mtd/bcm63xxpart.c | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index eafbf52..41aa202 100644 --- a/drivers/mtd/bcm63xxpart.c

[PATCH linux-next v4 08/11] mtd: bcm63xxpart: Extract read of image tag to separate function

2015-12-13 Thread Simon Arlott
Extract image tag reading and CRC check to a separate function. Signed-off-by: Simon Arlott --- v4: New patch. drivers/mtd/bcm63xxpart.c | 62 ++- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd

[PATCH linux-next v4 07/11] MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function

2015-12-13 Thread Simon Arlott
Remove bcm63xx_nvram_get_psi_size() as it now has no users. Signed-off-by: Simon Arlott --- v4: New patch. arch/mips/bcm63xx/nvram.c | 11 --- arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/arch/mips

[PATCH linux-next v4 06/11] mtd: bcm63xxpart: Remove dependency on mach-bcm63xx

2015-12-13 Thread Simon Arlott
. BCM963XX_DEFAULT_PSI_SIZE changes from SZ_64K to 64 because it will be multiplied by SZ_1K later on. Signed-off-by: Simon Arlott --- v4: New patch. drivers/mtd/Kconfig | 2 +- drivers/mtd/bcm63xxpart.c | 72 +-- 2 files changed, 58 insertions(+), 16 deletions

[PATCH linux-next v4 05/11] MIPS: bcm963xx: Update bcm_tag field image_sequence

2015-12-13 Thread Simon Arlott
The "dual_image" and "inactive_flag" fields should be merged into a single "image_sequence" field. Signed-off-by: Simon Arlott --- v4: New patch. include/linux/bcm963xx_tag.h | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/

[PATCH linux-next v4 04/11] MIPS: bcm963xx: Move extended flash address to bcm_tag header file

2015-12-13 Thread Simon Arlott
be used on a board without CFE or any flash). Signed-off-by: Simon Arlott --- v4: New patch. drivers/mtd/bcm63xxpart.c| 6 ++ include/linux/bcm963xx_tag.h | 5 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index

[PATCH linux-next v4 03/11] MIPS: bcm963xx: Move Broadcom BCM963xx image tag data structure

2015-12-13 Thread Simon Arlott
Move Broadcom BCM963xx image tag data structure to include/linux/ so that drivers outside of mach-bcm63xx can use it. Signed-off-by: Simon Arlott --- v4: New patch. MAINTAINERS | 1 + arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h | 96

[PATCH linux-next v4 02/11] MIPS: bcm63xx: nvram: Use nvram structure definition from header file

2015-12-13 Thread Simon Arlott
Use the common definition of the nvram structure from the header file include/linux/bcm963xx_nvram.h instead of maintaining a separate copy. Read the version 5 size of nvram data from memory and then call the new checksum verification function from the header file. Signed-off-by: Simon Arlott

[PATCH linux-next v4 01/11] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-13 Thread Simon Arlott
Broadcom BCM963xx boards have multiple nvram variants across different SoCs with additional checksum fields added whenever the size of the nvram was extended. Add this structure as a header file so that multiple drivers can use it. Signed-off-by: Simon Arlott --- v4: Move out of uapi. Add

Re: [PATCH linux-next v4 00/11] mtd: bcm63xxpart: Add NAND partitioning support

2015-12-13 Thread Simon Arlott
On 13/12/15 22:42, Simon Arlott wrote: > The BCM963xx NAND flash boards have a different handling of the > partition layout from the NOR flash boards. For NAND there are offsets > for the partitions in nvram. Both types of boards use the same CFE > bootloader, nvram format a

[PATCH linux-next v4 00/11] mtd: bcm63xxpart: Add NAND partitioning support

2015-12-13 Thread Simon Arlott
numbers to later on). v2: Use external struct bcm963xx_nvram definition for bcm963268part. Removed support for the nand partition number field, it's not a standard Broadcom field (was added by MitraStar Technology Corp.). -- Simon Arlott -- To unsubscribe from this list: send

Re: [PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE partitioning support

2015-12-13 Thread Simon Arlott
On 11/12/15 23:12, Jonas Gorski wrote: > On Fri, Dec 11, 2015 at 11:02 PM, Simon Arlott wrote: >> +#define BCM63XX_CFE_MAGIC_OFFSET 0x4e0 >> +#define BCM963XX_CFE_VERSION_OFFSET0x570 >> +#define BCM963XX_NVRAM_OFFSET 0x580 > > You should deci

Re: [PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE partitioning support

2015-12-13 Thread Simon Arlott
On 11/12/15 23:12, Jonas Gorski wrote: > On Fri, Dec 11, 2015 at 11:02 PM, Simon Arlott <si...@fire.lp0.eu> wrote: >> +#define BCM63XX_CFE_MAGIC_OFFSET 0x4e0 >> +#define BCM963XX_CFE_VERSION_OFFSET0x570 >> +#define BCM963XX_NVRAM_OFFSET 0x580 > &

[PATCH linux-next v4 01/11] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-13 Thread Simon Arlott
Broadcom BCM963xx boards have multiple nvram variants across different SoCs with additional checksum fields added whenever the size of the nvram was extended. Add this structure as a header file so that multiple drivers can use it. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: Mo

[PATCH linux-next v4 02/11] MIPS: bcm63xx: nvram: Use nvram structure definition from header file

2015-12-13 Thread Simon Arlott
Use the common definition of the nvram structure from the header file include/linux/bcm963xx_nvram.h instead of maintaining a separate copy. Read the version 5 size of nvram data from memory and then call the new checksum verification function from the header file. Signed-off-by: Simon Arlott

[PATCH linux-next v4 00/11] mtd: bcm63xxpart: Add NAND partitioning support

2015-12-13 Thread Simon Arlott
numbers to later on). v2: Use external struct bcm963xx_nvram definition for bcm963268part. Removed support for the nand partition number field, it's not a standard Broadcom field (was added by MitraStar Technology Corp.). -- Simon Arlott -- To unsubscribe from this list: send

[PATCH linux-next v4 06/11] mtd: bcm63xxpart: Remove dependency on mach-bcm63xx

2015-12-13 Thread Simon Arlott
. BCM963XX_DEFAULT_PSI_SIZE changes from SZ_64K to 64 because it will be multiplied by SZ_1K later on. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. drivers/mtd/Kconfig | 2 +- drivers/mtd/bcm63xxpart.c | 72 +-- 2 files changed, 58 inse

[PATCH linux-next v4 05/11] MIPS: bcm963xx: Update bcm_tag field image_sequence

2015-12-13 Thread Simon Arlott
The "dual_image" and "inactive_flag" fields should be merged into a single "image_sequence" field. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. include/linux/bcm963xx_tag.h | 11 +-- 1 file changed, 5 insertions(+), 6 dele

[PATCH linux-next v4 07/11] MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function

2015-12-13 Thread Simon Arlott
Remove bcm63xx_nvram_get_psi_size() as it now has no users. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. arch/mips/bcm63xx/nvram.c | 11 --- arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h | 2 -- 2 files changed, 13 deletions(-)

[PATCH linux-next v4 03/11] MIPS: bcm963xx: Move Broadcom BCM963xx image tag data structure

2015-12-13 Thread Simon Arlott
Move Broadcom BCM963xx image tag data structure to include/linux/ so that drivers outside of mach-bcm63xx can use it. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. MAINTAINERS | 1 + arch/mips/include/asm/mach-bcm63xx/bcm963xx

[PATCH linux-next v4 04/11] MIPS: bcm963xx: Move extended flash address to bcm_tag header file

2015-12-13 Thread Simon Arlott
be used on a board without CFE or any flash). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. drivers/mtd/bcm63xxpart.c| 6 ++ include/linux/bcm963xx_tag.h | 5 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drive

Re: [PATCH linux-next v4 00/11] mtd: bcm63xxpart: Add NAND partitioning support

2015-12-13 Thread Simon Arlott
On 13/12/15 22:42, Simon Arlott wrote: > The BCM963xx NAND flash boards have a different handling of the > partition layout from the NOR flash boards. For NAND there are offsets > for the partitions in nvram. Both types of boards use the same CFE > bootloader, nvram format a

[PATCH linux-next v4 11/11] mtd: bcm63xxpart: Add NAND partitioning support

2015-12-13 Thread Simon Arlott
tfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline is used to select a rootfs. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: Reorganised functions based on earlier new patches in the series, no real logic changes other than having

[PATCH linux-next v4 09/11] mtd: bcm63xxpart: Null terminate and validate conversion of flash strings

2015-12-13 Thread Simon Arlott
. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. drivers/mtd/bcm63xxpart.c | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index eafbf52..41aa202 100644 --- a/d

[PATCH linux-next v4 08/11] mtd: bcm63xxpart: Extract read of image tag to separate function

2015-12-13 Thread Simon Arlott
Extract image tag reading and CRC check to a separate function. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. drivers/mtd/bcm63xxpart.c | 62 ++- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/drive

[PATCH linux-next v4 10/11] mtd: bcm63xxpart: Move NOR flash layout to a separate function

2015-12-13 Thread Simon Arlott
Move the NOR flash layout to a separate function to allow the NAND flash layout to be supported. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v4: New patch. drivers/mtd/bcm63xxpart.c | 54 --- 1 file changed, 32 insertions(+), 22 del

Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-12 Thread Simon Arlott
On 11/12/15 23:29, Jonas Gorski wrote: > On Fri, Dec 11, 2015 at 11:24 PM, Simon Arlott wrote: >> On 11/12/15 22:02, Jonas Gorski wrote: >>> On Fri, Dec 11, 2015 at 10:54 PM, Simon Arlott wrote: >>>> Broadcom BCM963xx boards have multiple nvram variants across diffe

Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-12 Thread Simon Arlott
On 11/12/15 23:29, Jonas Gorski wrote: > On Fri, Dec 11, 2015 at 11:24 PM, Simon Arlott <si...@fire.lp0.eu> wrote: >> On 11/12/15 22:02, Jonas Gorski wrote: >>> On Fri, Dec 11, 2015 at 10:54 PM, Simon Arlott <si...@fire.lp0.eu> wrote: >>>> Broadcom BC

Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-11 Thread Simon Arlott
On 11/12/15 22:02, Jonas Gorski wrote: > Hi, > > On Fri, Dec 11, 2015 at 10:54 PM, Simon Arlott wrote: >> Broadcom BCM963xx boards have multiple nvram variants across different >> SoCs with additional checksum fields added whenever the size of the >> nvram was extende

[PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE partitioning support

2015-12-11 Thread Simon Arlott
tfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline is used to select a rootfs. Signed-off-by: Simon Arlott --- v3: Use COMPILE_TEST. Ensure that strings read from flash are null terminated and validate bcm_tag integer values (this also

[PATCH linux-next (v3) 2/3] MIPS: bcm63xx: nvram: Use nvram structure definition from header file

2015-12-11 Thread Simon Arlott
igh; - nvram.checksum_high = 0; + check_len = BCM963XX_NVRAM_V5_SIZE; + expected_crc = nvram.checksum_v5; + nvram.checksum_v5 = 0; } crc = crc32_le(~0, (u8 *), check_len); -- 2.1.4 -- Simon Arlott -- To unsubscribe from this list: send the l

[PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-11 Thread Simon Arlott
Broadcom BCM963xx boards have multiple nvram variants across different SoCs with additional checksum fields added whenever the size of the nvram was extended. Add this structure as a header file so that multiple drivers and userspace can use it. Signed-off-by: Simon Arlott --- v3: Fix includes

Re: [PATCH linux-next 1/2] power: Add brcm,bcm6358-power-controller device tree binding

2015-12-11 Thread Simon Arlott
On 11/12/15 02:58, Rob Herring wrote: > On Wed, Dec 09, 2015 at 10:29:35PM +0000, Simon Arlott wrote: >> The BCM6358 contains power domains controlled with a register. Power >> domains are indexed by bits in the register. Power domain bits can be >> interleaved with other s

[PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE partitioning support

2015-12-11 Thread Simon Arlott
tfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline is used to select a rootfs. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v3: Use COMPILE_TEST. Ensure that strings read from flash are null terminated and validate bcm_tag i

[PATCH linux-next (v3) 2/3] MIPS: bcm63xx: nvram: Use nvram structure definition from header file

2015-12-11 Thread Simon Arlott
ksum_high; - nvram.checksum_high = 0; + check_len = BCM963XX_NVRAM_V5_SIZE; + expected_crc = nvram.checksum_v5; + nvram.checksum_v5 = 0; } crc = crc32_le(~0, (u8 *), check_len); -- 2.1.4 -- Simon Arlott -- To unsubsc

Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-11 Thread Simon Arlott
On 11/12/15 22:02, Jonas Gorski wrote: > Hi, > > On Fri, Dec 11, 2015 at 10:54 PM, Simon Arlott <si...@fire.lp0.eu> wrote: >> Broadcom BCM963xx boards have multiple nvram variants across different >> SoCs with additional checksum fields added whenever the size o

[PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

2015-12-11 Thread Simon Arlott
Broadcom BCM963xx boards have multiple nvram variants across different SoCs with additional checksum fields added whenever the size of the nvram was extended. Add this structure as a header file so that multiple drivers and userspace can use it. Signed-off-by: Simon Arlott <si...@fire.lp0

Re: [PATCH linux-next 1/2] power: Add brcm,bcm6358-power-controller device tree binding

2015-12-11 Thread Simon Arlott
On 11/12/15 02:58, Rob Herring wrote: > On Wed, Dec 09, 2015 at 10:29:35PM +0000, Simon Arlott wrote: >> The BCM6358 contains power domains controlled with a register. Power >> domains are indexed by bits in the register. Power domain bits can be >> interleaved with other s

[PATCH linux-next (v2) 3/3] mtd: part: Add BCM962368 CFE partitioning support

2015-12-10 Thread Simon Arlott
each rootfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline is used to select a rootfs. Signed-off-by: Simon Arlott --- v2: Use external struct bcm963xx_nvram definition for bcm963268part. Removed support for the nand partition number field,

[PATCH linux-next (v2) 2/3] MIPS: bcm63xx: Use common nvram structure definition

2015-12-10 Thread Simon Arlott
Use an external common definition of the nvram structure. Signed-off-by: Simon Arlott --- Compile tested only (there is no support for brcmnand on mach-bcm63xx). v2: Use external struct bcm963xx_nvram definition for bcm963268part. arch/mips/bcm63xx/nvram.c | 32

[PATCH linux-next (v2) 1/3] MIPS: bcm963xx: Add nvram structure

2015-12-10 Thread Simon Arlott
The BCM963xx has multiple nvram variants across different SoCs with additional checksum fields added whenever the size of the nvram was extended. Signed-off-by: Simon Arlott --- v2: Use external struct bcm963xx_nvram definition for bcm963268part. MAINTAINERS | 1

[PATCH linux-next (v2) 2/2] clk: bcm6345: Add BCM6345 gated clock support

2015-12-10 Thread Simon Arlott
. Enabled by default for BMIPS_GENERIC. Signed-off-by: Simon Arlott --- v2: Resend, no changes. v1: Renamed from BCM63xx to BCM6345. MAINTAINERS | 1 + drivers/clk/bcm/Kconfig | 9 ++ drivers/clk/bcm/Makefile | 1 + drivers/clk/bcm/clk-bcm6345.c | 191

[PATCH linux-next (v2) 1/2] clk: Add brcm,bcm6345-gate-clk device tree binding

2015-12-10 Thread Simon Arlott
bits and configurable clocks in the same register. Signed-off-by: Simon Arlott --- v2: Added clock-indices, clock-output-names (from clock-bindings.txt), these are required properties. v1: Renamed from BCM63xx to BCM6345. .../bindings/clock/brcm,bcm6345-gate-clk.txt | 62

[PATCH linux-next (v3) 2/2] reset: bcm6345: Add support for the BCM6345 soft-reset controller

2015-12-10 Thread Simon Arlott
The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have been cleared). Signed-off-by: Simon Arlott --- v3: Resend based on linux-next, no changes. v2: Renamed to bcm6345, removed "mask" property (and the regmap register size is alwa

[PATCH linux-next (v3) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-10 Thread Simon Arlott
Add device tree binding for the BCM6345 soft reset controller. The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have been cleared). Signed-off-by: Simon Arlott --- v3: Resend. Example has changed because usbh now has two compatible strings

Re: [PATCH linux-next] mtd: part: Add BCM962368 CFE partitioning support

2015-12-10 Thread Simon Arlott
On 10/12/15 17:41, Florian Fainelli wrote: > Le 09/12/2015 13:55, Simon Arlott a écrit : >> drivers/mtd/Kconfig | 21 +++ >> drivers/mtd/Makefile| 1 + >> drivers/mtd/bcm963268part.c | 373 >> >>

Re: [PATCH linux-next] mtd: part: Add BCM962368 CFE partitioning support

2015-12-10 Thread Simon Arlott
On 10/12/15 17:41, Florian Fainelli wrote: > Le 09/12/2015 13:55, Simon Arlott a écrit : >> drivers/mtd/Kconfig | 21 +++ >> drivers/mtd/Makefile| 1 + >> drivers/mtd/bcm963268part.c | 373 >> >>

[PATCH linux-next (v2) 1/2] clk: Add brcm,bcm6345-gate-clk device tree binding

2015-12-10 Thread Simon Arlott
bits and configurable clocks in the same register. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v2: Added clock-indices, clock-output-names (from clock-bindings.txt), these are required properties. v1: Renamed from BCM63xx to BCM6345. .../bindings/clock/brcm,bcm6345-gate-c

[PATCH linux-next (v2) 2/2] clk: bcm6345: Add BCM6345 gated clock support

2015-12-10 Thread Simon Arlott
. Enabled by default for BMIPS_GENERIC. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v2: Resend, no changes. v1: Renamed from BCM63xx to BCM6345. MAINTAINERS | 1 + drivers/clk/bcm/Kconfig | 9 ++ drivers/clk/bcm/Makefile | 1 + drivers/clk/bcm/clk-bcm

[PATCH linux-next (v3) 2/2] reset: bcm6345: Add support for the BCM6345 soft-reset controller

2015-12-10 Thread Simon Arlott
The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have been cleared). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v3: Resend based on linux-next, no changes. v2: Renamed to bcm6345, removed "mask" property (and the regmap r

[PATCH linux-next (v3) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-10 Thread Simon Arlott
Add device tree binding for the BCM6345 soft reset controller. The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have been cleared). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v3: Resend. Example has changed because usbh now has two comp

[PATCH linux-next (v2) 2/3] MIPS: bcm63xx: Use common nvram structure definition

2015-12-10 Thread Simon Arlott
Use an external common definition of the nvram structure. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Compile tested only (there is no support for brcmnand on mach-bcm63xx). v2: Use external struct bcm963xx_nvram definition for bcm963268part. arch/mips/bcm63xx/nvram.

[PATCH linux-next (v2) 1/3] MIPS: bcm963xx: Add nvram structure

2015-12-10 Thread Simon Arlott
The BCM963xx has multiple nvram variants across different SoCs with additional checksum fields added whenever the size of the nvram was extended. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v2: Use external struct bcm963xx_nvram definition for bcm963268part. MAINT

[PATCH linux-next (v2) 3/3] mtd: part: Add BCM962368 CFE partitioning support

2015-12-10 Thread Simon Arlott
each rootfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline is used to select a rootfs. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- v2: Use external struct bcm963xx_nvram definition for bcm963268part. Removed support for

[PATCH linux-next 2/2] power: bcm6358-power: Add BCM6358 power domain controller support

2015-12-09 Thread Simon Arlott
le mode 100644 index 000..f4654d7 --- /dev/null +++ b/drivers/power/bcm6358-power.c @@ -0,0 +1,198 @@ +/* + * Copyright 2015 Simon Arlott + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + *

[PATCH linux-next 1/2] power: Add brcm,bcm6358-power-controller device tree binding

2015-12-09 Thread Simon Arlott
active-low; +}; + +periph_iddq: power-controller { + compatible = "brcm,bcm6368-power-controller", "brcm,bcm6358-power-controller"; + regmap = <_cntl>; + offset = <0x4>; + + #power-domain-cells = <1>; + power-domain-indices = <19>; + power-domain-names = "usbh"; +}; -- 2.1.4 -- Simon Arlott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH linux-next] mtd: part: Add BCM962368 CFE partitioning support

2015-12-09 Thread Simon Arlott
each rootfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline or nvram partition number is used to select a rootfs. Signed-off-by: Simon Arlott --- I'm aware that this is not compatible with the mtd partition/device tree reorganisation patches and wi

[PATCH linux-next (v2) 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-09 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott --- Resend, no changes. drivers/mtd/nand/brcmnand/brcmnand.c | 64 1 file changed, 50 insertions(+), 14

[PATCH linux-next (v2) 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-09 Thread Simon Arlott
, then handle the CTRL_READY interrupt. Signed-off-by: Simon Arlott --- Changed "nand-intr-base" reg name to "nand-int-base". drivers/mtd/nand/brcmnand/Makefile | 1 + drivers/mtd/nand/brcmnand/bcm6368_nand.c | 145 +++ 2 files changed, 146 i

[PATCH linux-next (v2) 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-09 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott --- Changed "nand-intr-base" reg name to

[PATCH linux-next 2/2] MIPS: bmips: Add bcm6345-l1 interrupt controller

2015-12-09 Thread Simon Arlott
this driver. Signed-off-by: Simon Arlott --- Rebased against linux-next-20151209, no other changes. MAINTAINERS | 1 + arch/mips/Kconfig| 1 + arch/mips/bmips/irq.c| 10 +- drivers/irqchip/Kconfig | 5 + drivers/irqchip/Makefile

[PATCH linux-next 1/2] irqchip: Add brcm,bcm6345-l1-intc device tree binding

2015-12-09 Thread Simon Arlott
Add device tree binding for the BCM6345 interrupt controller. This controller is similar to the SMP-capable BCM7038 and the BCM3380 but with packed interrupt registers. Signed-off-by: Simon Arlott --- Corrected example device name to be "interrupt-controller". .../interrupt-contr

[PATCH linux-next 1/2] irqchip: Add brcm,bcm6345-l1-intc device tree binding

2015-12-09 Thread Simon Arlott
Add device tree binding for the BCM6345 interrupt controller. This controller is similar to the SMP-capable BCM7038 and the BCM3380 but with packed interrupt registers. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Corrected example device name to be "interrupt-controller".

[PATCH linux-next (v2) 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-09 Thread Simon Arlott
, then handle the CTRL_READY interrupt. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Changed "nand-intr-base" reg name to "nand-int-base". drivers/mtd/nand/brcmnand/Makefile | 1 + drivers/mtd/nand/brcmnand/bcm6368_nand.c | 145 +++

[PATCH linux-next 1/2] power: Add brcm,bcm6358-power-controller device tree binding

2015-12-09 Thread Simon Arlott
"gmac"; + active-low; +}; + +periph_iddq: power-controller { + compatible = "brcm,bcm6368-power-controller", "brcm,bcm6358-power-controller"; + regmap = <_cntl>; + offset = <0x4>; + + #power-domain-cells = <1>; + power-domain-indices = <19>; + power-domain-names = "usbh"; +}; -- 2.1.4 -- Simon Arlott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH linux-next 2/2] power: bcm6358-power: Add BCM6358 power domain controller support

2015-12-09 Thread Simon Arlott
r/bcm6358-power.c new file mode 100644 index 000..f4654d7 --- /dev/null +++ b/drivers/power/bcm6358-power.c @@ -0,0 +1,198 @@ +/* + * Copyright 2015 Simon Arlott + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public Lice

[PATCH linux-next (v2) 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-09 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Changed "nan

[PATCH linux-next (v2) 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-09 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Resend, no changes. drivers/mtd/nand/brcmnand/brcmnand.c | 64 1 file change

[PATCH linux-next] mtd: part: Add BCM962368 CFE partitioning support

2015-12-09 Thread Simon Arlott
each rootfs that is used to determine which rootfs is newer and what its real offset/size is. The CFE bootline or nvram partition number is used to select a rootfs. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- I'm aware that this is not compatible with the mtd partition/device tree reorg

[PATCH linux-next 2/2] MIPS: bmips: Add bcm6345-l1 interrupt controller

2015-12-09 Thread Simon Arlott
this driver. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Rebased against linux-next-20151209, no other changes. MAINTAINERS | 1 + arch/mips/Kconfig| 1 + arch/mips/bmips/irq.c| 10 +- drivers/irqchip/Kconfig | 5 + d

Re: [PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-12-08 Thread Simon Arlott
On Fri, December 4, 2015 21:04, Simon Arlott wrote: > On Fri, December 4, 2015 14:30, Rob Herring wrote: >> On Mon, Nov 30, 2015 at 08:52:55PM +0000, Simon Arlott wrote: >>> +periph_clk: periph_clk { >>> + compatible = "brcm,bcm63168-gate-clk", "brcm,

Re: [PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-12-08 Thread Simon Arlott
On Fri, December 4, 2015 21:04, Simon Arlott wrote: > On Fri, December 4, 2015 14:30, Rob Herring wrote: >> On Mon, Nov 30, 2015 at 08:52:55PM +0000, Simon Arlott wrote: >>> +periph_clk: periph_clk { >>> + compatible = "brcm,bcm63168-gate-clk", "brcm,

Re: [PATCH 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 16:04, Jonas Gorski wrote: > On Thu, Dec 3, 2015 at 12:41 AM, Simon Arlott wrote: >> + * "brcm,nand-bcm6368" >> + - compatible: should contain "brcm,nand-bcm", "brcm,nand-bcm6368" >> + - reg: (required)

  1   2   3   4   5   6   7   >