Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91DF5C433FE for ; Thu, 9 Dec 2021 09:51:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229895AbhLIJyu (ORCPT ); Thu, 9 Dec 2021 04:54:50 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:38873 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbhLIJyt (ORCPT ); Thu, 9 Dec 2021 04:54:49 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MBE3k-1mqMH70IvO-00CmWq; Thu, 09 Dec 2021 10:51:15 +0100 Received: by mail-wm1-f53.google.com with SMTP id y196so3694461wmc.3; Thu, 09 Dec 2021 01:51:14 -0800 (PST) X-Gm-Message-State: AOAM532reFSc8qA5W3dqvnB43755Mk/DPeS1e5lTUURCKBMWZNvhHyh+ Yg9zLHOycfQEpy9mIAF6RdadrrqzKKwTdjCFXfc= X-Google-Smtp-Source: ABdhPJwsuOvM1/O8jYYNdv4ItTLWZ2lls/dbnVjnRNOupRV+K5wwYTXPPlK/3x0ieTJtdga3aOMcxHv7KRNJiPvKmwg= X-Received: by 2002:a1c:23d4:: with SMTP id j203mr5540436wmj.35.1639043474655; Thu, 09 Dec 2021 01:51:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Thu, 9 Dec 2021 10:50:58 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] misc: Add iop driver for Sunplus SP7021 To: Tony Huang Cc: Rob Herring , DTML , Linux Kernel Mailing List , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , gregkh , =?UTF-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sXGKrh2FVTueMp97nJw= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 9, 2021 at 9:58 AM Tony Huang wrote: > > IOP (IO Processor) embedded inside SP7021 which is used as > Processor for I/O control, RTC wake-up and cooperation with > CPU & PMC in power management purpose. > The IOP core is DQ8051, so also named IOP8051, > it supports dedicated JTAG debug pins which share with SP7021. > In standby mode operation, the power spec reach 400uA. > > Signed-off-by: Tony Huang Thanks for the improvements, this again looks better than the previous version. I still have some minor comments, and there are a couple of details I have commented on before that would need to be addressed, but let's focus on the one main issue for now: The driver still doesn't actually /do/ anything: you load the firmware when the driver is loaded, and you shut it down when the driver is removed, but otherwise there is no way to interact with the iop. You had the miscdevice earlier, and you still register that, but there are no file_operations associated with it, so it still doesn't have any effect. In the original version you had a couple of user-side interfaces, for which Greg and I commented that they were not using the correct abstractions, and you still list them in the changelog text as "I/O control, RTC wake-up and cooperation with CPU & PMC in power management". If you want to make any progress with adding the driver, I'd say you should implement at least two of those high-level interfaces that interact with the respective kernel subsystems in order to show that the abstraction works. Arnd