From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 4/4] usb: add USB support for Efika
Date: Mon, 31 Oct 2011 16:23:09 +0100 [thread overview]
Message-ID: <4EAEBD5D.50708@denx.de> (raw)
In-Reply-To: <CAB+7RbGhb5tGhtxFiaVqEcBu_EJACciwKsbA2X6eo8fYPoevzw@mail.gmail.com>
On 10/31/2011 03:58 PM, Jana Rapava wrote:
>
>
> 2011/10/31 Stefano Babic <sbabic at denx.de <mailto:sbabic@denx.de>>
>
> > There are some issues with: [PATCH 3/4] EHCI: adjust for mx5
> > If you have already applied it
>
> Jana, can you answer / fix this point ?
>
>
> I really don't know what happens there. Code file looks aligned, but
> when I generate a patch with git-format-patch, aligning is messed up.
Wait: this can be due to the different positions of the TAB characters,
and to the leading + to mark an added line. It is not a problem.
> So
> I fix it in git-send-email,
Do you mean you change the patch generated by git format-patch ? You
should not do it.
Take a look at your patch. Some defines are removed, and in the patch
you see them as:
-#ifdef CONFIG_MX25
-#define MX25_USB_CTRL_IP_PUE_DOWN_BIT (1<<6)
-#define MX25_USB_CTRL_HSTD_BIT (1<<5)
-#define MX25_USB_CTRL_USBTE_BIT (1<<4)
-#define MX25_USB_CTRL_OCPOL_OTG_BIT (1<<3)
-#endif
It seems that even in the original file the defines were not aligned.
But this is not true, the disalignment is introduced by the leading "-".
However, when we see some lines later, the defines are added again and
they seem aligned.
+#ifdef CONFIG_MX25
+#define MX25_USB_CTRL_IP_PUE_DOWN_BIT (1<<6)
+#define MX25_USB_CTRL_HSTD_BIT (1<<5)
+#define MX25_USB_CTRL_USBTE_BIT (1<<4)
+#define MX25_USB_CTRL_OCPOL_OTG_BIT (1<<3)
+#endif
But when we apply the patch, they defines are disaligned again. maybe
you are worrying too much: let the tools doing their work. You have to
check that your changed file is correct (without whitespace instead of
tab), and then call git-format-patch. And do not care if the result
seems producing disaligned entries, this is not true.
There are also other comments by Igor that should be fixed,
independently from this alignment problem. Please fix them and resubmit.
> but after sending whitespace characters are
> messed up again.
> I wasn't able to find a way to fix it yet.
As I said, you want to fix the result of git-format-patch, but it is
correct. Simply do not do it.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2011-10-31 15:23 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-28 23:52 [U-Boot] [PATCH 0/4] Move ehci headers, add Efika USB support Jana Rapava
2011-09-28 23:52 ` [U-Boot] [PATCH 1/4] usb: Move ehci.h and ehci-core.h to include/usb directory Jana Rapava
2011-09-28 23:52 ` Marek Vasut
2011-09-28 23:56 ` Jana Rapava
2011-09-28 23:52 ` [U-Boot] [PATCH 2/4] EHCI: add callback ehci_fixup Jana Rapava
2011-09-28 23:52 ` [U-Boot] [PATCH 3/4] EHCI: adjust for mx5 Jana Rapava
2011-10-31 8:11 ` Igor Grinberg
2011-10-31 20:46 ` Jana Rapava
2011-11-01 11:27 ` Igor Grinberg
2011-10-31 23:35 ` [U-Boot] [PATCH v2 " Jana Rapava
2011-11-01 0:04 ` Marek Vasut
2011-11-01 11:38 ` Igor Grinberg
2011-11-01 19:02 ` Jana Rapava
2011-11-01 19:20 ` [U-Boot] [PATCH v3 " Jana Rapava
2011-11-12 17:37 ` [U-Boot] [PATCH v4 " Jana Rapava
2011-11-14 9:12 ` Wolfgang Grandegger
2011-11-14 20:50 ` Jana Rapava
2011-09-28 23:52 ` [U-Boot] [PATCH 4/4] usb: add USB support for Efika Jana Rapava
2011-09-28 23:59 ` Marek Vasut
2011-09-29 0:34 ` [U-Boot] [PATCH v2 " Jana Rapava
2011-09-29 1:17 ` Marek Vasut
2011-09-29 10:11 ` [U-Boot] [PATCH v3 " Jana Rapava
2011-09-29 10:19 ` Marek Vasut
2011-09-29 10:30 ` [U-Boot] [PATCH v4 " Jana Rapava
2011-09-29 10:47 ` Marek Vasut
2011-09-29 11:09 ` [U-Boot] [PATCH v5 4/4] Add " Jana Rapava
2011-09-29 14:37 ` Marek Vasut
2011-09-29 16:44 ` [U-Boot] [PATCH v6 4/4] usb: add " Jana Rapava
2011-09-29 17:06 ` Marek Vasut
2011-10-30 20:18 ` Marek Vasut
2011-10-30 20:22 ` Stefano Babic
2011-10-31 8:17 ` Igor Grinberg
2011-10-31 9:13 ` Stefano Babic
2011-10-31 14:58 ` Jana Rapava
2011-10-31 15:23 ` Stefano Babic [this message]
2011-11-01 19:24 ` [U-Boot] [PATCH v7 " Jana Rapava
2011-11-02 9:54 ` Igor Grinberg
2011-11-02 16:03 ` Jana Rapava
2011-11-02 16:16 ` Stefano Babic
2011-11-07 14:59 ` Wolfgang Grandegger
2011-11-12 17:45 ` [U-Boot] [PATCH v8 4/4] Add " Jana Rapava
2011-11-14 8:29 ` Igor Grinberg
2011-11-14 9:21 ` Wolfgang Grandegger
2011-11-24 2:43 ` Marek Vasut
2011-11-24 11:11 ` Jana Rapava
2011-09-29 0:00 ` [U-Boot] [PATCH 0/4] Move ehci headers, add Efika USB support Marek Vasut
2011-09-29 0:31 ` [U-Boot] [PATCH v2 " Jana Rapava
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=4EAEBD5D.50708@denx.de \
--to=sbabic@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox