Skip to content

SPIdev works just with max. 511 bytes per transfer #714

Closed
@SICKUser

Description

@SICKUser

The SPIdev driver just works with transfer length limited to 511 byte. If you want to transfer more than 512 byte per transfer the driver sends nothing and returned without any error response.

In header file spidev.h the define:

define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[SPI_MSGSIZE(N)])

has just a "char" variable for the message size.
Please change them to a size_t varialbe (unsigned int) like it's handled in the spidev.c

I'm new to linux and raspberry and hope this would be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions