[PATCH v2] net/phy: micrel: configure intterupts after autoneg workaround

2017-06-20 Thread Zach Brown
s, the phy will stall, since interrupts are off. This patch fixes the issue by calling config_intr after resetting the phy. Fixes: d2fd719bcb0e ("net/phy: micrel: Add workaround for bad autoneg ") Signed-off-by: Zach Brown <zach.br...@ni.com> --- v2: * Check phy_intterupt_is_valid

[PATCH v2] net/phy: micrel: configure intterupts after autoneg workaround

2017-06-20 Thread Zach Brown
s, the phy will stall, since interrupts are off. This patch fixes the issue by calling config_intr after resetting the phy. Fixes: d2fd719bcb0e ("net/phy: micrel: Add workaround for bad autoneg ") Signed-off-by: Zach Brown --- v2: * Check phy_intterupt_is_valid before calling config_in

[PATCH] net/phy: micrel: configure intterupts after autoneg workaround

2017-06-16 Thread Zach Brown
s, the phy will stall, since interrupts are off. This patch fixes the issue by calling config_intr after resetting the phy. Fixes: d2fd719bcb0e ("net/phy: micrel: Add workaround for bad autoneg ") Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/net/phy/micrel.c | 2 ++ 1

[PATCH] net/phy: micrel: configure intterupts after autoneg workaround

2017-06-16 Thread Zach Brown
s, the phy will stall, since interrupts are off. This patch fixes the issue by calling config_intr after resetting the phy. Fixes: d2fd719bcb0e ("net/phy: micrel: Add workaround for bad autoneg ") Signed-off-by: Zach Brown --- drivers/net/phy/micrel.c | 2 ++ 1 file changed, 2 inser

