Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2979536rwr; Sun, 7 May 2023 01:54:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4G59act8UTrxNVDG8L7dHTC0eDqkLaHgqJ12FQCl2lvP4g9g7gcFljaSt85OeQxUCH85b3 X-Received: by 2002:a05:6a21:2d0a:b0:f0:2501:349b with SMTP id tw10-20020a056a212d0a00b000f02501349bmr7145747pzb.25.1683449679207; Sun, 07 May 2023 01:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683449679; cv=none; d=google.com; s=arc-20160816; b=FEYKe1IQ3QtUEp4ohb80GYZ6t8trdFMiJp3vzAd9egZ9jPns/FSYmR9XaWfGQVOYwT UDBcmv+k1I3fITeGBtUf1Xnk2LH3FCY+ntiCz7GrFWTIYzRSi532Kgv0hHlyV6SN9zGH S2sTPQVuYf6bsMQrdtwYIF2KncJM3/ZbQuLKiSsHnHGR8w8xENpWu/7e9gYLQ/x53BOs 3b+Tmf2n8meWGm/qlCg+dylkD0dm3xXY4Qh3snvxOKiNyIFkQhR6mvXtOhNlJb+8kfdL 12K917rVwPR5bXV3aZYFobS22xqM8U+4HNQuECeOtYUmJpRg2gMW1rldvjs2IOR8tk+W IA4g== 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=xHUWkx9Uw7Li6WpfvjW6mOKK4RT2+D76b8g8teNsA5E=; b=nDNOI0/MeU/vqiUlmSZJiW10OxEsGgpCcd6Z+c+/FHegDhzaNK93VfA7wW9mvBbF3D +kHzt88J41GpmBrtXo0qzEhJ7blOWZjOet8bLDJA9Lfn+udxe/rgG/JhIzKDwMYI+RXT ySaO2NUlHqqMq6LStdSF318I/9mXZXFHxco4NiXWC6Ff0BtWSGEWv+9Mp2ksahf8ZIsv 5zO0GwHaGvNjqVN0WZmIC7Qmo28PuqIxPpYWr/RvtNv/PGv85IRmK5obTX7dANiYm9Hu UozgwVomjHgJtdqIHV9J0M22yzElluVySXMm0eVmIg8WLxim8udqAnhWacMwg5Oy/bXv JH1A== 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 g18-20020aa796b2000000b006436618b22bsi5939917pfk.155.2023.05.07.01.54.26; Sun, 07 May 2023 01:54:39 -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 S231146AbjEGId3 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 7 May 2023 04:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjEGId1 (ORCPT ); Sun, 7 May 2023 04:33:27 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B9812085; Sun, 7 May 2023 01:33:26 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pvZpX-001LSN-Kv; Sun, 07 May 2023 10:33:19 +0200 Received: from p57bd9c27.dip0.t-ipconnect.de ([87.189.156.39] helo=suse-laptop.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pvZpX-003FzF-Cv; Sun, 07 May 2023 10:33:19 +0200 Message-ID: Subject: Re: [PATCH 2/2] sh: dma: Correct the number of DMA channels in SH7709 From: John Paul Adrian Glaubitz To: Artur Rojek , Yoshinori Sato , Rich Felker Cc: Rafael Ignacio Zurita , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 07 May 2023 10:33:17 +0200 In-Reply-To: <20230506141703.65605-3-contact@artur-rojek.eu> References: <20230506141703.65605-1-contact@artur-rojek.eu> <20230506141703.65605-3-contact@artur-rojek.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.1 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.156.39 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Sat, 2023-05-06 at 16:17 +0200, Artur Rojek wrote: > According to the PM, the DMAC found in SH7709 features only 4 channels. > > Signed-off-by: Artur Rojek > --- > arch/sh/drivers/dma/Kconfig | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/arch/sh/drivers/dma/Kconfig b/arch/sh/drivers/dma/Kconfig > index 7d54f284ce10..4494d09597e9 100644 > --- a/arch/sh/drivers/dma/Kconfig > +++ b/arch/sh/drivers/dma/Kconfig > @@ -28,8 +28,9 @@ config SH_DMA_API > config NR_ONCHIP_DMA_CHANNELS > int > depends on SH_DMA > - default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \ > - CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091 > + default "4" if CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7750 || \ > + CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7750S || \ > + CPU_SUBTYPE_SH7091 > default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \ > CPU_SUBTYPE_SH7760 > default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || \ > @@ -37,8 +38,9 @@ config NR_ONCHIP_DMA_CHANNELS > default "6" > help > This allows you to specify the number of channels that the on-chip > - DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the > - SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6. > + DMAC supports. This will be 4 for SH7709/SH7750/SH7751/Sh7750S/SH7091 > + and 8 for the SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, > + default is 6. > > config SH_DMABRG > bool "SH7760 DMABRG support" I will replace "PM" with "processor manual" since the acronym is not necessarily unambiguous, at least I didn't know at first what you were referring to. I checked the manual [1] myself and four DMA channels is correct, thus: Reviewed-by: John Paul Adrian Glaubitz Adrian > [1] https://www.renesas.com/us/en/document/mah/sh7709s-group-hardware-manual?r=1055106 (S. 373) -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913