Bug 1421696 - Please enable CONFIG_USB_CONFIGFS_F_HID in config-arm-generic
Summary: Please enable CONFIG_USB_CONFIGFS_F_HID in config-arm-generic
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 24
Hardware: armv7hl
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-13 13:14 UTC by phg
Modified: 2019-01-09 12:54 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-11-16 09:24:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description phg 2017-02-13 13:14:06 UTC
Description of problem:

Fedora’s ARM (armv7hl) kernel lacks USB HID gadget function:

    $ grep CONFIG_USB_CONFIGFS_F_HID config-arm-generic 
    # CONFIG_USB_CONFIGFS_F_HID is not set

Version-Release number of selected component (if applicable):

Tested with FC24, but it’s also the case with kernel-4.10.0-0.rc7.git4.1.fc26

How reproducible:

Steps to Reproduce:
1. Install a Linux kernel and modules RPM.
2. modprobe usb_f_hid.ko → fail

Actual results:

Module not found.

Expected results:

Module loaded and HID gadget accessible from configfs
(mkdir /sys/kernel/config/usb_gadget/${MY_GADGET}/functions/hid.foo).

Additional info:

--- config-arm-generic.orig	2017-02-13 14:09:55.517507818 +0100
+++ config-arm-generic	2017-02-13 14:10:16.631068333 +0100
@@ -408,7 +408,7 @@
 # CONFIG_USB_CONFIGFS_F_UAC1 is not set
 # CONFIG_USB_CONFIGFS_F_UAC2 is not set
 # CONFIG_USB_CONFIGFS_F_MIDI is not set
-# CONFIG_USB_CONFIGFS_F_HID is not set
+CONFIG_USB_CONFIGFS_F_HID is not set
 # CONFIG_USB_CONFIGFS_F_UVC is not set
 # CONFIG_USB_CONFIGFS_F_PRINTER is not set

Comment 1 phg 2017-02-13 13:17:53 UTC
Bad diff above, sorry.

--- config-arm-generic.orig	2017-02-13 14:09:55.517507818 +0100
+++ config-arm-generic	2017-02-13 14:17:14.353159108 +0100
@@ -408,7 +408,7 @@
 # CONFIG_USB_CONFIGFS_F_UAC1 is not set
 # CONFIG_USB_CONFIGFS_F_UAC2 is not set
 # CONFIG_USB_CONFIGFS_F_MIDI is not set
-# CONFIG_USB_CONFIGFS_F_HID is not set
+CONFIG_USB_CONFIGFS_F_HID=y
 # CONFIG_USB_CONFIGFS_F_UVC is not set
 # CONFIG_USB_CONFIGFS_F_PRINTER is not set

Comment 2 phg 2017-03-15 09:18:50 UTC
Follow-up to a conversation on #fedora-arm:

- We use a compound gadget combining multiple functions via configfs on an array of Beaglebone Black (which has a USB client controller);

- the HID functionality is necessary to automate BIOS configuration, flashing, and in general as a swiss army knife to work around unwanted interactivity in vendor supplied tools;

- to add the HID function, usb_f_hid.ko is required;

- the Fedora ARM kernel lacks the USB HID functionality in configfs;

- consequently, with every system update we need to recompile the kernel to include the module.

Comment 3 Justin M. Forbes 2017-04-11 14:45:46 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 24 kernel bugs.

Fedora 25 has now been rebased to 4.10.9-100.fc24.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 26, and are still experiencing this issue, please change the version to Fedora 26.

If you experience different issues, please open a new bug report for those.

Comment 4 Justin M. Forbes 2017-04-28 17:18:57 UTC
*********** MASS BUG UPDATE **************
This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 2 weeks. If you are still experiencing this issue, please reopen and attach the 
relevant data from the latest kernel you are running and any data that might have been requested previously.

Comment 5 Robert Scheck 2017-08-28 20:32:33 UTC
https://src.fedoraproject.org/rpms/kernel/blob/master/f/baseconfig/arm/CONFIG_USB_CONFIGFS_F_HID says this is still not addressed. Please
reopen.

Comment 6 Robert Scheck 2017-08-28 20:43:28 UTC
See also: https://src.fedoraproject.org/rpms/kernel/pull-request/1

Comment 7 phg 2017-08-29 06:56:59 UTC
@Robert That PR is much appreciated. My plan was to revisit the issue after the FC27 release. It’s still relevant, reopening as per your request.

Comment 8 phg 2017-11-16 09:23:23 UTC
Tried the stock FC27 kernel, usb_f_hid.ko is there as expected.


Note You need to log in before you can comment on or make changes to this bug.