Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3901405rwd; Sat, 17 Jun 2023 04:21:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ajpI4VieIhEWCcH0EyFauXMVbJi3h34DZKRJxTqJ8aeQ7GaCzJi5pqDhxFmkSM9F97Jxg X-Received: by 2002:a05:6a21:158c:b0:10f:1e5d:83ea with SMTP id nr12-20020a056a21158c00b0010f1e5d83eamr2912481pzb.25.1687000916044; Sat, 17 Jun 2023 04:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687000916; cv=none; d=google.com; s=arc-20160816; b=YIeSli3HYQvkDvN6fvUhUuYXeRr+6kKlVhQqIc0vEPt4qvRmT7IxiYmV/g/DVcYHPH prAGqMLAwKcpzEEMKW5ERvmNfBTy0gibENzjZDnZ/0cCVhMNrz+wnebYMvAtfXlcVao+ gIS8566qaKj+HO3VNefPNKD5/5YdKls5Pkosy9I1n3Co03/PFvetosfv+z4fxr5dNlZg /NvprCVx+fPl7xWwXbeNX7gCNcUKuiKfe1QdKzffKI8Ovc5Citc5QMs7uiF5B1ha88Xa 73gVvOVrYq7Uxld76WuBDyl3DP4y/W64bU3tQeJd2lYYb7TPGYlie9T+gMtRDLDCG4bT IVUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=zU5EWlsIuWZ5e3aXwZcmqP90fK5v7unGMoHNrU6Jhiw=; b=IL+e43KfxuV0VMjqROjVzX5KWLTqyFcMyBqOknYsfh8y1G2VrpmAdd7l4FLBhLayJS k4sWqSC/UsJwY8YrnzoBKOVpghNigzpGaTGSfkzm4mLOKIax4bi2+CaEB2Sksit9lvEb C5/+oo9oAFPFfamfJ4wragOuzYVum0m6jAdS4tJA7vn8YK2XulLNVdnnUc6caS9Qyrx8 fG5ciXgrcTy1qAEgw8mAQNOLglpnndQZnkOvFpG3nIeC6ajqIg1fvOm6sfg9DBeK39oz 0lTwnWei/0qb/8fptOlWQIpxRmEC3sH6rnAucO2XKWCmjv/56anJQlg2JzRPTu25mn3t Yf6Q== 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 q18-20020aa79612000000b0065fe77bf291si234979pfg.276.2023.06.17.04.21.41; Sat, 17 Jun 2023 04:21:56 -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 S235081AbjFQLJ0 convert rfc822-to-8bit (ORCPT + 99 others); Sat, 17 Jun 2023 07:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233026AbjFQLJZ (ORCPT ); Sat, 17 Jun 2023 07:09:25 -0400 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03B9B172A; Sat, 17 Jun 2023 04:09:25 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-be49e41a3d6so1303230276.1; Sat, 17 Jun 2023 04:09:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687000164; x=1689592164; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ma2ohXdKWjjObauQDSrmhCjbdpKidVQlMZ34Z0kZwiE=; b=k5I7pH9qIn0Cll61CKGkRyHSSBkUh5QTqYkz3j4ZqFtI7FEO6JRtSqjFo4fA+yVo4X XFhxJ38O93rCRPrx81mVnQ6kg6HyjlOoSbrRS+Rh+GG/fiXb+N3JY6f1+wfuKdVw1MwV /+zcKP36mpYvBgcZEDNKyRRbRiKlqrCIIA3G7XzXJRM/m/VzCD+AXipbBpMOUii2bfgB ZOijHOKbQyWRyZKNy+E9OXfXHQAq4xN/qdu8DE9U/heH0Qw84cNaK9XbwfcSRWS9CFyE EfenebNTXRgPiMuKuvNGfE2LvuQadel+1wJpTdqNVbMs/GHE4F8IRt7ptMqluYhaF5Ks Ww0g== X-Gm-Message-State: AC+VfDxZRWckjPKXXV5SqwOt3y7iXl2qcN79z53MPPWmTLfqg5g41Zsz axrI+RkZQipNAtZUo4Fy9xhXFvQxmG18zA== X-Received: by 2002:a25:fc10:0:b0:bb1:5628:59ee with SMTP id v16-20020a25fc10000000b00bb1562859eemr1400672ybd.28.1687000164051; Sat, 17 Jun 2023 04:09:24 -0700 (PDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id b13-20020a5b0b4d000000b00bcb4ac1fbc6sm2868049ybr.30.2023.06.17.04.09.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Jun 2023 04:09:23 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-bcad7f7dabcso1479716276.0; Sat, 17 Jun 2023 04:09:23 -0700 (PDT) X-Received: by 2002:a25:2404:0:b0:bc7:f83f:92f4 with SMTP id k4-20020a252404000000b00bc7f83f92f4mr1344930ybk.39.1687000163316; Sat, 17 Jun 2023 04:09:23 -0700 (PDT) MIME-Version: 1.0 References: <20230527164452.64797-1-contact@artur-rojek.eu> <20230527164452.64797-4-contact@artur-rojek.eu> <8205bc2cb9f983914ff6920deed3f54893713ba0.camel@physik.fu-berlin.de> In-Reply-To: From: Geert Uytterhoeven Date: Sat, 17 Jun 2023 13:09:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/3] sh: dma: Correct the number of DMA channels in SH7709 To: John Paul Adrian Glaubitz Cc: Artur Rojek , Yoshinori Sato , Rich Felker , Rafael Ignacio Zurita , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Adrian, On Sat, Jun 17, 2023 at 9:32 AM John Paul Adrian Glaubitz wrote: > On Thu, 2023-06-08 at 12:03 +0200, John Paul Adrian Glaubitz wrote: > > > > > That is actually safer, as the user can override NR_ONCHIP_DMA_CHANNELS > > > > > when configuring his kernel, thus breaking DMA due to an incorrect > > > > > value of SH_DMAC_NR_MD_CH. > > > > > > > > > > Unfortunately we cannot protect against that when using a single DMAC, > > > > > as SH_DMAC_NR_MD_CH can be either 4, 6, or 8. > > > > > > > > > > Perhaps this configuration should be moved from Kconfig to , > > > > > to protect against a user overriding this value? > > > > > > > > Isn't SH_DMAC_NR_MD_CH already hardwired to the SoC being used? > > > > > > It depends on CONFIG_NR_ONCHIP_DMA_CHANNELS, while it > > > should be fixed based on the SoC. > > > > I agree. However, I would be fine with merging this patch set first and fixing > > this particular issue in a follow-up series. > > So, my suggestion is to take this series as-is for 6.5, then get the other issues > you mentioned fixed for 6.6. I think it's already a gain when these issues are > fixed and the kernel boots on the HP Journada 680 again. Sure, I don't want to block the acceptance of this series at all. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds