lkml.org 
[lkml]   [2021]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCHv4 1/6] spi: add ancillary device support
    On Wed, Jun 9, 2021 at 7:07 PM Sebastian Reichel
    <sebastian.reichel@collabora.com> wrote:
    >
    > Introduce support for ancillary devices, similar to existing
    > implementation for I2C. This is useful for devices having
    > multiple chip-selects, for example some microcontrollers
    > provide a normal SPI interface and a flashing SPI interface.

    ...

    > @@ -1993,7 +2019,7 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi,
    > }
    >
    > /* Device address */
    > - rc = of_property_read_u32(nc, "reg", &value);
    > + rc = of_property_read_u32_index(nc, "reg", 0, &value);
    > if (rc) {
    > dev_err(&ctlr->dev, "%pOF has no valid 'reg' property (%d)\n",
    > nc, rc);

    Unrelated change.

    --
    With Best Regards,
    Andy Shevchenko

    \
     
     \ /
      Last update: 2021-06-13 16:21    [W:4.105 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site