Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3369019rwb; Fri, 30 Sep 2022 02:31:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6a2FyeRgAoLx6LYXQg9DxkE1U7FQ0FOxPHnuiEbuFVDmx1u/XYNR0bw1ftbuESYi8ELkam X-Received: by 2002:a05:6a00:b41:b0:52f:59dc:75 with SMTP id p1-20020a056a000b4100b0052f59dc0075mr8136750pfo.33.1664530306558; Fri, 30 Sep 2022 02:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664530306; cv=none; d=google.com; s=arc-20160816; b=1B2zwz5HPSY+vDrxL7Xi/laQ8VDT1c8rfLk/JPucKFCYgIGvUh1nrPwmBpGDgmnFAV WSEhmejnbdNfqPoAmiVT5FnNuWfxSzbk19av3XF7dCgDFZaUEG9aSjcIBb3snDLf0yhs gT2+gi8iV4AJuY8/DW2sQhYbaj65OkZXVd+ge+aYPXvEdpji0JKmhuXpfu/x3jw74d+P lSSEGYw+2khahRb59oSuID+8dGKHVRV1+KHSOo156VbnbtJhGDuyFEjQ5AUdmGc+OpPN m61WIUzNyXC3zKcxCnFEViXn9KaC+qmOg1WrQKpLxidTTmyK5/y8kO0GnIMbqoWn9cnk QEuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=YU4GpFYCh7tUKFMihzgGprXeadw453Oari6vgpCbd+Y=; b=R/NdEcHSo7jCcM8RvmQvQp1zLiuAdpzhVtpJbvL9McnMAHQDoGN09nnANE7gsDyAqs Ze8w4xsQYGAZbAsv6IEOpnFUssBMbhiC0EpPCyUNLeL6PuTixCOXpAvXiz9nUc94KJgt 37GaaPh/rimtQiFSorkipC/WVqCDybxKHVtlMVjC0PPJX5ruWpc3kYN9GVxM6Ks7MGCM wjIjaTywLPkU2jGqNkBKSN4Sccl4NwY1o2W9MuHacSk/nWzPm03hSScw2FhD+ZcJuYae 3hJTELzruy1FankfOMVdnVvx17vLREV9TKiOk8BFgxzTLy/otN4QkkdpdcWJeb0dCtNY rGew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx11-20020a17090b4b0b00b001f229bc3dc3si2347357pjb.104.2022.09.30.02.31.33; Fri, 30 Sep 2022 02:31:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbiI3JBw convert rfc822-to-8bit (ORCPT + 99 others); Fri, 30 Sep 2022 05:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbiI3JBr (ORCPT ); Fri, 30 Sep 2022 05:01:47 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E69515223E for ; Fri, 30 Sep 2022 02:01:41 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeBtU-0002K6-1Y; Fri, 30 Sep 2022 11:01:16 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oeBtM-003lds-D4; Fri, 30 Sep 2022 11:01:06 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1oeBtK-000326-1D; Fri, 30 Sep 2022 11:01:06 +0200 Message-ID: Subject: Re: [PATCH 4/4] dmaengine: apple-admac: Trigger shared reset From: Philipp Zabel To: Martin =?UTF-8?Q?Povi=C5=A1er?= , Hector Martin , Sven Peter , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: Alyssa Rosenzweig , asahi@lists.linux.dev, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 30 Sep 2022 11:01:05 +0200 In-Reply-To: <20220918095845.68860-5-povik+lin@cutebit.org> References: <20220918095845.68860-1-povik+lin@cutebit.org> <20220918095845.68860-5-povik+lin@cutebit.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi Martin, On So, 2022-09-18 at 11:58 +0200, Martin Povišer wrote: > If a reset domain is attached to the device, obtain a shared reference > to it and trigger it. Typically on a chip the ADMAC controller will > share a reset domain with the MCA peripheral. > > Signed-off-by: Martin Povišer > --- >  drivers/dma/apple-admac.c | 22 +++++++++++++++++++--- >  1 file changed, 19 insertions(+), 3 deletions(-) > > diff --git a/drivers/dma/apple-admac.c b/drivers/dma/apple-admac.c > index 7d1b76678032..317ca76ccafd 100644 > --- a/drivers/dma/apple-admac.c > +++ b/drivers/dma/apple-admac.c > @@ -12,8 +12,9 @@ >  #include >  #include >  #include > -#include > +#include >  #include > +#include Moving around the linux/interrupt.h include doesn't belong in this patch. Otherwise this looks good to me, assuming the MCA driver does the same reset/rearm dance. regards Philipp