All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH v3 11/14] dm: eth: Add support for aliases
Date: Tue, 17 Feb 2015 22:02:21 -0700	[thread overview]
Message-ID: <CAPnjgZ1VaCctFHDZH1V5D=NYXxDM9y0sQhLmg_UZEEmBeBat9g@mail.gmail.com> (raw)
In-Reply-To: <CANr=Z=at4_dL5t32hjd6qtHmpd4ihDfamWPRo0S_KR8oTPPnOg@mail.gmail.com>

Hi Joe,

On 16 February 2015 at 22:04, Joe Hershberger <joe.hershberger@gmail.com> wrote:
>
>
> On Sun, Feb 15, 2015 at 9:50 AM, Simon Glass <sjg@chromium.org> wrote:
>>
>> Hi Joe,
>>
>> On 10 February 2015 at 18:30, Joe Hershberger <joe.hershberger@ni.com>
>> wrote:
>> > Allow network devices to be referred to as "eth0" instead of
>> > "eth at 12345678" when specified in ethact.
>> >
>> > Add tests to verify this behavior.
>> >
>> > Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
>> >
>> > ---
>> >
>> > Changes in v3:
>> > -Added support for aliases
>> >
>> > Changes in v2: None
>> >
>> >  include/configs/sandbox.h |  4 ++--
>> >  include/fdtdec.h          |  1 +
>> >  include/net.h             |  5 +++++
>> >  lib/fdtdec.c              |  1 +
>> >  net/eth.c                 | 53
>> > +++++++++++++++++++++++++++++++++++++++--------
>> >  test/dm/eth.c             | 25 ++++++++++++++++++++++
>> >  test/dm/test.dts          | 10 +++++----
>> >  7 files changed, 84 insertions(+), 15 deletions(-)
>> >
>> > diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
>> > index fdba1c8..9df5f74 100644
>> > --- a/include/configs/sandbox.h
>> > +++ b/include/configs/sandbox.h
>> > @@ -187,7 +187,7 @@
>> >                                         "stderr=serial,lcd\0" \
>> >                                         "ethaddr=00:00:11:22:33:44\0" \
>> >                                         "eth1addr=00:00:11:22:33:45\0" \
>> > -                                       "eth2addr=00:00:11:22:33:46\0" \
>> > +                                       "eth5addr=00:00:11:22:33:46\0" \
>> >                                         "ipaddr=1.2.3.4\0"
>> >  #else
>> >
>> > @@ -196,7 +196,7 @@
>> >                                         "stderr=serial,lcd\0" \
>> >                                         "ethaddr=00:00:11:22:33:44\0" \
>> >                                         "eth1addr=00:00:11:22:33:45\0" \
>> > -                                       "eth2addr=00:00:11:22:33:46\0" \
>> > +                                       "eth5addr=00:00:11:22:33:46\0" \
>> >                                         "ipaddr=1.2.3.4\0"
>> >  #endif
>> >
>> > diff --git a/include/fdtdec.h b/include/fdtdec.h
>> > index 231eed7..e945baa 100644
>> > --- a/include/fdtdec.h
>> > +++ b/include/fdtdec.h
>> > @@ -167,6 +167,7 @@ enum fdt_compat_id {
>> >         COMPAT_INTEL_GMA,               /* Intel Graphics Media
>> > Accelerator */
>> >         COMPAT_AMS_AS3722,              /* AMS AS3722 PMIC */
>> >         COMPAT_INTEL_ICH_SPI,           /* Intel ICH7/9 SPI controller
>> > */
>> > +       COMPAT_ETHERNET,                /* Ethernet devices */
>>
>> SANDBOX_ETHERNET
>
> This is not limited to sandbox.  This is needed for all Ethernet MACs.  Is
> there some other way that I should be identifying with all devices in the
> device tree of a certain class?

Not that I know of. But each Ethernet driver would need its own
compatible string, since otherwise driver model won't use the right
driver.

>
>> >
>> >         COMPAT_COUNT,
>> >  };
>> > diff --git a/include/net.h b/include/net.h
>> > index 11471bd..4e98850 100644
>> > --- a/include/net.h
>> > +++ b/include/net.h
>> > @@ -38,6 +38,8 @@
>> >
>> >  #define PKTALIGN       ARCH_DMA_MINALIGN
>> >
>> > +#define ETH_MAX_DEVS   32
>> > +
>> >  /* IPv4 addresses are always 32 bits in size */
>> >  typedef __be32         IPaddr_t;
>> >
>> > @@ -79,6 +81,8 @@ enum eth_state_t {
>> >  };
>> >
>> >  #ifdef CONFIG_DM_ETH
>> > +#define ETH_ALIAS_ROOT "eth"
>> > +
>> >  struct eth_pdata {
>> >         phys_addr_t iobase;
>> >         unsigned char enetaddr[6];
>> > @@ -96,6 +100,7 @@ struct eth_ops {
>> >  };
>> >
>> >  struct udevice *eth_get_dev(void); /* get the current device */
>> > +struct udevice *eth_get_dev_by_name(const char *devname);
>> >  unsigned char *eth_get_ethaddr(void); /* get the current device MAC */
>> >  int eth_init_state_only(bd_t *bis); /* Set active state */
>> >  void eth_halt_state_only(void); /* Set passive state */
>> > diff --git a/lib/fdtdec.c b/lib/fdtdec.c
>> > index 5bf8f29..33b0a53 100644
>> > --- a/lib/fdtdec.c
>> > +++ b/lib/fdtdec.c
>> > @@ -75,6 +75,7 @@ static const char * const compat_names[COMPAT_COUNT] =
>> > {
>> >         COMPAT(INTEL_GMA, "intel,gma"),
>> >         COMPAT(AMS_AS3722, "ams,as3722"),
>> >         COMPAT(INTEL_ICH_SPI, "intel,ich-spi"),
>> > +       COMPAT(ETHERNET, "eth"),
>>
>> sandbox,eth
>
> Again, this is used to identify all Ethernet controllers. Perhaps
> fdtdec_find_aliases_for_id() should not be limiting the alias search to
> those that have a certain "compatible" string?

I think you want 'sandbox,ethernet' here, or similar, but you probably
don't want to use that fdtdec function ultimately. Driver model should
do it all for you.

>
>
>> >  };
>> >
>> >  const char *fdtdec_get_compatible(enum fdt_compat_id id)
>> > diff --git a/net/eth.c b/net/eth.c
>> > index e84b948..762effe 100644
>> > --- a/net/eth.c
>> > +++ b/net/eth.c
>> > @@ -10,11 +10,14 @@
>> >  #include <command.h>
>> >  #include <dm.h>
>> >  #include <dm/device-internal.h>
>> > +#include <fdtdec.h>
>> >  #include <net.h>
>> >  #include <miiphy.h>
>> >  #include <phy.h>
>> >  #include <asm/errno.h>
>> >
>> > +DECLARE_GLOBAL_DATA_PTR;
>> > +
>> >  void eth_parse_enetaddr(const char *addr, uchar *enetaddr)
>> >  {
>> >         char *end;
>> > @@ -121,6 +124,39 @@ static void eth_set_dev(struct udevice *dev)
>> >         uc_priv->current = dev;
>> >  }
>> >
>> > +/*
>> > + * Find the udevice that either has the name passed in as devname or
>> > has an
>> > + * alias named devname.
>> > + */
>> > +struct udevice *eth_get_dev_by_name(const char *devname)
>> > +{
>> > +       int node_list[ETH_MAX_DEVS];
>> > +       int count;
>> > +       int seq;
>> > +       char *endp = NULL;
>> > +       const char *true_name = devname;
>> > +       struct udevice *it;
>> > +       struct uclass *uc;
>> > +
>> > +       count = fdtdec_find_aliases_for_id(gd->fdt_blob, ETH_ALIAS_ROOT,
>> > +                                          COMPAT_ETHERNET, node_list,
>> > +                                          ETH_MAX_DEVS);
>> > +
>> > +       seq = simple_strtoul(devname + strlen(ETH_ALIAS_ROOT), &endp,
>> > 10);
>> > +
>> > +       if (endp > devname + strlen(ETH_ALIAS_ROOT) && count > seq &&
>> > +           node_list[seq])
>> > +               true_name = fdt_get_name(gd->fdt_blob, node_list[seq],
>> > NULL);
>> > +
>> > +       uclass_get(UCLASS_ETH, &uc);
>> > +       uclass_foreach_dev(it, uc) {
>> > +               if (strcmp(it->name, true_name) == 0 || it->seq == seq)
>> > +                       return it;
>> > +       }
>>
>> Is it possible for eth_get_dev_by_name() to just look up the name
>> provided?
>>
>> You already have this:
>>
>> uclass_foreach_dev(it, uc) {
>> if (strcmp(it->name, true_name) == 0 || it->seq == seq)
>> return it;
>> }
>>
>> It feels like you just need to through through the devices in the
>> uclass and strcmp(dev->name, find_name).
>
> That works fine for looking up the exact name, but that's not the point of
> this patch.  Such code was already there and you can see it below.

OK

>
>> I guess I am suffering because I don't understand what you are trying
>> to do, so am not sure if there is an easier way with driver model. We
>> really should not go looking in the device tree in
>> eth_get_dev_by_name()...driver is responsible for parsing that.
>
> Perhaps this is a limitation of fdtdec_find_aliases_for_id().  I need to be
> able to look up the device based on its alias.  It doesn't seem to me that
> I'm digging around in the device tree at random places that should be done
> by the driver.  I'm simply wanting to ask the device tree what the alias
> that the user passed in is pointing at.  Potentially is it not an alias, but
> a full name.  Either way, I want to return the udevice.

If you want to know the device's number, use dev->req_seq. This will
hold the alias number. If it is -1 then the device is not mentioned in
/aliases in the device tree.

But please see if you can use the existing driver model features to
find devices, their numbers, etc.

>
>
>> > +
>> > +       return NULL;
>> > +}
>> > +
>> >  unsigned char *eth_get_ethaddr(void)
>> >  {
>> >         struct eth_pdata *pdata;
>> > @@ -396,6 +432,7 @@ UCLASS_DRIVER(eth) = {
>> >         .init           = eth_uclass_init,
>> >         .priv_auto_alloc_size = sizeof(struct eth_uclass_priv),
>> >         .per_device_auto_alloc_size = sizeof(struct eth_device_priv),
>> > +       .flags          = DM_UC_FLAG_SEQ_ALIAS,
>> >  };
>> >  #endif
>> >
>> > @@ -428,6 +465,11 @@ static void eth_set_current_to_next(void)
>> >         eth_current = eth_current->next;
>> >  }
>> >
>> > +static void eth_set_dev(struct eth_device *dev)
>> > +{
>> > +       eth_current = dev;
>> > +}
>> > +
>> >  struct eth_device *eth_get_dev_by_name(const char *devname)
>> >  {
>> >         struct eth_device *dev, *target_dev;
>> > @@ -844,7 +886,6 @@ void eth_set_current(void)
>> >  {
>> >         static char *act;
>> >         static int  env_changed_id;
>> > -       void *old_current;
>> >         int     env_id;
>> >
>> >         env_id = get_env_id();
>> > @@ -852,14 +893,8 @@ void eth_set_current(void)
>> >                 act = getenv("ethact");
>> >                 env_changed_id = env_id;
>> >         }
>> > -       if (act != NULL) {
>> > -               old_current = eth_get_dev();
>> > -               do {
>> > -                       if (strcmp(eth_get_name(), act) == 0)
>> > -                               return;
>> > -                       eth_set_current_to_next();
>> > -               } while (old_current != eth_get_dev());
>> > -       }
>
> This is the simple compare that is being replaced.
>
>> > +       if (act != NULL)
>> > +               eth_set_dev(eth_get_dev_by_name(act));
>> >
>> >         eth_current_changed();
>> >  }
>> > diff --git a/test/dm/eth.c b/test/dm/eth.c
>> > index 2b29fa2..c0a8ab5 100644
>> > --- a/test/dm/eth.c
>> > +++ b/test/dm/eth.c
>> > @@ -37,3 +37,28 @@ static int dm_test_eth(struct dm_test_state *dms)
>> >  }
>> >
>> >  DM_TEST(dm_test_eth, DM_TESTF_SCAN_FDT);
>> > +
>> > +static int dm_test_eth_alias(struct dm_test_state *dms)
>> > +{
>> > +       NetPingIP = string_to_ip("1.1.2.2");
>> > +       setenv("ethact", "eth0");
>> > +       ut_assertok(NetLoop(PING));
>> > +       ut_asserteq_str("eth at 10002000", getenv("ethact"));
>> > +
>> > +       setenv("ethact", "eth1");
>> > +       ut_assertok(NetLoop(PING));
>> > +       ut_asserteq_str("eth at 10004000", getenv("ethact"));
>> > +
>> > +       /* Expected to fail since eth2 is not defined in the device tree
>> > */
>> > +       setenv("ethact", "eth2");
>> > +       ut_asserteq(-1, NetLoop(PING));
>> > +       ut_asserteq_ptr(NULL, getenv("ethact"));
>> > +
>> > +       setenv("ethact", "eth5");
>> > +       ut_assertok(NetLoop(PING));
>> > +       ut_asserteq_str("eth at 10003000", getenv("ethact"));
>> > +
>> > +       return 0;
>> > +}
>> > +
>> > +DM_TEST(dm_test_eth_alias, DM_TESTF_SCAN_FDT);
>> > diff --git a/test/dm/test.dts b/test/dm/test.dts
>> > index 2f68cdf..c5008c3 100644
>> > --- a/test/dm/test.dts
>> > +++ b/test/dm/test.dts
>> > @@ -17,6 +17,8 @@
>> >                 testfdt3 = "/b-test";
>> >                 testfdt5 = "/some-bus/c-test at 5";
>> >                 testfdt8 = "/a-test";
>> > +               eth0 = "/eth at 10002000";
>> > +               eth5 = &eth_5;
>> >         };
>> >
>> >         uart0: serial {
>> > @@ -150,19 +152,19 @@
>> >         };
>> >
>> >         eth at 10002000 {
>> > -               compatible = "sandbox,eth";
>> > +               compatible = "sandbox,eth", "eth";
>> >                 reg = <0x10002000 0x1000>;
>> >                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
>> >         };
>> >
>> > -       eth at 10003000 {
>> > -               compatible = "sandbox,eth";
>> > +       eth_5: eth at 10003000 {
>> > +               compatible = "sandbox,eth", "eth";
>> >                 reg = <0x10003000 0x1000>;
>> >                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
>> >         };
>> >
>> >         eth at 10004000 {
>> > -               compatible = "sandbox,eth";
>> > +               compatible = "sandbox,eth", "eth";
>> >                 reg = <0x10004000 0x1000>;
>> >                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
>> >         };
>> > --
>> > 1.7.11.5

Regards,
Simon

  reply	other threads:[~2015-02-18  5:02 UTC|newest]

Thread overview: 282+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 23:27 [U-Boot] [RFC PATCH 0/7] Add Driver Model support to network stack Joe Hershberger
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 1/7] net: Provide a function to get the current MAC address Joe Hershberger
2015-01-28  2:33   ` Simon Glass
2015-01-28  9:45     ` Joe Hershberger
2015-01-29  1:46       ` Simon Glass
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 2/7] net: Rename helper function to be more clear Joe Hershberger
2015-01-28  2:34   ` Simon Glass
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 3/7] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-01-28  2:34   ` Simon Glass
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 4/7] net: Refactor in preparation for driver model Joe Hershberger
2015-01-28  2:34   ` Simon Glass
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 5/7] net: Add basic driver model support to Ethernet stack Joe Hershberger
2015-01-28  2:34   ` Simon Glass
2015-01-28 10:22     ` Joe Hershberger
2015-01-29  1:56       ` Simon Glass
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 6/7] net: Add network support to sandbox Joe Hershberger
2015-01-28  2:34   ` Simon Glass
2015-01-28 10:24     ` Joe Hershberger
2015-01-27 23:27 ` [U-Boot] [RFC PATCH 7/7] net: Add ARP and PING response to sandbox driver Joe Hershberger
2015-01-28  2:34   ` Simon Glass
     [not found]     ` <CANr=Z=YcT=OvcA8ggaMCrOfyS5ShjFzgK6AW9gpfsNsZqcgfPA@mail.gmail.com>
