Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2246070rwr; Sat, 6 May 2023 07:22:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ721huFDdx96SG57FA3gIaCHRPEnqdqdoVKzerZeOMMLnG+kAVcmEWDlZ212vr+Pd4Eui4e X-Received: by 2002:a17:903:191:b0:1a9:3c2d:65f2 with SMTP id z17-20020a170903019100b001a93c2d65f2mr5879597plg.43.1683382970436; Sat, 06 May 2023 07:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683382970; cv=none; d=google.com; s=arc-20160816; b=j0LpEP8D7+sJLUQiyCkxUDE/hHhpsLTfBd91ALZNoudx+NLTmSE20UNEryqaMxmYSS V+FGKglkpcM7P7uxoilF4oVSJJylXK042SLN5M3h59e1kSLkHx2hUTTSUDsqw+rQn59J OVeQ0XteAbj/jVLaCs2n22swJux07vEbJSv5fy08scaxHe3Tv6DsB0vV1bp4UvdZvNSZ iYoKd79fxdGzZqlyuWb+dThklUXM2lHjY4NNmRZZAN6zE59XUdQGnlvVCbM49t03YNV9 EjiWPrt/gO77JB2g3IGT1YesfgNnm+9WErFwwbAsTYrQLgfhR0aJQ40KzUD8wcjq6vZv PcjQ== 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 :message-id:date:subject:cc:to:from; bh=C5CdW+gHDq38jAvigKT49K28B83XpHUSaKwL3pTbXFg=; b=usvnMZ6d9cfUsDOrr91MXMzNTAVpybjb14/L2bWR0QFlgk5x9AOl+zcnSTIMO5C3m3 7R7ZiAhadw71oVZBRJ/P1tF+A/j4kzk8DNoh8rDDeAInae083iwf3YHhqqXrEu0zi+HH NsmTxFzIHZwQwtHlpyE96DaAv5khx4LtgmjDqRJJbMyjN82pHZ4238FtwUypWoxpey4P Rk97vQeyboCBLA8It9Hndl+DUI2LcIZgkZbUN1MdJdIhNbtjFm1reWzeidSYzK3Nf5lR ZrnAmI3DoXOMeI8TLRUtmnQmSGoSCyRzdkPpFJm3OQSzwjDwcnfIFvwFbqT9YOrWeqf9 x9JQ== 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 iw19-20020a170903045300b001a9b4bda723si3758388plb.421.2023.05.06.07.22.35; Sat, 06 May 2023 07:22:50 -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 S232854AbjEFORu (ORCPT + 99 others); Sat, 6 May 2023 10:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231892AbjEFORs (ORCPT ); Sat, 6 May 2023 10:17:48 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 184291992E; Sat, 6 May 2023 07:17:37 -0700 (PDT) Received: (Authenticated sender: contact@artur-rojek.eu) by mail.gandi.net (Postfix) with ESMTPSA id BAD5E20007; Sat, 6 May 2023 14:17:34 +0000 (UTC) From: Artur Rojek To: Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz Cc: Rafael Ignacio Zurita , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Artur Rojek Subject: [PATCH 0/2] SH7709 DMA fixes Date: Sat, 6 May 2023 16:17:01 +0200 Message-Id: <20230506141703.65605-1-contact@artur-rojek.eu> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR 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 Hi, this series provides fixes to the SH7709 DMA controller, allowing the HP Jornada 680 palmtop to boot Linux again. To my knowledge, this is the first time in ~14 years someone tests upstream Linux on this device. And with the included patches applied, I'm happy to announce that it still works like a charm. PS. What might be of interest to the sh-linux community, there's further work towards this platform in my pipeline. E.g. I've added support for the HD6446x PCMCIA controller, allowing Jornada 680 to use Ethernet and Wi-Fi cards. However, what prevents proper upstream of such a driver is the crude and antiquated code of the underlying platform base. For example, the HD6446x bridge (`cchips/hd6446x/hd64461.c`) lacks the concept of clocks, preventing the PCMCIA driver from hardware agnostic clock gating. So what I'm looking into next is the cleanup of existing platform code base, bringing it up-to-date with modern kernel APIs. Hopefully it's not trying to bite more than I can chew, but eventually ending up with Device Tree support would be really nice :) Artur Rojek (2): sh: dma: fix `dmaor_read_reg`/`dmaor_write_reg` macros sh: dma: Correct the number of DMA channels in SH7709 arch/sh/drivers/dma/Kconfig | 10 ++++++---- arch/sh/drivers/dma/dma-sh.c | 7 +++++-- 2 files changed, 11 insertions(+), 6 deletions(-) -- 2.40.1