Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2950986rwb; Mon, 15 Aug 2022 14:43:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4qgtskT0WstkQgxWTl5EKYNiM+Exo6Pp/H/a0cxO+3p/rBNgJ0bBVCD0mdGEgrZlOezE8g X-Received: by 2002:a17:907:3f85:b0:733:3f0e:2f28 with SMTP id hr5-20020a1709073f8500b007333f0e2f28mr11328076ejc.376.1660599827106; Mon, 15 Aug 2022 14:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660599827; cv=none; d=google.com; s=arc-20160816; b=RiWiCmyl4/GWvtMgoSlBVK9/MomD+mM+gLRozawN6i66C0F+kH+2OJDSMYw8xN5x4N yUf+Ohy1wMrkZf9wWBJ09qxqoN3gq5MqTnVVYAj94in6LwggnVJt2UgQxgNf+jzXPD04 vjg2291UWHudWEiD0RJ0yksjbnyI+fYG/uYIm/Dmn5Al9Lhs5Zjvr1DAbHTmbUqfqbdl E8ahewlt8PKhn43Stb7HYGG1fu35Tzss3FX+1wIAEvNJ6oEYXMMu1OaJJOFI1XImcFqY PkfbFZzlBB3VhBBroE12SN5EsDwTEu0ZOo38SMoS4hB7BfYotg0CEi9uyrsfhfJF/yoD vUgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9CgIuxBZE7mJrbs/MNfJOog4ZlScqDahi2kkERxYmaA=; b=ButRJ3K0Ji6MsdKdmzK6zfwGzSUxY2kHmPW36m8UWmX0jBw7nlBVpkNY7QRFs4wSvF 33F2fOEuKegQvsKHDxH/CqnNBRsQwOgY5qS0J9/0InYa57voeqq9ZKw490prQnX0YU3+ QCis55nmufEqHL7GA8bL/5Qo4SLWrWJcJs1iYqE7eb0uHEduFxhRpLO8V/VOL37a+RjL TyFfBOsVhr5O0pockRBjEpmKSZBcBKZhsU16Z60VHgWJNaPZ1H7JkekVENS0Fy9nppQx G0gxJVnn+pMeFZ/T8zsWsuSUBqmk7vTiqp1K5qJhir9GCkbJQVCI8bwS8DZdn+sVOeqR 7VsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EO2TX0Gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb23-20020a1709071c9700b0072397249ecbsi8627142ejc.928.2022.08.15.14.43.19; Mon, 15 Aug 2022 14:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EO2TX0Gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349433AbiHOVlJ (ORCPT + 99 others); Mon, 15 Aug 2022 17:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348795AbiHOVhf (ORCPT ); Mon, 15 Aug 2022 17:37:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4531098; Mon, 15 Aug 2022 12:27:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C9BE1B810C6; Mon, 15 Aug 2022 19:27:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0494BC433D6; Mon, 15 Aug 2022 19:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591625; bh=LGftA0U8NBZTIfcn4KRWoipw2faNgjkzfJIOn+gHiqU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EO2TX0GqSC6QJuc9JFYIFITY3LIjJD1/G3oCQljKHXVlci++HXNsZhkMVaDntFOEf BwNZfVWyPK35rQ7PYKqF3vPztWM5z+yc9u3HSDn2Z1SFmisE/NMDIVYpL8zPOIMJWp 5dvLBkQh4HqyhOd+AP2TpAL5mmljMq2sX2DnJil0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.18 0640/1095] iio: dac: ad7293: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:39 +0200 Message-Id: <20220815180455.873915128@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Cameron [ Upstream commit 8482468b30bdb16d4a764f995d7a63d94fa0cf40 ] ____cacheline_aligned is an insufficient guarantee for non-coherent DMA on platforms with 128 byte cachelines above L1. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 0bb12606c05f ("iio:dac:ad7293: add support for AD7293") Signed-off-by: Jonathan Cameron Cc: Antoniu Miclaus Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-57-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ad7293.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad7293.c b/drivers/iio/dac/ad7293.c index 59a38ca4c3c7..06f05750d921 100644 --- a/drivers/iio/dac/ad7293.c +++ b/drivers/iio/dac/ad7293.c @@ -144,7 +144,7 @@ struct ad7293_state { struct regulator *reg_avdd; struct regulator *reg_vdrive; u8 page_select; - u8 data[3] ____cacheline_aligned; + u8 data[3] __aligned(IIO_DMA_MINALIGN); }; static int ad7293_page_select(struct ad7293_state *st, unsigned int reg) -- 2.35.1