From: Greg KH <gregkh@linuxfoundation.org>
To: Rob Herring <robherring2@gmail.com>
Cc: Satish Patel <satish.patel@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
linux-omap <linux-omap@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Rob Landley <rob@landley.net>, Tony Lindgren <tony@atomide.com>,
Grant Likely <grant.likely@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH v3 1/5] sc_phy:SmartCard(SC) PHY interface to SC controller
Date: Thu, 29 May 2014 08:52:05 -0700 [thread overview]
Message-ID: <20140529155205.GB32214@kroah.com> (raw)
In-Reply-To: <CAL_Jsq+E7a=wh_yzQyaSEVAwfa34BYZ4DxvLOfJGFVDsf1dZ+A@mail.gmail.com>
On Thu, May 29, 2014 at 08:47:31AM -0500, Rob Herring wrote:
> On Thu, May 29, 2014 at 3:34 AM, Satish Patel <satish.patel@ti.com> wrote:
> >
> >
> > On 5/29/2014 12:23 AM, Greg KH wrote:
> >>
> >> On Wed, May 28, 2014 at 02:27:13PM +0530, Satish Patel wrote:
> >>>
> >>> SmartCard controller uses this interface to communicate with
> >>> SmartCard via PHY
> >>>
> >>> Some SmartCard PHY has multiple slots for cards.
> >>> This inerface also enables controller to communicate
> >>> with one or more SmartCard connected over phy.
> >>>
> >>> interface structure includes following APIs
> >>> - set/get config
> >>> - activate/deactivate smart card
> >>> - warm reset
> >>> - register_notify (for card insert/remove/overheat)
> >>> - unregister_notify
> >>>
> >>> Signed-off-by: Satish Patel <satish.patel@ti.com>
> >>> ---
> >>> Documentation/sc_phy.txt | 171
> >>> ++++++++++++++++++++++++++++++++++++++++++++++
> >>> include/linux/sc_phy.h | 136 ++++++++++++++++++++++++++++++++++++
> >>> 2 files changed, 307 insertions(+)
> >>> create mode 100644 Documentation/sc_phy.txt
> >>> create mode 100644 include/linux/sc_phy.h
> >>
> >>
> >> These are .h files, but where is the "api" functions that use
> >> these structures defined at?
> >>
> > This is like template/wrappers, smart card phy driver will write API
> > functions. And smartcard controller will call these functions.
> > With proposed approach, smartcard controller can communicate with any smart
> > card phy (TI/NxP) without change in code. Using DT entry smartcard and PHY
> > will gets connected with each other.
> > Refer diagram given @Documentation/sc_phy.txt.
> >
> >
> >> confused,
>
> I believe the api Greg is wondering about is the notifier which as I
> commented is not a good design.
That, and the fact that if this really is an "api", there are no .c
files for it like a "normal" api is in the kernel.
> There is now a phy subsystem. I don't know if it has what you need,
> but you should look at it to determine if it will work or could be
> extended to work.
I agree. Satish, what's wrong with our existing phy layer?
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: gregkh@linuxfoundation.org (Greg KH)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/5] sc_phy:SmartCard(SC) PHY interface to SC controller
Date: Thu, 29 May 2014 08:52:05 -0700 [thread overview]
Message-ID: <20140529155205.GB32214@kroah.com> (raw)
In-Reply-To: <CAL_Jsq+E7a=wh_yzQyaSEVAwfa34BYZ4DxvLOfJGFVDsf1dZ+A@mail.gmail.com>
On Thu, May 29, 2014 at 08:47:31AM -0500, Rob Herring wrote:
> On Thu, May 29, 2014 at 3:34 AM, Satish Patel <satish.patel@ti.com> wrote:
> >
> >
> > On 5/29/2014 12:23 AM, Greg KH wrote:
> >>
> >> On Wed, May 28, 2014 at 02:27:13PM +0530, Satish Patel wrote:
> >>>
> >>> SmartCard controller uses this interface to communicate with
> >>> SmartCard via PHY
> >>>
> >>> Some SmartCard PHY has multiple slots for cards.
> >>> This inerface also enables controller to communicate
> >>> with one or more SmartCard connected over phy.
> >>>
> >>> interface structure includes following APIs
> >>> - set/get config
> >>> - activate/deactivate smart card
> >>> - warm reset
> >>> - register_notify (for card insert/remove/overheat)
> >>> - unregister_notify
> >>>
> >>> Signed-off-by: Satish Patel <satish.patel@ti.com>
> >>> ---
> >>> Documentation/sc_phy.txt | 171
> >>> ++++++++++++++++++++++++++++++++++++++++++++++
> >>> include/linux/sc_phy.h | 136 ++++++++++++++++++++++++++++++++++++
> >>> 2 files changed, 307 insertions(+)
> >>> create mode 100644 Documentation/sc_phy.txt
> >>> create mode 100644 include/linux/sc_phy.h
> >>
> >>
> >> These are .h files, but where is the "api" functions that use
> >> these structures defined at?
> >>
> > This is like template/wrappers, smart card phy driver will write API
> > functions. And smartcard controller will call these functions.
> > With proposed approach, smartcard controller can communicate with any smart
> > card phy (TI/NxP) without change in code. Using DT entry smartcard and PHY
> > will gets connected with each other.
> > Refer diagram given @Documentation/sc_phy.txt.
> >
> >
> >> confused,
>
> I believe the api Greg is wondering about is the notifier which as I
> commented is not a good design.
That, and the fact that if this really is an "api", there are no .c
files for it like a "normal" api is in the kernel.
> There is now a phy subsystem. I don't know if it has what you need,
> but you should look at it to determine if it will work or could be
> extended to work.
I agree. Satish, what's wrong with our existing phy layer?
greg k-h
next prev parent reply other threads:[~2014-05-29 15:48 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-28 8:57 [PATCH v3 0/5] Smart Card(SC) interface, TI USIM & NxP SC phy driver Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` [PATCH v3 1/5] sc_phy:SmartCard(SC) PHY interface to SC controller Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 18:44 ` Greg KH
2014-05-28 18:44 ` Greg KH
[not found] ` <20140528184408.GC30031-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2014-05-29 8:56 ` Satish Patel
2014-05-29 8:56 ` Satish Patel
2014-05-29 8:56 ` Satish Patel
2014-05-29 15:51 ` Greg KH
2014-05-29 15:51 ` Greg KH
2014-05-30 5:05 ` Satish Patel
2014-05-30 5:05 ` Satish Patel
2014-05-30 5:05 ` Satish Patel
[not found] ` <1401267437-22489-2-git-send-email-satish.patel-l0cyMroinI0@public.gmane.org>
2014-05-28 18:53 ` Greg KH
2014-05-28 18:53 ` Greg KH
2014-05-28 18:53 ` Greg KH
2014-05-29 8:34 ` Satish Patel
2014-05-29 8:34 ` Satish Patel
2014-05-29 8:34 ` Satish Patel
[not found] ` <5386F0FE.7040003-l0cyMroinI0@public.gmane.org>
2014-05-29 13:47 ` Rob Herring
2014-05-29 13:47 ` Rob Herring
2014-05-29 13:47 ` Rob Herring
2014-05-29 15:52 ` Greg KH [this message]
2014-05-29 15:52 ` Greg KH
[not found] ` <CAL_Jsq+E7a=wh_yzQyaSEVAwfa34BYZ4DxvLOfJGFVDsf1dZ+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-30 3:51 ` Satish Patel
2014-05-30 3:51 ` Satish Patel
2014-05-30 3:51 ` Satish Patel
2014-05-28 8:57 ` [PATCH v3 2/5] misc: tda8026: Add NXP TDA8026 PHY driver Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` Satish Patel
[not found] ` <1401267437-22489-3-git-send-email-satish.patel-l0cyMroinI0@public.gmane.org>
2014-05-28 18:44 ` Greg KH
2014-05-28 18:44 ` Greg KH
2014-05-28 18:44 ` Greg KH
2014-05-29 8:37 ` Satish Patel
2014-05-29 8:37 ` Satish Patel
2014-05-29 8:37 ` Satish Patel
2014-05-29 15:52 ` Greg KH
2014-05-29 15:52 ` Greg KH
2014-05-28 8:57 ` [PATCH v3 3/5] char: ti-usim: Add driver for USIM module on AM43xx Satish Patel
2014-05-28 8:57 ` Satish Patel
[not found] ` <1401267437-22489-4-git-send-email-satish.patel-l0cyMroinI0@public.gmane.org>
2014-05-28 17:56 ` Rob Herring
2014-05-28 17:56 ` Rob Herring
[not found] ` <CAL_JsqKs=a8GRJRmNE-oxU4imHqnb5szv+Km-wv3KuN0d6Bxkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-29 10:05 ` Satish Patel
2014-05-29 10:05 ` Satish Patel
2014-05-29 15:53 ` Greg Kroah-Hartman
2014-05-29 15:53 ` Greg Kroah-Hartman
[not found] ` <20140529155349.GD32214-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2014-05-30 4:08 ` Satish Patel
2014-05-30 4:08 ` Satish Patel
2014-05-30 4:08 ` Satish Patel
2014-05-28 8:57 ` [PATCH v3 4/5] ARM: dts: AM43xx: DT entries added for ti-usim Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` [PATCH v3 5/5] ARM: dts: AM43xx-epos-evm: DT entries for ti-usim and phy Satish Patel
2014-05-28 8:57 ` Satish Patel
2014-05-28 8:57 ` Satish Patel
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=20140529155205.GB32214@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=rob@landley.net \
--cc=robh+dt@kernel.org \
--cc=robherring2@gmail.com \
--cc=satish.patel@ti.com \
--cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.