From patchwork Sat May 6 14:17:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Rojek X-Patchwork-Id: 8998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1084841vqo; Sat, 6 May 2023 07:24:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IsQPIngC13fRCCsqj2Byqh0TvlgS/C5qmfzJ8SSs5oxW5On0Ms5CbBg93TRzYUn7NxiyZ X-Received: by 2002:a17:902:d509:b0:1a6:51a6:ca76 with SMTP id b9-20020a170902d50900b001a651a6ca76mr6131651plg.11.1683383056421; Sat, 06 May 2023 07:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683383056; cv=none; d=google.com; s=arc-20160816; b=kgccsI5hbw3DCfnF+5NVWXbKzEtbZoyggTnOao3rkGP0YBTY4CrjWlouKBp2/MNNf8 7/yqrN0wgvcp2fBeQkZnVRmJbm+9T5qO0kqEE1suJ/g+wBwxPfjH2QVjzSZz9LoGdkoF EmTjZkkz5F/42zPvp049i3JVzqJWNbOOJQmVKnGlrZxOZa3zJ3NYGKn7dDGP5vQQs+V3 wqSC6tI4wRXYrYZG5mSXNXA0xYNvQHU/qHEaoIFUF096cX7tZ/19ZSqI3f83hpx3ndUq 4SL86y4wCvDvbCgkVWnVZnXh5djqmBoh4mH40DF9bWPJ/ie6gxEGU9GGWw3MmNDWu3zs bw5A== 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 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.24.00; Sat, 06 May 2023 07:24:16 -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 S232772AbjEFORv (ORCPT + 99 others); Sat, 6 May 2023 10:17:51 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765155072018797018?= X-GMAIL-MSGID: =?utf-8?q?1765155072018797018?= 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(-)