Re: [RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-17 Thread Zach Brown
On Wed, May 17, 2017 at 12:36:35PM +0200, Honza Petrouš wrote: > 2017-05-16 20:22 GMT+02:00 Richard Weinberger <rich...@nod.at>: > > Zach, > > > > Am 16.05.2017 um 19:58 schrieb Zach Brown: > >> From: Ben Shelton <ben.shel...@ni.com> > >>

Re: [RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-17 Thread Zach Brown
On Wed, May 17, 2017 at 12:36:35PM +0200, Honza Petrouš wrote: > 2017-05-16 20:22 GMT+02:00 Richard Weinberger : > > Zach, > > > > Am 16.05.2017 um 19:58 schrieb Zach Brown: > >> From: Ben Shelton > >> > >> Add a file under debugfs to allow easy

[RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-16 Thread Zach Brown
m> Signed-off-by: Zach Brown <zach.br...@ni.com> --- v2: * If ubi_io_is_bad eraseblk_count_seq_show just returns the err. * if ubi->lookuptbl returns null, its no longer treated as an error instead info for that block is not printeded * Removed check for UBI_MAX_ERASECOUNTER since it

[RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-16 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown --- v2

[PATCH v3] UBI: add debugfs file for tracking PEB state

2017-03-27 Thread Zach Brown
m> Signed-off-by: Zach Brown <zach.br...@ni.com> v2: * If ubi_io_is_bad eraseblk_count_seq_show just returns the err. * if ubi->lookuptbl returns null, its no longer treated as an error instead info for that block is not printeded * Removed check for UBI_MAX_ERASECOUNTER since it

[PATCH v3] UBI: add debugfs file for tracking PEB state

2017-03-27 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown v2

[PATCH v2] UBI: add debugfs file for tracking PEB state

2017-03-24 Thread Zach Brown
m> Signed-off-by: Zach Brown <zach.br...@ni.com> v2: * If ubi_io_is_bad eraseblk_count_seq_show just returns the err. * if ubi->lookuptbl returns null, its no longer treated as an error instead info for that block is not printeded * Removed check for UBI_MAX_ERASECOUNTER since it

[PATCH v2] UBI: add debugfs file for tracking PEB state

2017-03-24 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown v2

[PATCH] net: phy: handle state correctly in phy_stop_machine

2017-03-22 Thread Zach Brown
From: Nathan Sullivan If the PHY is halted on stop, then do not set the state to PHY_UP. This ensures the phy will be restarted later in phy_start when the machine is started again. Signed-off-by: Nathan Sullivan Signed-off-by: Brad Mouring

[PATCH] net: phy: handle state correctly in phy_stop_machine

2017-03-22 Thread Zach Brown
From: Nathan Sullivan If the PHY is halted on stop, then do not set the state to PHY_UP. This ensures the phy will be restarted later in phy_start when the machine is started again. Signed-off-by: Nathan Sullivan Signed-off-by: Brad Mouring Acked-by: Xander Huff Acked-by: Kyle Roeschley

[RESEND v1] UBI: add debugfs file for tracking PEB state

2017-03-22 Thread Zach Brown
m> Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mtd/ubi/debug.c | 151 +++- 1 file changed, 150 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index f101a49..6086822 100644 --- a/drivers/mtd

[RESEND v1] UBI: add debugfs file for tracking PEB state

2017-03-22 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown --- drivers/mtd/ubi

[PATCH v8 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2017-01-10 Thread Zach Brown
nction max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available Zach Brown (3): mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip mtd: nand: implement 'max_bad_blocks' mtd function mtd: nand: set max_bb_per_die and blocks_per_die for ONFI comp

[PATCH v8 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2017-01-10 Thread Zach Brown
nction max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available Zach Brown (3): mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip mtd: nand: implement 'max_bad_blocks' mtd function mtd: nand: set max_bb_per_die and blocks_per_die for ONFI comp

[PATCH v8 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2017-01-10 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If the user has not set max_beb_per1024 using either the cmdline or Kconfig options for doing so, use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by

[PATCH v8 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2017-01-10 Thread Zach Brown
From: Jeff Westfahl If the user has not set max_beb_per1024 using either the cmdline or Kconfig options for doing so, use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd/ubi

[PATCH v8 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2017-01-10 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[PATCH v8 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2017-01-10 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Bor

[PATCH v8 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2017-01-10 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[PATCH v8 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2017-01-10 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris

[PATCH v8 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2017-01-10 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris --- drivers/mtd/nand

[PATCH v8 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2017-01-10 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian

[PATCH v8 1/5] mtd: introduce function max_bad_blocks

2017-01-10 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for a MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com&g

[PATCH v8 1/5] mtd: introduce function max_bad_blocks

2017-01-10 Thread Zach Brown
From: Jeff Westfahl If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for a MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris --- drivers/mtd/mtdpart.c

[PATCH v7 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2017-01-06 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[PATCH v7 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2017-01-06 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian

[PATCH v7 1/5] mtd: introduce function max_bad_blocks

2017-01-06 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for a MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com&g

[PATCH v7 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2017-01-06 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If the user has not set max_beb_per1024 using either the cmdline or Kconfig options for doing so, use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by

[PATCH v7 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2017-01-06 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[PATCH v7 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2017-01-06 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Bor

[PATCH v7 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2017-01-06 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris --- drivers/mtd/nand

[PATCH v7 1/5] mtd: introduce function max_bad_blocks

2017-01-06 Thread Zach Brown
From: Jeff Westfahl If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for a MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris --- drivers/mtd/mtdpart.c

[PATCH v7 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2017-01-06 Thread Zach Brown
From: Jeff Westfahl If the user has not set max_beb_per1024 using either the cmdline or Kconfig options for doing so, use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd/ubi

[PATCH v7 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2017-01-06 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris

[PATCH v7 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2017-01-06 Thread Zach Brown
cmdline > Kconfig > automatic with mtd_max_bad_blocks v7: * Moved mtd_max_bad_blocks function to be with other static inline functions so it would not look like the odd man out. Jeff Westfahl (2): mtd: introduce function max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute ba

[PATCH v7 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2017-01-06 Thread Zach Brown
cmdline > Kconfig > automatic with mtd_max_bad_blocks v7: * Moved mtd_max_bad_blocks function to be with other static inline functions so it would not look like the odd man out. Jeff Westfahl (2): mtd: introduce function max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute ba

[PATCH v6 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2016-11-30 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If the user has not set max_beb_per1024 using either the cmdline or Kconfig options for doing so, use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by

[PATCH v6 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2016-11-30 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[PATCH v6 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2016-11-30 Thread Zach Brown
From: Jeff Westfahl If the user has not set max_beb_per1024 using either the cmdline or Kconfig options for doing so, use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd/ubi

[PATCH v6 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2016-11-30 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris

[PATCH v6 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2016-11-30 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[PATCH v6 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2016-11-30 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian

[PATCH v6 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2016-11-30 Thread Zach Brown
imit: cmdline > Kconfig > automatic with mtd_max_bad_blocks Jeff Westfahl (2): mtd: introduce function max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available Zach Brown (3): mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip mtd: nand

[PATCH v6 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2016-11-30 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Bor

[PATCH v6 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2016-11-30 Thread Zach Brown
imit: cmdline > Kconfig > automatic with mtd_max_bad_blocks Jeff Westfahl (2): mtd: introduce function max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available Zach Brown (3): mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip mtd: nand

[PATCH v6 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2016-11-30 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris --- drivers/mtd/nand

[PATCH v6 1/5] mtd: introduce function max_bad_blocks

2016-11-30 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for a MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com&g

[PATCH v6 1/5] mtd: introduce function max_bad_blocks

2016-11-30 Thread Zach Brown
From: Jeff Westfahl If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for a MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon Acked-by: Brian Norris --- drivers/mtd/mtdpart.c

Re: [PATCH v2] net: phy: Fix use after free in phy_detach()

2016-11-28 Thread Zach Brown
hy_led_triggers_unregister(phydev); > - > /* >* The phydev might go away on the put_device() below, so avoid >* a use-after-free bug by reading the underlying bus first. > -- > 1.9.1 > I was able to recreate the issue and confirmed this patch fixes it. Tested-by: Zach Brown <zach.br...@ni.com> --Zach

Re: [PATCH v2] net: phy: Fix use after free in phy_detach()

2016-11-28 Thread Zach Brown
phydev); > - > /* >* The phydev might go away on the put_device() below, so avoid >* a use-after-free bug by reading the underlying bus first. > -- > 1.9.1 > I was able to recreate the issue and confirmed this patch fixes it. Tested-by: Zach Brown --Zach

[PATCH v3 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-28 Thread Zach Brown
the two versions of ni_byt_sdio_probe_slot with new version that calls ni_set_max_freq. * Created ni_set_max_freq which sets the slot's max_freq if CONFIG_ACPI is set. Zach Brown (2): mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI mmc: sdhci-pci

[PATCH v3 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-28 Thread Zach Brown
lli...@ni.com> Reviewed-by: Jaeden Amero <jaeden.am...@ni.com> Reviewed-by: Josh Cartwright <jo...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/m

[PATCH v3 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-28 Thread Zach Brown
the two versions of ni_byt_sdio_probe_slot with new version that calls ni_set_max_freq. * Created ni_set_max_freq which sets the slot's max_freq if CONFIG_ACPI is set. Zach Brown (2): mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI mmc: sdhci-pci

[PATCH v3 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-28 Thread Zach Brown
Amero Reviewed-by: Josh Cartwright Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 9741505..c9e51b1 100644

[PATCH v3 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-28 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 inse

[PATCH v3 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-28 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers

[PATCH v2 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-22 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 inse

[PATCH v2 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-22 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers

[PATCH v2 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-22 Thread Zach Brown
()/acpi_evaluate_object() pv1: * Removed redundant comment * Print info message if MXFQ not found in acpi table pv2: * Changed info message to error message if MXFQ not found * Replaced ni_byt_sdio_probe_slot with one of two versions depending on whether CONFIG_ACPI is set. Zach Brown (2

[PATCH v2 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-22 Thread Zach Brown
()/acpi_evaluate_object() pv1: * Removed redundant comment * Print info message if MXFQ not found in acpi table pv2: * Changed info message to error message if MXFQ not found * Replaced ni_byt_sdio_probe_slot with one of two versions depending on whether CONFIG_ACPI is set. Zach Brown (2

[PATCH v2 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-22 Thread Zach Brown
lli...@ni.com> Reviewed-by: Jaeden Amero <jaeden.am...@ni.com> Reviewed-by: Josh Cartwright <jo...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/mmc/

[PATCH v2 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-22 Thread Zach Brown
Amero Reviewed-by: Josh Cartwright Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 9741505..34284b8 100644 --- a/drivers

Re: [PATCH 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host

2016-11-22 Thread Zach Brown
On Tue, Nov 22, 2016 at 09:27:29AM +0100, Ulf Hansson wrote: > > Please try to not forget to bump the version number and to provide a > history of the what changes between revisions. It makes life easier > when reviewing and when I am about to apply patches. > Sorry, I'll make sure to include a

Re: [PATCH 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host

2016-11-22 Thread Zach Brown
On Tue, Nov 22, 2016 at 09:27:29AM +0100, Ulf Hansson wrote: > > Please try to not forget to bump the version number and to provide a > history of the what changes between revisions. It makes life easier > when reviewing and when I am about to apply patches. > Sorry, I'll make sure to include a

[PATCH 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host

2016-11-21 Thread Zach Brown
frequency. The first patch creates a PCI ID and support for the Intel byt sdio where NI is the subvendor. The second patch uses the ACPI table to set f_max during the new ni_byt_sdio_probe_slot. Zach Brown (2): mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

[PATCH 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host

2016-11-21 Thread Zach Brown
frequency. The first patch creates a PCI ID and support for the Intel byt sdio where NI is the subvendor. The second patch uses the ACPI table to set f_max during the new ni_byt_sdio_probe_slot. Zach Brown (2): mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

[PATCH 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-21 Thread Zach Brown
lli...@ni.com> Reviewed-by: Jaeden Amero <jaeden.am...@ni.com> Reviewed-by: Josh Cartwright <jo...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mmc/host/sdhci-p

[PATCH 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-21 Thread Zach Brown
Amero Reviewed-by: Josh Cartwright Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 9741505..a855c97 100644 --- a/drivers/mmc/host

[PATCH 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-21 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 inse

[PATCH 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-21 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers

[RESEND PATCH v5 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2016-11-21 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Bor

[RESEND PATCH v5 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2016-11-21 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[RESEND PATCH v5 4/5] mtd: nand: implement 'max_bad_blocks' mtd function

2016-11-21 Thread Zach Brown
Implement the new mtd function 'max_bad_blocks'. Using the chip's max_bb_per_die and blocks_per_die fields to determine the maximum bad blocks to reserve for an MTD. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 35

[RESEND PATCH v5 3/5] mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

2016-11-21 Thread Zach Brown
The fields max_bb_per_die and blocks_per_die are useful determining the number of bad blocks a MTD needs to allocate. How they are set will depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids table. Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- include/linux/mtd

[RESEND PATCH v5 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2016-11-21 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown <zach.br...@ni.com> Acked-by: Boris Bre

[RESEND PATCH v5 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2016-11-21 Thread Zach Brown
tyle issue [1] http://lkml.iu.edu/hypermail/linux/kernel/1505.1/04822.html Jeff Westfahl (2): mtd: introduce function max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available Zach Brown (3): mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

[RESEND PATCH v5 1/5] mtd: introduce function max_bad_blocks

2016-11-21 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for an MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com&g

[RESEND PATCH v5 5/5] mtd: nand: set max_bb_per_die and blocks_per_die for ONFI compliant chips

2016-11-21 Thread Zach Brown
ONFI compliant chips contain the values for the max_bb_per_die and blocks_per_die fields in the parameter page. When the ONFI paged is retrieved/parsed the chip's fields are set by the corresponding fields in the param page. Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd

[RESEND PATCH v5 0/5] mtd: use ONFI bad blocks per LUN to calculate UBI bad PEB limit

2016-11-21 Thread Zach Brown
tyle issue [1] http://lkml.iu.edu/hypermail/linux/kernel/1505.1/04822.html Jeff Westfahl (2): mtd: introduce function max_bad_blocks mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available Zach Brown (3): mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

[RESEND PATCH v5 1/5] mtd: introduce function max_bad_blocks

2016-11-21 Thread Zach Brown
From: Jeff Westfahl If implemented, 'max_bad_blocks' returns the maximum number of bad blocks to reserve for an MTD. An implementation for NAND is coming soon. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd/mtdpart.c | 12

[RESEND PATCH v5 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2016-11-21 Thread Zach Brown
From: Jeff Westfahl <jeff.westf...@ni.com> Use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit, if the function is implemented for an MTD and doesn't return an error. Signed-off-by: Jeff Westfahl <jeff.westf...@ni.com> Signed-off-by: Zach Brown <zach.br..

[RESEND PATCH v5 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2016-11-21 Thread Zach Brown
From: Jeff Westfahl Use the MTD function 'max_bad_blocks' to compute the UBI bad_peb_limit, if the function is implemented for an MTD and doesn't return an error. Signed-off-by: Jeff Westfahl Signed-off-by: Zach Brown Acked-by: Boris Brezillon --- drivers/mtd/ubi/build.c | 4 1 file

[RFC v2 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-15 Thread Zach Brown
frequency. The first patch creates a PCI ID and support for the Intel byt sdio where NI is the subvendor. The second patch uses the ACPI table to set f_max during the new ni_byt_sdio_probe_slot. v2: * Use acpi_evaluate_integer() instead of acpi_get_handle()/acpi_evaluate_object() Zach Brown

[RFC v2 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-15 Thread Zach Brown
lli...@ni.com> Reviewed-by: Jaeden Amero <jaeden.am...@ni.com> Reviewed-by: Josh Cartwright <jo...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/host/sdhci-p

[RFC v2 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-15 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 inse

[RFC v2 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host controller

2016-11-15 Thread Zach Brown
frequency. The first patch creates a PCI ID and support for the Intel byt sdio where NI is the subvendor. The second patch uses the ACPI table to set f_max during the new ni_byt_sdio_probe_slot. v2: * Use acpi_evaluate_integer() instead of acpi_get_handle()/acpi_evaluate_object() Zach Brown

[RFC v2 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio controller sub-vended by NI

2016-11-15 Thread Zach Brown
Amero Reviewed-by: Josh Cartwright Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 9741505..4c31d16 100644 --- a/drivers/mmc/host/sdhci

[RFC v2 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-15 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers

Re: [RFC 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio host controller sub-vended by NI

2016-11-09 Thread Zach Brown
On Wed, Nov 09, 2016 at 03:24:24PM +0200, Adrian Hunter wrote: > On 08/11/16 22:07, Zach Brown wrote: > > On NI 9037 boards the max SDIO frequency is limited by trace lengths > > and other layout choices. The max SDIO frequency is stored in an ACPI > > table, as MXFQ. >

Re: [RFC 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio host controller sub-vended by NI

2016-11-09 Thread Zach Brown
On Wed, Nov 09, 2016 at 03:24:24PM +0200, Adrian Hunter wrote: > On 08/11/16 22:07, Zach Brown wrote: > > On NI 9037 boards the max SDIO frequency is limited by trace lengths > > and other layout choices. The max SDIO frequency is stored in an ACPI > > table, as MXFQ. >

[RFC 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-08 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 20 1 file changed, 20 insertions(+)

[RFC 1/2] mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

2016-11-08 Thread Zach Brown
Add PCI ID for Intel byt sdio host controller sub-vended by NI. The controller has different behavior because of the board layout NI puts it on. Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mmc

[RFC 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host

2016-11-08 Thread Zach Brown
frequency. The first patch creates a PCI ID and support for the Intel byt sdio where NI is the subvendor. The second patch uses the ACPI table to set f_max during the new ni_byt_sdio_probe_slot. Zach Brown (2): mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

[RFC 0/2] mmc: sdhci-pci: Use ACPI to set max frequency of sdio host

2016-11-08 Thread Zach Brown
frequency. The first patch creates a PCI ID and support for the Intel byt sdio where NI is the subvendor. The second patch uses the ACPI table to set f_max during the new ni_byt_sdio_probe_slot. Zach Brown (2): mmc: sdhci-pci: Add PCI ID for Intel byt sdio host controller sub-vended by NI

[RFC 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio host controller sub-vended by NI

2016-11-08 Thread Zach Brown
<nathan.sulli...@ni.com> Reviewed-by: Jaeden Amero <jaeden.am...@ni.com> Reviewed-by: Josh Cartwright <jo...@ni.com> Signed-off-by: Zach Brown <zach.br...@ni.com> --- drivers/mmc/host/sdhci-pci-core.c | 30 ++ 1 file changed, 30 insertions(+) diff

[RFC 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio host controller sub-vended by NI

2016-11-08 Thread Zach Brown
Reviewed-by: Jaeden Amero Reviewed-by: Josh Cartwright Signed-off-by: Zach Brown --- drivers/mmc/host/sdhci-pci-core.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index c333ce2..4ac7f16

  1   2   3   4   5   6   7   8   9   10   >