* [PATCH] powerpc/fsl: Add FMan best effort port compatible @ 2015-05-18 8:41 ` Igal.Liberman 0 siblings, 0 replies; 10+ messages in thread From: Igal.Liberman @ 2015-05-18 8:41 UTC (permalink / raw) To: devicetree, linuxppc-dev; +Cc: scottwood, Igal Liberman, madalin.bucur From: Igal Liberman <igal.liberman@freescale.com> This patch adds a compatible which represents FMan V3 best effort ports. FMan best effort port is configured as 10G ports, however, it uses 1G hardware. Signed-off-by: Igal Liberman <igal.liberman@freescale.com> --- .../devicetree/bindings/powerpc/fsl/fman.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt index edda55f..c2e3ec3 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt @@ -166,6 +166,11 @@ PROPERTIES - "fsl,fman-v3-port-oh" for FManV3 OH ports - "fsl,fman-v3-port-rx" for FManV3 RX ports - "fsl,fman-v3-port-tx" for FManV3 TX ports + Optional compatible which can be used in addition to the + compatibles above is: + - "fsl,fman-v3-best-effort-port" + This compatible represents 10G best effort ports: + Port configured as 10G, using 1G hardware. - cell-index Usage: required -- 1.7.9.5 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH] powerpc/fsl: Add FMan best effort port compatible @ 2015-05-18 8:41 ` Igal.Liberman 0 siblings, 0 replies; 10+ messages in thread From: Igal.Liberman @ 2015-05-18 8:41 UTC (permalink / raw) To: devicetree, linuxppc-dev; +Cc: scottwood, Igal Liberman, madalin.bucur From: Igal Liberman <igal.liberman@freescale.com> This patch adds a compatible which represents FMan V3 best effort ports. FMan best effort port is configured as 10G ports, however, it uses 1G hardware. Signed-off-by: Igal Liberman <igal.liberman@freescale.com> --- .../devicetree/bindings/powerpc/fsl/fman.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt index edda55f..c2e3ec3 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt @@ -166,6 +166,11 @@ PROPERTIES - "fsl,fman-v3-port-oh" for FManV3 OH ports - "fsl,fman-v3-port-rx" for FManV3 RX ports - "fsl,fman-v3-port-tx" for FManV3 TX ports + Optional compatible which can be used in addition to the + compatibles above is: + - "fsl,fman-v3-best-effort-port" + This compatible represents 10G best effort ports: + Port configured as 10G, using 1G hardware. - cell-index Usage: required -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 10+ messages in thread
[parent not found: <1431938519-11343-1-git-send-email-igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org>]
* Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible 2015-05-18 8:41 ` Igal.Liberman @ 2015-05-18 21:09 ` Scott Wood -1 siblings, 0 replies; 10+ messages in thread From: Scott Wood @ 2015-05-18 21:09 UTC (permalink / raw) To: igal.liberman-KZfg59tc24xl57MIdRCFDg Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, madalin.bucur-KZfg59tc24xl57MIdRCFDg On Mon, 2015-05-18 at 11:41 +0300, Igal.Liberman wrote: > From: Igal Liberman <igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org> > > This patch adds a compatible which represents FMan V3 best effort ports. > FMan best effort port is configured as 10G ports, however, it uses 1G > hardware. > > Signed-off-by: Igal Liberman <igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org> > --- > .../devicetree/bindings/powerpc/fsl/fman.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > index edda55f..c2e3ec3 100644 > --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > @@ -166,6 +166,11 @@ PROPERTIES > - "fsl,fman-v3-port-oh" for FManV3 OH ports > - "fsl,fman-v3-port-rx" for FManV3 RX ports > - "fsl,fman-v3-port-tx" for FManV3 TX ports > + Optional compatible which can be used in addition to the > + compatibles above is: > + - "fsl,fman-v3-best-effort-port" > + This compatible represents 10G best effort ports: > + Port configured as 10G, using 1G hardware. What does this mean? If it's using 1G hardware then it's a 1G port, right? How can you configure a 1G port to be 10G? Why is this compatible in addition to others (note that this implies such ports are 100% backwards compatible with hardware that lacks the new compatible)? You'd have the same compatible on rx and tx nodes (I'm assuming this isn't applicable to oh)? What are the implications of this that warrant adding a compatible? -Scott -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible @ 2015-05-18 21:09 ` Scott Wood 0 siblings, 0 replies; 10+ messages in thread From: Scott Wood @ 2015-05-18 21:09 UTC (permalink / raw) To: igal.liberman; +Cc: devicetree, linuxppc-dev, madalin.bucur On Mon, 2015-05-18 at 11:41 +0300, Igal.Liberman wrote: > From: Igal Liberman <igal.liberman@freescale.com> > > This patch adds a compatible which represents FMan V3 best effort ports. > FMan best effort port is configured as 10G ports, however, it uses 1G > hardware. > > Signed-off-by: Igal Liberman <igal.liberman@freescale.com> > --- > .../devicetree/bindings/powerpc/fsl/fman.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > index edda55f..c2e3ec3 100644 > --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > @@ -166,6 +166,11 @@ PROPERTIES > - "fsl,fman-v3-port-oh" for FManV3 OH ports > - "fsl,fman-v3-port-rx" for FManV3 RX ports > - "fsl,fman-v3-port-tx" for FManV3 TX ports > + Optional compatible which can be used in addition to the > + compatibles above is: > + - "fsl,fman-v3-best-effort-port" > + This compatible represents 10G best effort ports: > + Port configured as 10G, using 1G hardware. What does this mean? If it's using 1G hardware then it's a 1G port, right? How can you configure a 1G port to be 10G? Why is this compatible in addition to others (note that this implies such ports are 100% backwards compatible with hardware that lacks the new compatible)? You'd have the same compatible on rx and tx nodes (I'm assuming this isn't applicable to oh)? What are the implications of this that warrant adding a compatible? -Scott ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <1431983358.27761.11.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>]
* RE: [PATCH] powerpc/fsl: Add FMan best effort port compatible 2015-05-18 21:09 ` Scott Wood @ 2015-05-19 9:27 ` Liberman Igal -1 siblings, 0 replies; 10+ messages in thread From: Liberman Igal @ 2015-05-19 9:27 UTC (permalink / raw) To: Scott Wood Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, Madalin-Cristian Bucur Hi Scott, I understand your point, let me please explain more about the hardware configuration and suggest another solution. I'm referring only to external ports (TX/RX), not OP. In FMan V3 we have maximum of 8 Port, it depends on the FMan revision (in B4, T2, T4 we have 8 ports, in T1024 and T1040 we have 4). The following configuration are valid: - All 8 ports can work as 1G ports. - Ports 7, 8 (if available) can work as 10G (with full hardware resources). - Port 1, 2 (1 in T1024; 1, 2 in T2080) can be configured as 10G (with limited hardware resources). Currently we use only "fsl,fm-v3-port-rx/tx". We can go 2 ways: 1. Having 2 compatibles: "fsl,fman-v3-port-rx/tx" "fsl,fman-v3-best-effort-port-rx/tx" The driver can determine the port type of "fsl,fman-v3-port-rx/tx" by reading the HW port id. "fsl,fman-v3-best-effort-port-rx/tx" will let the driver know about the best effort port and it will be used instead of "fsl,fman-v3-port-rx/tx". In your opinion, should we add "fsl,fman-v3-10g-port-rx/tx" for 10G (with full hardware resources)? In such chase, "fsl,fman-v3-port-rx/tx" will denote 1G explicitly. In FMan V2, dual ports/MACs are not available, so no need change the compatibles. Igal > -----Original Message----- > From: Wood Scott-B07421 > Sent: Tuesday, May 19, 2015 12:09 AM > To: Liberman Igal-B31950 > Cc: devicetree@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Bucur > Madalin-Cristian-B32716 > Subject: Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible > > On Mon, 2015-05-18 at 11:41 +0300, Igal.Liberman wrote: > > From: Igal Liberman <igal.liberman@freescale.com> > > > > This patch adds a compatible which represents FMan V3 best effort ports. > > FMan best effort port is configured as 10G ports, however, it uses 1G > > hardware. > > > > Signed-off-by: Igal Liberman <igal.liberman@freescale.com> > > --- > > .../devicetree/bindings/powerpc/fsl/fman.txt | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > > b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > > index edda55f..c2e3ec3 100644 > > --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > > +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt > > @@ -166,6 +166,11 @@ PROPERTIES > > - "fsl,fman-v3-port-oh" for FManV3 OH ports > > - "fsl,fman-v3-port-rx" for FManV3 RX ports > > - "fsl,fman-v3-port-tx" for FManV3 TX ports > > + Optional compatible which can be used in addition to the > > + compatibles above is: > > + - "fsl,fman-v3-best-effort-port" > > + This compatible represents 10G best effort ports: > > + Port configured as 10G, using 1G hardware. > > What does this mean? If it's using 1G hardware then it's a 1G port, right? > How can you configure a 1G port to be 10G? > > Why is this compatible in addition to others (note that this implies such ports > are 100% backwards compatible with hardware that lacks the new > compatible)? You'd have the same compatible on rx and tx nodes (I'm > assuming this isn't applicable to oh)? > > What are the implications of this that warrant adding a compatible? > > -Scott > ^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH] powerpc/fsl: Add FMan best effort port compatible @ 2015-05-19 9:27 ` Liberman Igal 0 siblings, 0 replies; 10+ messages in thread From: Liberman Igal @ 2015-05-19 9:27 UTC (permalink / raw) To: Scott Wood; +Cc: devicetree, linuxppc-dev, Madalin-Cristian Bucur SGkgU2NvdHQsDQpJIHVuZGVyc3RhbmQgeW91ciBwb2ludCwgbGV0IG1lIHBsZWFzZSBleHBsYWlu IG1vcmUgYWJvdXQgdGhlIGhhcmR3YXJlIGNvbmZpZ3VyYXRpb24gYW5kIHN1Z2dlc3QgYW5vdGhl ciBzb2x1dGlvbi4NCkknbSByZWZlcnJpbmcgb25seSB0byBleHRlcm5hbCBwb3J0cyAoVFgvUlgp LCBub3QgT1AuDQpJbiBGTWFuIFYzIHdlIGhhdmUgbWF4aW11bSBvZiA4IFBvcnQsIGl0IGRlcGVu ZHMgb24gdGhlIEZNYW4gcmV2aXNpb24gKGluIEI0LCBUMiwgVDQgd2UgaGF2ZSA4IHBvcnRzLCBp biBUMTAyNCBhbmQgVDEwNDAgd2UgaGF2ZSA0KS4NClRoZSBmb2xsb3dpbmcgY29uZmlndXJhdGlv biBhcmUgdmFsaWQ6DQoJLSBBbGwgOCBwb3J0cyBjYW4gd29yayBhcyAxRyBwb3J0cy4gDQoJLSBQ b3J0cyA3LCA4IChpZiBhdmFpbGFibGUpIGNhbiB3b3JrIGFzIDEwRyAod2l0aCBmdWxsIGhhcmR3 YXJlIHJlc291cmNlcykuDQoJLSBQb3J0IDEsIDIgKDEgaW4gVDEwMjQ7IDEsIDIgaW4gVDIwODAp IGNhbiBiZSBjb25maWd1cmVkIGFzIDEwRyAod2l0aCBsaW1pdGVkIGhhcmR3YXJlIHJlc291cmNl cykuDQoNCkN1cnJlbnRseSB3ZSB1c2Ugb25seSAiZnNsLGZtLXYzLXBvcnQtcngvdHgiLg0KDQpX ZSBjYW4gZ28gMiB3YXlzOg0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b21wYXRpYmxl IHdpdGggaGFyZHdhcmUgdGhhdCBsYWNrcyB0aGUgbmV3DQo+IGNvbXBhdGlibGUpPyAgWW91J2Qg aGF2ZSB0aGUgc2FtZSBjb21wYXRpYmxlIG9uIHJ4IGFuZCB0eCBub2RlcyAoSSdtDQo+IGFzc3Vt aW5nIHRoaXMgaXNuJ3QgYXBwbGljYWJsZSB0byBvaCk/DQo+IA0KPiBXaGF0IGFyZSB0aGUgaW1w bGljYXRpb25zIG9mIHRoaXMgdGhhdCB3YXJyYW50IGFkZGluZyBhIGNvbXBhdGlibGU/DQo+IA0K PiAtU2NvdHQNCj4gDQoNCg== ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <DM2PR03MB383ED154B2D6379219C60E8E6C30-ufbTtyGzTTRJonC5hhDUuuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>]
* Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible 2015-05-19 9:27 ` Liberman Igal @ 2015-05-21 3:04 ` Scott Wood -1 siblings, 0 replies; 10+ messages in thread From: Scott Wood @ 2015-05-21 3:04 UTC (permalink / raw) To: Liberman Igal-B31950 Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, Bucur Madalin-Cristian-B32716 On Tue, 2015-05-19 at 04:27 -0500, Liberman Igal-B31950 wrote: > Hi Scott, > I understand your point, let me please explain more about the hardware configuration and suggest another solution. > I'm referring only to external ports (TX/RX), not OP. > In FMan V3 we have maximum of 8 Port, it depends on the FMan revision (in B4, T2, T4 we have 8 ports, in T1024 and T1040 we have 4). > The following configuration are valid: > - All 8 ports can work as 1G ports. > - Ports 7, 8 (if available) can work as 10G (with full hardware resources). > - Port 1, 2 (1 in T1024; 1, 2 in T2080) can be configured as 10G (with limited hardware resources). > Currently we use only "fsl,fm-v3-port-rx/tx". > > We can go 2 ways: > 1. Having 2 compatibles: > "fsl,fman-v3-port-rx/tx" > "fsl,fman-v3-best-effort-port-rx/tx" > > The driver can determine the port type of "fsl,fman-v3-port-rx/tx" by reading the HW port id. > "fsl,fman-v3-best-effort-port-rx/tx" will let the driver know about the best effort port and it will be used instead of "fsl,fman-v3-port-rx/tx". > > In your opinion, should we add "fsl,fman-v3-10g-port-rx/tx" for 10G (with full hardware resources)? > In such chase, "fsl,fman-v3-port-rx/tx" will denote 1G explicitly. > > In FMan V2, dual ports/MACs are not available, so no need change the compatibles. The compatible string should describe what programming interface is present. Other information should be in other properties. Having the same compatible for tx and rx definitely seems wrong. -Scott -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible @ 2015-05-21 3:04 ` Scott Wood 0 siblings, 0 replies; 10+ messages in thread From: Scott Wood @ 2015-05-21 3:04 UTC (permalink / raw) To: Liberman Igal-B31950 Cc: devicetree, linuxppc-dev, Bucur Madalin-Cristian-B32716 On Tue, 2015-05-19 at 04:27 -0500, Liberman Igal-B31950 wrote: > Hi Scott, > I understand your point, let me please explain more about the hardware configuration and suggest another solution. > I'm referring only to external ports (TX/RX), not OP. > In FMan V3 we have maximum of 8 Port, it depends on the FMan revision (in B4, T2, T4 we have 8 ports, in T1024 and T1040 we have 4). > The following configuration are valid: > - All 8 ports can work as 1G ports. > - Ports 7, 8 (if available) can work as 10G (with full hardware resources). > - Port 1, 2 (1 in T1024; 1, 2 in T2080) can be configured as 10G (with limited hardware resources). > Currently we use only "fsl,fm-v3-port-rx/tx". > > We can go 2 ways: > 1. Having 2 compatibles: > "fsl,fman-v3-port-rx/tx" > "fsl,fman-v3-best-effort-port-rx/tx" > > The driver can determine the port type of "fsl,fman-v3-port-rx/tx" by reading the HW port id. > "fsl,fman-v3-best-effort-port-rx/tx" will let the driver know about the best effort port and it will be used instead of "fsl,fman-v3-port-rx/tx". > > In your opinion, should we add "fsl,fman-v3-10g-port-rx/tx" for 10G (with full hardware resources)? > In such chase, "fsl,fman-v3-port-rx/tx" will denote 1G explicitly. > > In FMan V2, dual ports/MACs are not available, so no need change the compatibles. The compatible string should describe what programming interface is present. Other information should be in other properties. Having the same compatible for tx and rx definitely seems wrong. -Scott ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <1432177461.27761.196.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>]
* RE: [PATCH] powerpc/fsl: Add FMan best effort port compatible 2015-05-21 3:04 ` Scott Wood @ 2015-05-21 8:16 ` Madalin-Cristian Bucur -1 siblings, 0 replies; 10+ messages in thread From: Madalin-Cristian Bucur @ 2015-05-21 8:16 UTC (permalink / raw) To: Scott Wood, Liberman Igal Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1409 bytes --] > -----Original Message----- > From: Wood Scott-B07421 > > The compatible string should describe what programming interface is > present. Other information should be in other properties. Having the > same compatible for tx and rx definitely seems wrong. > > -Scott > Hi Scott, what we tried to accomplish here is to avoid updating u-boot for this new compatible and have minimal additions to the binding document. We currently know that: "fsl,fman-v3-port-rx" is an Rx port that can work in 1G mode "fsl,fman-v3-port-tx" is an Tx port that can work in 1G mode We proposed adding a new optional compatible "fsl,fman-v3-best-effort-port" such that: "fsl,fman-v3-port-rx" is an Rx port that can work in 1G mode "fsl,fman-v3-port-tx" is an Tx port that can work in 1G mode "fsl,fman-v3-port-rx", "fsl,fman-v3-best-effort-port" is an Rx port that can work in 1G mode and also in limited resourced 10G mode "fsl,fman-v3-port-tx", "fsl,fman-v3-best-effort-port" is an Tx port that can work in 1G mode and also in limited resourced 10G mode The only code addition required is in the Linux driver, code that checks for the optional, supplemental parameter "fsl,fman-v3-best-effort-port" to change some resource allocations. Madalin N§²æìr¸yúèØb²X¬¶Ç§vØ^)Þº{.nÇ+·zøzÚÞz)í æèw*\x1fjg¬±¨\x1e¶Ý¢j.ïÛ°\½½MúgjÌæa×\x02' ©Þ¢¸\f¢·¦j:+v¨wèjØm¶ÿ¾\a«êçzZ+ùÝ¢j"ú!¶i ^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH] powerpc/fsl: Add FMan best effort port compatible @ 2015-05-21 8:16 ` Madalin-Cristian Bucur 0 siblings, 0 replies; 10+ messages in thread From: Madalin-Cristian Bucur @ 2015-05-21 8:16 UTC (permalink / raw) To: Scott Wood, Liberman Igal; +Cc: devicetree, linuxppc-dev DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV29vZCBTY290dC1CMDc0 MjENCj4gDQo+IFRoZSBjb21wYXRpYmxlIHN0cmluZyBzaG91bGQgZGVzY3JpYmUgd2hhdCBwcm9n cmFtbWluZyBpbnRlcmZhY2UgaXMNCj4gcHJlc2VudC4gIE90aGVyIGluZm9ybWF0aW9uIHNob3Vs ZCBiZSBpbiBvdGhlciBwcm9wZXJ0aWVzLiAgSGF2aW5nIHRoZQ0KPiBzYW1lIGNvbXBhdGlibGUg Zm9yIHR4IGFuZCByeCBkZWZpbml0ZWx5IHNlZW1zIHdyb25nLg0KPiANCj4gLVNjb3R0DQo+IA0K DQpIaSBTY290dCwgd2hhdCB3ZSB0cmllZCB0byBhY2NvbXBsaXNoIGhlcmUgaXMgdG8gYXZvaWQg dXBkYXRpbmcgdS1ib290IGZvciB0aGlzIG5ldyBjb21wYXRpYmxlIGFuZCBoYXZlIG1pbmltYWwg YWRkaXRpb25zIHRvIHRoZSBiaW5kaW5nIGRvY3VtZW50Lg0KDQpXZSBjdXJyZW50bHkga25vdyB0 aGF0Og0KDQoiZnNsLGZtYW4tdjMtcG9ydC1yeCIgIGlzIGFuIFJ4IHBvcnQgdGhhdCBjYW4gd29y ayBpbiAxRyBtb2RlDQoiZnNsLGZtYW4tdjMtcG9ydC10eCIgIGlzIGFuIFR4IHBvcnQgdGhhdCBj YW4gd29yayBpbiAxRyBtb2RlDQoNCldlIHByb3Bvc2VkIGFkZGluZyBhIG5ldyBvcHRpb25hbCBj b21wYXRpYmxlICJmc2wsZm1hbi12My1iZXN0LWVmZm9ydC1wb3J0IiAgc3VjaCB0aGF0Og0KDQoi ZnNsLGZtYW4tdjMtcG9ydC1yeCIgIGlzIGFuIFJ4IHBvcnQgdGhhdCBjYW4gd29yayBpbiAxRyBt b2RlDQoiZnNsLGZtYW4tdjMtcG9ydC10eCIgIGlzIGFuIFR4IHBvcnQgdGhhdCBjYW4gd29yayBp biAxRyBtb2RlDQoNCiJmc2wsZm1hbi12My1wb3J0LXJ4IiwgImZzbCxmbWFuLXYzLWJlc3QtZWZm b3J0LXBvcnQiICBpcyBhbiBSeCBwb3J0IHRoYXQgY2FuIHdvcmsgaW4gMUcgbW9kZSBhbmQgYWxz byBpbiBsaW1pdGVkIHJlc291cmNlZCAxMEcgbW9kZQ0KImZzbCxmbWFuLXYzLXBvcnQtdHgiLCAi ZnNsLGZtYW4tdjMtYmVzdC1lZmZvcnQtcG9ydCIgIGlzIGFuIFR4IHBvcnQgdGhhdCBjYW4gd29y ayBpbiAxRyBtb2RlIGFuZCBhbHNvIGluIGxpbWl0ZWQgcmVzb3VyY2VkIDEwRyBtb2RlDQoNClRo ZSBvbmx5IGNvZGUgYWRkaXRpb24gcmVxdWlyZWQgaXMgaW4gdGhlIExpbnV4IGRyaXZlciwgY29k ZSB0aGF0IGNoZWNrcyBmb3IgdGhlIG9wdGlvbmFsLCBzdXBwbGVtZW50YWwgcGFyYW1ldGVyICJm c2wsZm1hbi12My1iZXN0LWVmZm9ydC1wb3J0IiB0byBjaGFuZ2Ugc29tZSByZXNvdXJjZSBhbGxv Y2F0aW9ucy4NCg0KTWFkYWxpbg0K ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-05-21 8:16 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-05-18 8:41 [PATCH] powerpc/fsl: Add FMan best effort port compatible Igal.Liberman 2015-05-18 8:41 ` Igal.Liberman [not found] ` <1431938519-11343-1-git-send-email-igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-05-18 21:09 ` Scott Wood 2015-05-18 21:09 ` Scott Wood [not found] ` <1431983358.27761.11.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-05-19 9:27 ` Liberman Igal 2015-05-19 9:27 ` Liberman Igal [not found] ` <DM2PR03MB383ED154B2D6379219C60E8E6C30-ufbTtyGzTTRJonC5hhDUuuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org> 2015-05-21 3:04 ` Scott Wood 2015-05-21 3:04 ` Scott Wood [not found] ` <1432177461.27761.196.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-05-21 8:16 ` Madalin-Cristian Bucur 2015-05-21 8:16 ` Madalin-Cristian Bucur
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.