lkml.org 
[lkml]   [2022]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v4 3/5] iio: pressure: bmp280: Fix alignment for DMA safety
    On Sat, Jul 23, 2022 at 7:40 PM Angel Iglesias <ang.iglesiasg@gmail.com> wrote:
    >
    > Adds a DMA-safe buffer to driver data struct to store raw data from sensor
    >
    > Updated calibration read functions to use DMA-safe buffers as well.
    > In this case, as calibration data is only read at sensor initialization,
    > the buffers are allocated with kmalloc and freed after being processed.

    > Suggested-by: Jonathan Cameron <jic23@kernel.org>

    Jonathan, maybe it's easier to fix in regmap once for all (something
    like a new flag there dma_safe)? Also a side note: i2c doesn't need
    that, since it has its own implementation.

    P.S. Use sizeof() in regmap calls where it's appropriate.

    --
    With Best Regards,
    Andy Shevchenko

    \
     
     \ /
      Last update: 2022-07-25 23:10    [W:4.049 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site