Re: [PATCH v3] net: ethernet: support "fixed-link" DT node on nb8800 driver

2016-02-05 Thread Måns Rullgård
dev.of_node); > + } > + > + if (!priv->phy_node) > + priv->phy_node = of_parse_phandle(pdev->dev.of_node, > + "phy-handle", 0); > + > if (!priv->phy_node) { > dev_err(&pdev->dev, "no PHY specified\n"); > ret = -ENODEV; > -- > 2.1.4 -- Måns Rullgård

Re: [PATCH v3] net: ethernet: support "fixed-link" DT node on nb8800 driver

2016-02-05 Thread Måns Rullgård
Sebastian Frias writes: > On 02/05/2016 03:34 PM, Måns Rullgård wrote: >> Sebastian Frias writes: >> >>> Signed-off-by: Sebastian Frias >> >> Please change the subject to something like "net: ethernet: nb8800: >> support fixed-link DT node&quo

Re: [PATCH v3] net: ethernet: support "fixed-link" DT node on nb8800 driver

2016-02-05 Thread Måns Rullgård
Sebastian Frias writes: > On 02/05/2016 04:08 PM, Måns Rullgård wrote: >> Sebastian Frias writes: >> >>> On 02/05/2016 03:34 PM, Måns Rullgård wrote: >>>> Sebastian Frias writes: >>>> >>>>> Signed-off-by: Sebastian Frias >&

Re: [PATCH] net: ethernet: support "fixed-link" DT node on nb8800 driver

2016-02-05 Thread Måns Rullgård
Andy Shevchenko writes: > On Fri, Feb 5, 2016 at 3:39 PM, Måns Rullgård wrote: >>> + if (ret < 0) { >>> + dev_err(&pdev->dev, "broken fixed-link >>> specification\n"); >> >> Line is l

Re: avr32 build failures in linux-next

2016-02-06 Thread Måns Rullgård
gt;>Another question is if the avr32 kernel still supported, or if I should >>>just stop trying to build test it. Any thoughts ? >> >> I have already stopped building it. > > I build the kernel and try to fix small issues here and there. Even when it builds, it often doesn't work since non-DT support has bitrotted in many drivers. -- Måns Rullgård

Re: avr32 build failures in linux-next

2016-02-06 Thread Måns Rullgård
Guenter Roeck writes: > On 02/06/2016 06:01 AM, Måns Rullgård wrote: >> Hans-Christian Noren Egtvedt writes: >> >>>>> Example for avr32:defconfig: >>>>> >>>>> fs/built-in.o: In function `anon_inode_getfile': >>>>>

Re: [PATCH 8/9] net: nb8800: avoid uninitialized variable warning

2016-01-27 Thread Måns Rullgård
@@ again: > rxd->report = 0; > last = next; > work++; > - } > + } while (work < budget); > > if (work) { > priv->rx_descs[last].desc.config |= DESC_EOC; > -- > 2.7.0 > -- Måns Rullgård

Re: [PATCH v3 1/3] spi: atmel: add support for the internal chip-select of the spi controller

2016-01-27 Thread Måns Rullgård
Nicolas Ferre writes: > Le 05/01/2016 22:50, Måns Rullgård a écrit : >> Cyrille Pitchen writes: >> >>> This patch relies on the CSAAT (Chip Select Active After Transfer) feature >>> introduced by the version 2 of the spi controller. This new mode allows to &

Re: [PATCH v3 1/3] spi: atmel: add support for the internal chip-select of the spi controller

2016-01-27 Thread Måns Rullgård
Nicolas Ferre writes: > Le 27/01/2016 16:53, Måns Rullgård a écrit : >> Nicolas Ferre writes: >> >>> Le 05/01/2016 22:50, Måns Rullgård a écrit : >>>> Cyrille Pitchen writes: >>>> >>>>> This patch relies on the CSAAT (Chip Select

Re: [PATCH 03/15] dmaengine: dw: rename masters to reflect actual topology

2016-01-24 Thread Måns Rullgård
| 12 ++-- >> drivers/dma/dw/regs.h | 4 ++-- >> drivers/spi/spi-pxa2xx-pci.c | 8 >> drivers/tty/serial/8250/8250_pci.c | 8 >> include/linux/platform_data/dma-dw.h | 8 >> 9 files changed, 39 insertions(+), 40 deletions(-) > > > > -- > Best regards, Hans-Christian Egtvedt -- Måns Rullgård

Re: [PATCH 03/15] dmaengine: dw: rename masters to reflect actual topology

2016-01-24 Thread Måns Rullgård
Hans-Christian Noren Egtvedt writes: > Around Sun 24 Jan 2016 20:19:46 + or thereabout, Måns Rullgård wrote: >> Hans-Christian Noren Egtvedt writes: >>> Around Sun 24 Jan 2016 19:21:50 + or thereabout, Mans Rullgard wrote: >>>> From: Andy Shevche

Re: [PATCH 03/15] dmaengine: dw: rename masters to reflect actual topology

2016-01-24 Thread Måns Rullgård
up. Seriously, this is impossible. If I don't include everybody in the slightest way related to any patch in the series, I get complaints that patches are missing. If I do, the lists reject it all due to too many recipients. What the hell am I supposed to do? -- Måns Rullgård

Re: [PATCH 07/15] dmaengine: dw: revisit data_width property

2016-01-25 Thread Måns Rullgård
bits, ..., 5 - 256bits) >> > +- data-width: Maximum data width supported by hardware (in bytes) >> >> To the reader this suggests a value truely byte granular, but code >> uses ffs >> implying that it is still power of 2. >> Can you mention this here (in bytes, always power of 2). > > While this comment is good, I have still note that using non-power of 2 > values will not break anything. Least power of two number will be used > in that case. So, means I would suggest to replace 'always' by 'better > to be' or something like that. Although the code rounds down, the hardware actually works in powers of two, and it's better to document this. -- Måns Rullgård

Re: [PATCH v2] spi: atmel: Refactor spi-atmel to use SPI framework queue

2016-01-05 Thread Måns Rullgård
rse_args+0x19e/0x27c [<9418>] repair_env_string+0x0/0x58 [<9374>] kernel_init_freeable+0x88/0x12c [<9382>] kernel_init_freeable+0x96/0x12c [<9418>] repair_env_string+0x0/0x58 [<901d2588>] kernel_init+0x8/0xa4 [<90013130>] syscall_return+0x0/0x

Re: [PATCH v3 1/3] spi: atmel: add support for the internal chip-select of the spi controller

2016-01-05 Thread Måns Rullgård
, "cs-gpios", NULL)) { > + as->use_cs_gpios = false; > + master->num_chipselect = 4; > + } This part breaks the AVR32 boards and probably anything else that doesn't use devicetree but does use GPIOs for chip select. -- Måns Rullgår

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-01-06 Thread Måns Rullgård
Andy Shevchenko writes: > On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >> > On Mon, 2015-12-21 at 19:27 +, Måns Rullgård wrote: >> > > Andy Shevchenko writes: >> > > >> > > >

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
ip->base = base; As I said before, this assumes the outer DT node uses a ranges property. Normally reg properties work the same whether they specify an offset within an outer "ranges" or have a full address directly. It would be easy enough to make this work with either, so I don't see any reason not to. -- Måns Rullgård

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
Marc Zyngier writes: > On 20/01/16 16:10, Måns Rullgård wrote: >> Marc Zyngier writes: >> >>>> + if (of_property_read_u32(node, "reg", &ctl)) >>>> + panic("%s: failed to get reg base", node->name); >>>>

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
Marc Gonzalez writes: > On 20/01/2016 17:10, Måns Rullgård wrote: > >> Marc Zyngier wrote: >> >>>> + if (of_property_read_u32(node, "reg", &ctl)) >>>> + panic("%s: failed to get reg base", node->name); >>>

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
Marc Gonzalez writes: > On 20/01/2016 17:25, Måns Rullgård wrote: > >> Marc Zyngier writes: >> >>> On 20/01/16 16:10, Måns Rullgård wrote: >>> >>>> Marc Zyngier writes: >>>> >>>>>> +if (of_property_read_u32

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
Mark Rutland writes: > On Wed, Jan 20, 2016 at 05:24:14PM +0100, Marc Gonzalez wrote: >> On 20/01/2016 17:10, Måns Rullgård wrote: >> >> > Marc Zyngier wrote: >> > >> >>> +if (of_property_read_u32(node, "reg", &ctl)) &g

Re: [RFC PATCH v3] irqchip: Add support for Tango interrupt controller

2016-01-20 Thread Måns Rullgård
d the driver would > still function correctly? Not the one you posted. -- Måns Rullgård

Re: [PATCH] ARM: dts: tango: Align L2 cache-controller nodename with dtschema

2020-06-26 Thread Måns Rullgård
t;; > reg = <0x2010 0x1000>; > cache-level = <2>; > -- > 2.17.1 > -- Måns Rullgård

Re: [PATCH] i2c: core: check returned size of emulated smbus block read

2020-06-26 Thread Måns Rullgård
"Invalid block size returned: %d\n", >> +msg[1].buf[0]); >> +status = -EINVAL; > > I changed this to -EPROTO as described in > Documentation/i2c/fault-codes.rst. > > Applied to for-current, thanks! > -- Måns Rullgård

Re: [PATCH] drm: sun4i: hdmi: Fix inverted HPD result

2020-07-14 Thread Måns Rullgård
ned long reg; > > reg = readl(hdmi->base + SUN4I_HDMI_HPD_REG); > - if (reg & SUN4I_HDMI_HPD_HIGH) { > + if (!(reg & SUN4I_HDMI_HPD_HIGH)) { > cec_phys_addr_invalidate(hdmi->cec_adap); > return connector_status_disconnected; > } > -- > 2.27.0 > -- Måns Rullgård

Re: [PATCH 1/6] genirq: generic chip: add generic irq_mask_ack functions

2017-07-12 Thread Måns Rullgård
p_data(d); >> +struct irq_chip_type *ct = irq_data_get_chip_type(d); >> +u32 mask = d->mask; >> + >> +irq_gc_lock(gc); >> +irq_reg_writel(gc, mask, ct->regs.disable); >> +*ct->mask_cache &= ~mask; >> +irq_reg_writel(gc, mask, ct->regs.ack); >> +irq_gc_unlock(gc); >> +} This function looks like it should probably be used instead. I'll try to remember to test it when I have time to fire up that hardware. -- Måns Rullgård

Re: [PATCH 2/6] irqchip/tango: Use irq_gc_mask_disable_and_ack_set

2017-07-13 Thread Måns Rullgård
reg; >> -ct[i].chip.irq_mask_ack = irq_gc_mask_disable_reg_and_ack; >> +ct[i].chip.irq_mask_ack = irq_gc_mask_disable_and_ack_set; >> ct[i].chip.irq_unmask = irq_gc_unmask_enable_reg; >> ct[i].chip.irq_set_type = tangox_irq_set_type; >> ct[i].chip.name = gc->domain->name; >> > -- Måns Rullgård

Re: [PATCH] dmaengine: enable mxs-dma for imx6sx

2017-08-22 Thread Måns Rullgård
pends on SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q || SOC_IMX6SX || >> SOC_IMX6UL >> select STMP_DEVICE >> select DMA_ENGINE >> help >> -- >> 2.14.1 >> > > -- > ~Vinod -- Måns Rullgård

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-08-19 Thread Måns Rullgård
Florian Fainelli writes: > What do we do with this patch series to move forward? Can we get Doug's > changes queued up for 4.14? My opinion is that the correct combined function should be added and the tango driver updated to use it. Patches already exist, so what are we waiting for

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-07-25 Thread Måns Rullgård
ct[i].chip.irq_mask_ack = irq_gc_mask_disable_reg_and_ack; > ct[i].chip.irq_unmask = irq_gc_unmask_enable_reg; > ct[i].chip.irq_set_type = tangox_irq_set_type; > ct[i].chip.name = gc->domain->name; > -- What happened to the patch adding the proper combined function? -- Måns Rullgård

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-07-25 Thread Måns Rullgård
Marc Gonzalez writes: > On 25/07/2017 15:16, Måns Rullgård wrote: > >> What happened to the patch adding the proper combined function? > > It appears you're not CCed on v2. > > https://patchwork.kernel.org/patch/9859799/ > > Doug wrote: >> Yes, you under

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-07-26 Thread Måns Rullgård
Florian Fainelli writes: > On 07/25/2017 06:29 AM, Måns Rullgård wrote: >> Marc Gonzalez writes: >> >>> On 25/07/2017 15:16, Måns Rullgård wrote: >>> >>>> What happened to the patch adding the proper combined function? >>&g

Re: [PATCH 2/7] net: ethernet: nb8800: Fix module autoload

2016-10-17 Thread Måns Rullgård
ernet/aurora/nb8800.c > +++ b/drivers/net/ethernet/aurora/nb8800.c > @@ -1357,6 +1357,7 @@ static const struct of_device_id nb8800_dt_ids[] = { > }, > { } > }; > +MODULE_DEVICE_TABLE(of, nb8800_dt_ids); > > static int nb8800_probe(struct platform_device *pdev) > { > -- -- Måns Rullgård

<    1   2   3   4   5