From: "Tony Huang 黃懷厚" <tony.huang@sunplus.com>
To: Arnd Bergmann <arnd@arndb.de>, Tony Huang <tonyhuang.sunplus@gmail.com>
Cc: "Rob Herring" <robh+dt@kernel.org>,
DTML <devicetree@vger.kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
"Derek Kiernan" <derek.kiernan@xilinx.com>,
"Dragan Cvetic" <dragan.cvetic@xilinx.com>,
gregkh <gregkh@linuxfoundation.org>,
"Wells Lu 呂芳騰" <wells.lu@sunplus.com>
Subject: RE: [PATCH v3 2/2] misc: Add iop driver for Sunplus SP7021
Date: Fri, 17 Dec 2021 15:16:53 +0000 [thread overview]
Message-ID: <5c01390c485a44b6913dcb42e3677ed1@sphcmbx02.sunplus.com.tw> (raw)
In-Reply-To: <CAK8P3a2UGr6ZbHk6G=wh5XG_EGdJxGf6SfyN1sTb4aaUgiK8Lw@mail.gmail.com>
Dear Arnd:
> On Thu, Dec 9, 2021 at 9:58 AM Tony Huang <tonyhuang.sunplus@gmail.com>
> 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 <tonyhuang.sunplus@gmail.com>
>
> 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.
>
Q:"with respective kernel subsystems in order to show that the abstraction works."
May I ask you about repective kernel subsystem.
If I use the file_operation method
Provide user can read and write IOP(8051)'s register.
Is this a repective kernel subsystem?
if not
There are other driver code can give me reference
next prev parent reply other threads:[~2021-12-17 15:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 8:58 [PATCH v3 0/2] " Tony Huang
2021-12-09 8:58 ` [PATCH v3 1/2] dt-binding: misc: Add iop yaml file " Tony Huang
2021-12-14 19:32 ` Rob Herring
2021-12-09 8:58 ` [PATCH v3 2/2] misc: Add iop driver " Tony Huang
2021-12-09 9:50 ` Arnd Bergmann
2021-12-10 1:30 ` Tony Huang 黃懷厚
2021-12-17 15:16 ` Tony Huang 黃懷厚 [this message]
2021-12-17 15:31 ` gregkh
2021-12-18 12:53 ` Tony Huang 黃懷厚
2021-12-18 13:05 ` gregkh
2021-12-18 17:30 ` Tony Huang 黃懷厚
2021-12-17 16:09 ` Arnd Bergmann
2021-12-09 10:10 ` Greg KH
2021-12-10 1:19 ` Tony Huang 黃懷厚
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c01390c485a44b6913dcb42e3677ed1@sphcmbx02.sunplus.com.tw \
--to=tony.huang@sunplus.com \
--cc=arnd@arndb.de \
--cc=derek.kiernan@xilinx.com \
--cc=devicetree@vger.kernel.org \
--cc=dragan.cvetic@xilinx.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=tonyhuang.sunplus@gmail.com \
--cc=wells.lu@sunplus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®