Revert "add toggle for disabling newly added USB devices"

This has been replaced by the dwc3 usb_data_enabled toggle.

This reverts commit feba940cfd.

Change-Id: Iccef7773009b72b69058af363eb2035d73469aac
This commit is contained in:
Michael Bestas 2023-03-01 21:13:57 +02:00 committed by Bruno Martins
parent fb7dd3f77e
commit 653f0bf4a2
2 changed files with 0 additions and 23 deletions

View File

@ -37,8 +37,6 @@
#define USB_VENDOR_GENESYS_LOGIC 0x05e3
#define HUB_QUIRK_CHECK_PORT_AUTOSUSPEND 0x01
extern int deny_new_usb;
/* Protect struct usb_device->state and ->children members
* Note: Both are also protected by ->dev.sem, except that ->state can
* change to USB_STATE_NOTATTACHED even when the semaphore isn't held. */
@ -4929,12 +4927,6 @@ static void hub_port_connect(struct usb_hub *hub, int port1, u16 portstatus,
goto done;
return;
}
if (deny_new_usb) {
dev_err(&port_dev->dev, "denied insert of USB device on port %d\n", port1);
goto done;
}
if (hub_is_superspeed(hub->hdev))
unit_load = 150;
else

View File

@ -98,10 +98,6 @@
#if defined(CONFIG_SYSCTL)
/* External variables not in a header file. */
#ifdef CONFIG_USB
int deny_new_usb __read_mostly = 0;
EXPORT_SYMBOL(deny_new_usb);
#endif
extern int suid_dumpable;
#ifdef CONFIG_COREDUMP
extern int core_uses_pid;
@ -1007,17 +1003,6 @@ static struct ctl_table kern_table[] = {
.extra1 = &zero,
.extra2 = &two,
},
#endif
#ifdef CONFIG_USB
{
.procname = "deny_new_usb",
.data = &deny_new_usb,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax_sysadmin,
.extra1 = &zero,
.extra2 = &one,
},
#endif
{
.procname = "ngroups_max",