Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] hsdk/linux: backporting patch enabling CONFIG_USB
Date: Fri, 1 May 2020 14:58:46 +0200	[thread overview]
Message-ID: <20200501125846.GZ11346@scaer> (raw)
In-Reply-To: <20200430163713.11290-1-Evgeniy.Didin@synopsys.com>

Evgeniy, All,

On 2020-04-30 19:37 +0300, Evgeniy Didin spake thusly:
> With this commit we backporting critical Linux kernel patch
> which enables CONFIG_USB option for HSDK.
> 
> Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> Cc: arc-buildroot at synopsys.com
> ---
>  .../0001-ARC-plat-hsdk-fix-USB-regression.patch    | 39 ++++++++++++++++++++++
>  configs/snps_archs38_hsdk_defconfig                |  1 +
>  2 files changed, 40 insertions(+)
>  create mode 100644 board/synopsys/hsdk/linux_patches/0001-ARC-plat-hsdk-fix-USB-regression.patch
> 
> diff --git a/board/synopsys/hsdk/linux_patches/0001-ARC-plat-hsdk-fix-USB-regression.patch b/board/synopsys/hsdk/linux_patches/0001-ARC-plat-hsdk-fix-USB-regression.patch
> new file mode 100644
> index 0000000000..882d2c61df
> --- /dev/null
> +++ b/board/synopsys/hsdk/linux_patches/0001-ARC-plat-hsdk-fix-USB-regression.patch
> @@ -0,0 +1,39 @@
> +From 4c13ca86dcf80a8c705b1f3674ff43d318e970e0 Mon Sep 17 00:00:00 2001
> +From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> +Date: Tue, 7 Apr 2020 23:06:42 +0300
> +Subject: ARC: [plat-hsdk]: fix USB regression
> +
> +As of today the CONFIG_USB isn't explicitly present in HSDK defconfig
> +as it is implicitly forcibly enabled by UDL driver which selects CONFIG_USB
> +in its kconfig.
> +The commit 5d50bd440bc2 ("drm/udl: Make udl driver depend on CONFIG_USB")
> +reverse the dependencies between UDL and USB so UDL now depends on
> +CONFIG_USB and not selects it. This introduces regression for ARC HSDK
> +board as HSDK defconfig wasn't adjusted and now it misses USB support
> +due to lack of CONFIG_USB enabled.
> +
> +Fix that.
> +
> +Cc: <stable@vger.kernel.org> # 5.6.x
> +Fixes: 5d50bd440bc2 ("drm/udl: Make udl driver depend on CONFIG_USB")
> +Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> +Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
> +---
> + arch/arc/configs/hsdk_defconfig | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
> +index 0974226fab55..aa000075a575 100644
> +--- a/arch/arc/configs/hsdk_defconfig
> ++++ b/arch/arc/configs/hsdk_defconfig
> +@@ -65,6 +65,7 @@ CONFIG_DRM_UDL=y
> + CONFIG_DRM_ETNAVIV=y
> + CONFIG_FB=y
> + CONFIG_FRAMEBUFFER_CONSOLE=y
> ++CONFIG_USB=y
> + CONFIG_USB_EHCI_HCD=y
> + CONFIG_USB_EHCI_HCD_PLATFORM=y
> + CONFIG_USB_OHCI_HCD=y
> +-- 
> +cgit 1.2-0.3.lf.el7
> +
> diff --git a/configs/snps_archs38_hsdk_defconfig b/configs/snps_archs38_hsdk_defconfig
> index af7cba6c2e..4a002cd69f 100644
> --- a/configs/snps_archs38_hsdk_defconfig
> +++ b/configs/snps_archs38_hsdk_defconfig
> @@ -14,6 +14,7 @@ BR2_SYSTEM_DHCP="eth0"
>  BR2_LINUX_KERNEL=y
>  BR2_LINUX_KERNEL_CUSTOM_VERSION=y
>  BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.6.3"
> +BR2_LINUX_KERNEL_PATCH="board/synopsys/hsdk/linux_patches"
>  BR2_LINUX_KERNEL_DEFCONFIG="hsdk"
>  BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/synopsys/hsdk/linux.fragment"

Why don't you simply add CONFIG_USB=y to the fragment instead?

Regards,
Yann E. MORIN.

>  
> -- 
> 2.16.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2020-05-01 12:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 16:37 [Buildroot] [PATCH] hsdk/linux: backporting patch enabling CONFIG_USB Evgeniy Didin
2020-05-01 12:58 ` Yann E. MORIN [this message]

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=20200501125846.GZ11346@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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