From: balbi@ti.com (Felipe Balbi)
To: linux-arm-kernel@lists.infradead.org
Subject: [V4 PATCH 18/26] usb: phy: mv_usb2_phy: add externel chip support
Date: Wed, 23 Jan 2013 13:47:25 +0200 [thread overview]
Message-ID: <20130123114725.GH29258@arwen.pp.htv.fi> (raw)
In-Reply-To: <CADApbeghH7EdQaz7PP-pPK4huhxJ0OrLDEGTHBg4s0+3SQbRoA@mail.gmail.com>
Hi,
On Tue, Jan 22, 2013 at 10:51:32AM +0800, Chao Xie wrote:
> On Mon, Jan 21, 2013 at 11:51 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Mon, Jan 21, 2013 at 05:07:36AM -0500, Chao Xie wrote:
> >> + mv_phy->extern_chip.head = devm_kzalloc(&pdev->dev,
> >> + sizeof(*mv_phy->extern_chip.head),
> >> + GFP_KERNEL);
> >> + if (mv_phy->extern_chip.head == NULL)
> >> + return -ENOMEM;
> >> + ATOMIC_INIT_NOTIFIER_HEAD(mv_phy->extern_chip.head);
> >
> > Why do you need to allocate an atomic notifier list head as an entirely
> > separate data structure?
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> > the body of a message to majordomo at vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> Th reason is that the original code seperate the extern_chip and phy
> support. So it depends
> on the ->head to detect whether extern_chip is initialized or not.
> Now it is combined with phy, the ->phy pointer can do the job.
does that need to be dynamically allocated ?
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130123/36addcdc/attachment.sig>
next prev parent reply other threads:[~2013-01-23 11:47 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <xiechao.mail@gmail.com>
2013-01-21 10:07 ` [V4 PATCH 00/26] mv-usb fix and enhancement patches Chao Xie
2013-01-21 10:07 ` [V4 PATCH 01/26] usb: gadget: mv_udc: use udc_start and udc_stop functions Chao Xie
2013-01-21 10:07 ` [V4 PATCH 02/26] usb: gadget: mv_udc: use devm_xxx for probe Chao Xie
2013-01-21 10:07 ` [V4 PATCH 03/26] usb: gadget: mv_udc: fix the warning of mv_udc_remove Chao Xie
2013-01-21 10:07 ` [V4 PATCH 04/26] usb: otg: mv_otg: use devm_xxx for probe Chao Xie
2013-01-21 10:07 ` [V4 PATCH 05/26] usb: host: ehci-mv: remove unused variable Chao Xie
2013-01-21 10:07 ` [V4 PATCH 06/26] usb: gadget: mv_udc: fix the value of tranceiver Chao Xie
2013-01-21 10:07 ` [V4 PATCH 07/26] usb: gadget: mv_udc: make mv_udc depends on ARCH_MMP or ARCH_PXA Chao Xie
2013-01-21 10:07 ` [V4 PATCH 08/26] usb: phy: mv_usb2: add PHY driver for marvell usb2 controller Chao Xie
2013-01-21 10:07 ` [V4 PATCH 09/26] usb: gadget: mv_udc: use PHY driver for udc Chao Xie
2013-01-21 10:07 ` [V4 PATCH 10/26] usb: ehci: ehci-mv: use PHY driver for ehci Chao Xie
2013-01-21 10:07 ` [V4 PATCH 11/26] usb: otg: mv_otg: use PHY driver for otg Chao Xie
2013-01-21 10:07 ` [V4 PATCH 12/26] arm: mmp2: change the defintion of usb devices Chao Xie
2013-01-21 10:07 ` [V4 PATCH 13/26] arm: pxa910: " Chao Xie
2013-01-21 10:07 ` [V4 PATCH 14/26] arm: brownstone: add usb support for the board Chao Xie
2013-01-21 10:07 ` [V4 PATCH 15/26] arm: ttc_dkb: add usb support Chao Xie
2013-01-21 10:07 ` [V4 PATCH 16/26] arm: mmp: remove the usb phy setting Chao Xie
2013-01-21 10:07 ` [V4 PATCH 17/26] arm: mmp: remove usb devices from pxa168 Chao Xie
2013-01-21 10:07 ` [V4 PATCH 18/26] usb: phy: mv_usb2_phy: add externel chip support Chao Xie
2013-01-21 15:51 ` Russell King - ARM Linux
2013-01-22 2:51 ` Chao Xie
2013-01-23 11:47 ` Felipe Balbi [this message]
2013-01-24 1:33 ` Chao Xie
2013-01-21 10:07 ` [V4 PATCH 19/26] usb: gadget: mv_udc: add extern " Chao Xie
2013-01-21 10:07 ` [V4 PATCH 20/26] usb: ehci: ehci-mv: " Chao Xie
2013-01-21 10:07 ` [V4 PATCH 21/26] usb: otg: mv_otg: " Chao Xie
2013-01-21 10:07 ` [V4 PATCH 22/26] arm: mmp: add extern chip support for brownstone Chao Xie
2013-01-21 10:07 ` [V4 PATCH 23/26] arm: mmp: add extern chip support for ttc_dkb Chao Xie
2013-01-21 10:07 ` [V4 PATCH 24/26] usb: gadget: mv_udc: add device tree support Chao Xie
2013-01-21 10:07 ` [V4 PATCH 25/26] usb: otg: mv_otg: " Chao Xie
2013-01-21 10:07 ` [V4 PATCH 26/26] usb: ehci: ehci-mv: " Chao Xie
2013-01-23 11:47 ` [V4 PATCH 00/26] mv-usb fix and enhancement patches Felipe Balbi
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=20130123114725.GH29258@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).