2015-01-29  1:58       ` Simon Glass
2015-01-28  2:33 ` [U-Boot] [RFC PATCH 0/7] Add Driver Model support to network stack Simon Glass
2015-02-03  0:38 ` [U-Boot] [RFC PATCH v2 0/8] " Joe Hershberger
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 1/8] net: Provide a function to get the current MAC address Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 2/8] net: Rename helper function to be more clear Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 3/8] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 4/8] net: Refactor in preparation for driver model Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 5/8] net: Add basic driver model support to Ethernet stack Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-11  6:25       ` Joe Hershberger
2015-02-13  5:20         ` Simon Glass
2015-02-14  2:43           ` Joe Hershberger
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 6/8] net: Add network support to sandbox Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 7/8] net: Add ARP and PING response to sandbox driver Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-03  0:38   ` [U-Boot] [RFC PATCH v2 8/8] net: Add actual networking support to sandbox's driver Joe Hershberger
2015-02-07  1:25     ` Simon Glass
2015-02-11  1:30   ` [U-Boot] [RFC PATCH v3 0/14] Add Driver Model support to network stack Joe Hershberger
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 01/14] dm: core: Allow seq numbers to be resolved before probe Joe Hershberger
2015-02-11  4:39       ` Simon Glass
2015-02-11  6:08         ` Joe Hershberger
2015-02-13  5:14           ` Simon Glass
2015-02-14  2:33             ` Joe Hershberger
2015-02-15 15:59               ` Simon Glass
2015-02-17  4:17                 ` Joe Hershberger
2015-02-18  5:02                   ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 02/14] test: dm: Reorder the objects to build Joe Hershberger
2015-02-11  4:39       ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 03/14] net: Provide a function to get the current MAC address Joe Hershberger
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 04/14] net: Rename helper function to be more clear Joe Hershberger
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 05/14] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 06/14] net: Refactor in preparation for driver model Joe Hershberger
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 07/14] dm: eth: Add basic driver model support to Ethernet stack Joe Hershberger
2015-02-15 15:49       ` Simon Glass
2015-02-17  4:37         ` Joe Hershberger
2015-02-18  5:02           ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 08/14] dm: eth: Add network support to sandbox Joe Hershberger
2015-02-15 15:49       ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 09/14] dm: eth: Add ARP and PING response to sandbox driver Joe Hershberger
2015-02-15 15:49       ` Simon Glass
2015-02-17  4:46         ` Joe Hershberger
2015-02-18  5:02           ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 10/14] test: dm: eth: Add tests for the eth dm implementation Joe Hershberger
2015-02-15 15:50       ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 11/14] dm: eth: Add support for aliases Joe Hershberger
2015-02-15 15:50       ` Simon Glass
2015-02-17  5:04         ` Joe Hershberger
2015-02-18  5:02           ` Simon Glass [this message]
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 12/14] dm: eth: Add support for ethprime env var Joe Hershberger
2015-02-15 15:50       ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 13/14] dm: eth: Add testing for netretry " Joe Hershberger
2015-02-15 15:50       ` Simon Glass
2015-02-11  1:30     ` [U-Boot] [RFC PATCH v3 14/14] dm: eth: Add a bridge to a real network for sandbox Joe Hershberger
2015-02-15 15:50       ` Simon Glass
2015-02-17  5:16         ` Joe Hershberger
2015-02-18  5:02           ` Simon Glass
2015-02-19 23:44             ` Joe Hershberger
2015-02-20 19:33               ` Simon Glass
2015-02-25  0:02     ` [U-Boot] [RFC PATCH v4 0/23] Add Driver Model support to network stack Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 01/23] test: dm: Reorder the objects to build Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 02/23] common: Make sure arch-specific map_sysmem() is defined Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-01 21:16           ` Joe Hershberger
2015-03-02  2:24             ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 03/23] net: Provide a function to get the current MAC address Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 04/23] net: Rename helper function to be more clear Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 05/23] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 06/23] net: Refactor in preparation for driver model Joe Hershberger
2015-03-01 18:08         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 07/23] net: Change return codes from net/eth.c to use errorno constants Joe Hershberger
2015-02-26  0:53         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 08/23] net: Use int instead of u8 for boolean flag Joe Hershberger
2015-02-26  0:53         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 09/23] net: Remove the bd* parameter from net stack functions Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 10/23] net: Make netretry actually do something Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-01 21:53           ` Joe Hershberger
2015-03-02  2:24             ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 11/23] net: Access mapped physmem in net functions Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 12/23] dm: eth: Add basic driver model support to Ethernet stack Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-01 21:45           ` Joe Hershberger
2015-03-02  2:26             ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 13/23] sandbox: eth: Add network support to sandbox Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 14/23] sandbox: eth: Add ARP and PING response to sandbox driver Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 15/23] test: dm: eth: Add tests for the eth dm implementation Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 16/23] dm: eth: Add support for aliases Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-01 22:04           ` Joe Hershberger
2015-03-02  2:23             ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 17/23] dm: eth: Add support for ethprime env var Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-01 22:06           ` Joe Hershberger
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 18/23] test: dm: eth: Add testing for ethrotate " Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 19/23] sandbox: eth: Add ability to disable ping reply in sandbox eth driver Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 20/23] test: dm: net: Add a test of the netretry behavior Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 21/23] sandbox: eth: Add a bridge to a real network for sandbox Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-02  7:17           ` Joe Hershberger
2015-03-02 15:48             ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 22/23] sandbox: Enable DHCP and IP defrag Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-02-25  0:02       ` [U-Boot] [RFC PATCH v4 23/23] sandbox: eth: Add support for using the 'lo' interface Joe Hershberger
2015-03-01 18:07         ` Simon Glass
2015-03-02  7:18           ` Joe Hershberger
2015-03-02 22:16             ` Simon Glass
2015-03-01 16:13       ` [U-Boot] [RFC PATCH v4 0/23] Add Driver Model support to network stack Simon Glass
2015-03-01 22:12         ` Joe Hershberger
2015-03-02  2:23           ` Simon Glass
2015-03-03 22:29         ` Joe Hershberger
2015-03-03 23:14           ` Simon Glass
2015-03-03 23:32             ` Joe Hershberger
2015-03-03 23:40               ` Simon Glass
2015-03-04  2:40       ` [U-Boot] [PATCH v5 0/27] " Joe Hershberger
2015-03-04  2:40         ` [U-Boot] [PATCH v5 01/27] test: dm: Reorder the objects to build Joe Hershberger
2015-03-04  2:40         ` [U-Boot] [PATCH v5 02/27] common: Make sure arch-specific map_sysmem() is defined Joe Hershberger
2015-03-04 19:18           ` Simon Glass
2015-03-04  2:40         ` [U-Boot] [PATCH v5 03/27] net: Provide a function to get the current MAC address Joe Hershberger
2015-03-04  2:40         ` [U-Boot] [PATCH v5 04/27] net: Rename helper function to be more clear Joe Hershberger
2015-03-04  2:40         ` [U-Boot] [PATCH v5 05/27] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 06/27] net: Refactor in preparation for driver model Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 07/27] net: Change return codes from net/eth.c to use errorno constants Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 08/27] net: Use int instead of u8 for boolean flag Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 09/27] net: Remove the bd* parameter from net stack functions Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 10/27] net: Make netretry actually do something Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 11/27] net: Access mapped physmem in net functions Joe Hershberger
2015-03-04 18:34           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 12/27] cmd: net: Clean up return codes Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 13/27] dm: eth: Add basic driver model support to Ethernet stack Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 14/27] net: Clean up network stack names used in DM drivers Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 15/27] dm: eth: Pass the packet pointer as a parameter to recv Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-10 23:28             ` Joe Hershberger
2015-03-10 23:31               ` Simon Glass
2015-03-10 23:41                 ` Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 16/27] sandbox: eth: Add network support to sandbox Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 17/27] sandbox: eth: Add ARP and PING response to sandbox driver Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 18/27] test: dm: eth: Add tests for the eth dm implementation Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 19/27] dm: eth: Add support for aliases Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 20/27] dm: eth: Add support for ethprime env var Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 21/27] test: dm: eth: Add testing for ethrotate " Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 22/27] sandbox: eth: Add ability to disable ping reply in sandbox eth driver Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 23/27] test: dm: net: Add a test of the netretry behavior Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 24/27] sandbox: eth: Add a bridge to a real network for sandbox Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 25/27] sandbox: Enable DHCP and IP defrag Joe Hershberger
2015-03-04  2:41         ` [U-Boot] [PATCH v5 26/27] sandbox: eth: Add support for using the 'lo' interface Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-04  2:41         ` [U-Boot] [PATCH v5 27/27] net: Improve error handling Joe Hershberger
2015-03-04 18:35           ` Simon Glass
2015-03-10 23:10             ` Joe Hershberger
2015-03-11 23:43         ` [U-Boot] [PATCH v6 0/27] Add Driver Model support to network stack Joe Hershberger
2015-03-11 23:43           ` [U-Boot] [PATCH v6 01/27] test: dm: Reorder the objects to build Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 02/27] common: Make sure arch-specific map_sysmem() is defined Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 03/27] net: Provide a function to get the current MAC address Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 04/27] net: Rename helper function to be more clear Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 05/27] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 06/27] net: Refactor in preparation for driver model Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 07/27] net: Change return codes from net/eth.c to use errorno constants Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 08/27] net: Use int instead of u8 for boolean flag Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 09/27] net: Remove the bd* parameter from net stack functions Joe Hershberger
2015-03-20 23:01             ` Simon Glass
2015-03-22  3:42               ` Joe Hershberger
2015-03-22 21:09                 ` Simon Glass
2015-03-11 23:44           ` [U-Boot] [PATCH v6 10/27] net: Make netretry actually do something Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 11/27] net: Access mapped physmem in net functions Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 12/27] cmd: net: Clean up return codes Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 13/27] dm: eth: Add basic driver model support to Ethernet stack Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 14/27] net: Clean up network stack names used in DM drivers Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 15/27] dm: eth: Pass the packet pointer as a parameter to recv Joe Hershberger
2015-03-20 12:10             ` Simon Glass
2015-03-11 23:44           ` [U-Boot] [PATCH v6 16/27] sandbox: eth: Add network support to sandbox Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 17/27] sandbox: eth: Add ARP and PING response to sandbox driver Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 18/27] test: dm: eth: Add tests for the eth dm implementation Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 19/27] dm: eth: Add support for aliases Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 20/27] dm: eth: Add support for ethprime env var Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 21/27] test: dm: eth: Add testing for ethrotate " Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 22/27] sandbox: eth: Add ability to disable ping reply in sandbox eth driver Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 23/27] test: dm: net: Add a test of the netretry behavior Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 24/27] sandbox: eth: Add a bridge to a real network for sandbox Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 25/27] sandbox: Enable DHCP and IP defrag Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 26/27] sandbox: eth: Add support for using the 'lo' interface Joe Hershberger
2015-03-11 23:44           ` [U-Boot] [PATCH v6 27/27] net: Improve error handling Joe Hershberger
2015-03-20 12:17           ` [U-Boot] [PATCH v6 0/27] Add Driver Model support to network stack Simon Glass
2015-03-20 12:45             ` Joe Hershberger
2015-03-20 13:21             ` Tom Rini
2015-03-20 14:33               ` Joe Hershberger
2015-03-22 22:16                 ` Simon Glass
2015-03-22 22:08           ` [U-Boot] [PATCH v7 " Joe Hershberger
2015-03-22 22:08             ` [U-Boot] [PATCH v7 01/27] test: dm: Reorder the objects to build Joe Hershberger
2015-03-23 16:01               ` Simon Glass
2015-03-22 22:08             ` [U-Boot] [PATCH v7 02/27] common: Make sure arch-specific map_sysmem() is defined Joe Hershberger
2015-03-23 16:03               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 03/27] net: Provide a function to get the current MAC address Joe Hershberger
2015-03-23 16:03               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 04/27] net: Rename helper function to be more clear Joe Hershberger
2015-03-23 16:03               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 05/27] net: Remove unneeded "extern" in net.h Joe Hershberger
2015-03-23 16:03               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 06/27] net: Refactor in preparation for driver model Joe Hershberger
2015-03-23 16:04               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 07/27] net: Change return codes from net/eth.c to use errorno constants Joe Hershberger
2015-03-23 16:04               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 08/27] net: Use int instead of u8 for boolean flag Joe Hershberger
2015-03-23 16:04               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 09/27] net: Remove the bd* parameter from net stack functions Joe Hershberger
2015-03-23 16:04               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 10/27] net: Make netretry actually do something Joe Hershberger
2015-03-23 16:04               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 11/27] net: Access mapped physmem in net functions Joe Hershberger
2015-03-23 16:05               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 12/27] cmd: net: Clean up return codes Joe Hershberger
2015-03-23 16:05               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 13/27] dm: eth: Add basic driver model support to Ethernet stack Joe Hershberger
2015-03-23 16:05               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 14/27] net: Clean up network stack names used in DM drivers Joe Hershberger
2015-03-23 16:05               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 15/27] dm: eth: Pass the packet pointer as a parameter to recv Joe Hershberger
2015-03-23 16:05               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 16/27] sandbox: eth: Add network support to sandbox Joe Hershberger
2015-03-23 16:05               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 17/27] sandbox: eth: Add ARP and PING response to sandbox driver Joe Hershberger
2015-03-23 16:06               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 18/27] test: dm: eth: Add tests for the eth dm implementation Joe Hershberger
2015-03-23 16:06               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 19/27] dm: eth: Add support for aliases Joe Hershberger
2015-03-23 16:06               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 20/27] dm: eth: Add support for ethprime env var Joe Hershberger
2015-03-23 16:06               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 21/27] test: dm: eth: Add testing for ethrotate " Joe Hershberger
2015-03-23 16:07               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 22/27] sandbox: eth: Add ability to disable ping reply in sandbox eth driver Joe Hershberger
2015-03-23 16:07               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 23/27] test: dm: net: Add a test of the netretry behavior Joe Hershberger
2015-03-23 16:07               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 24/27] sandbox: eth: Add a bridge to a real network for sandbox Joe Hershberger
2015-03-23 16:07               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 25/27] sandbox: Enable DHCP and IP defrag Joe Hershberger
2015-03-23 16:08               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 26/27] sandbox: eth: Add support for using the 'lo' interface Joe Hershberger
2015-03-23 16:08               ` Simon Glass
2015-03-22 22:09             ` [U-Boot] [PATCH v7 27/27] net: Improve error handling Joe Hershberger
2015-03-23 16:08               ` Simon Glass

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='CAPnjgZ1VaCctFHDZH1V5D=NYXxDM9y0sQhLmg_UZEEmBeBat9g@mail.gmail.com' \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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.