lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1505121117420.1400-100000@iolanthe.rowland.org>
Date:	Tue, 12 May 2015 11:26:50 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Ramneek Mehresh <ramneek.mehresh@...escale.com>
cc:	linux-kernel@...r.kernel.org, <linux-usb@...r.kernel.org>,
	<gregkh@...uxfoundation.org>
Subject: Re: [PATCH 0/2]: Make FSL EHCI drv as separate module

On Tue, 12 May 2015, Ramneek Mehresh wrote:

> This patch set makes fsl ehci driver as a separate module 
> from existing ehci-hcd driver. For this, following is done:
> 	- make ehci-fsl.c as a seperate entity by compiling
> 	  it separately
> 	- make use of module_init()/module_exit(), and 
> 	  makeing ehci-fsl.c as tristate
> 	- using overrides structure to override "reset" and
> 	  "extra_priv_size"
> 
> Ramneek Mehresh (2):
>   drivers:usb:fsl:Make fsl ehci drv an independent module
>   drivers:usb:fsl: Use overrides structure for fsl hc driver

These need to be combined into a single patch.  As it stands now, if 
someone applies patch 1/2 but not 2/2 (which could happen in the middle 
of a bisection, for example), the driver will fail to build.


+#define DRIVER_DESC "Fsl EHCI driver"

...

-static const struct hc_driver fsl_ehci_hc_driver = {
-       .description = hcd_name,
-       .product_desc = "Freescale On-Chip EHCI Host Controller",

How is anybody supposed to know what "Fsl" means?  Your new DRIVER_DESC 
string should be more like the old .product_desc string.

-/**
- * usb_hcd_fsl_probe - initialize FSL-based HCDs
+/*
+ * fsl_ehci_drv_probe - initialize FSL-based HCDs
  * @drvier: Driver to be used for this HCD
  * @pdev: USB Host Controller being probed
  * Context: !in_interrupt()
@@ -45,8 +54,7 @@
  * Allocates basic resources for this USB host controller.
  *
  */
-static int usb_hcd_fsl_probe(const struct hc_driver *driver,
-                            struct platform_device *pdev)
+static int fsl_ehci_drv_probe(struct platform_device *pdev)
 {

Since you eliminated the const struct hc_driver *driver parameter from 
this function, you should also eliminate the corresponding line from 
the kerneldoc above the function.  (Note that the line even misspells 
"driver"!)

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