RE: [RFC PATCHv1] usb: dwc2: Combine the dwc2 and s3c_hsotg into a single USB DRD driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: dinguyen@xxxxxxxxxx [mailto:dinguyen@xxxxxxxxxx]
> Sent: Tuesday, February 04, 2014 1:46 PM
> 
> From: Dinh Nguyen <dinguyen@xxxxxxxxxx>
> 
> This means that the driver can be in host or peripheral mode when the appropriate
> connector is used. When an A-cable is plugged in, the driver behaves in host
> mode, and when a B-cable is used, the driver will be in peripheral mode.
> 
> This commit:
> - Replaces in the defines used in s3c_hsotg.h with the defines used in the dwc2
>   hw.h defines.
> - Use the dw2_hsotg as the unified data structure for the host/gadget.
> - Uses the dwc2 IRQ handler for host/gadget.
> - A single spinlock.

Hi Dinh,

Putting all of these changes into a single patch makes them unreviewable
as far I am concerned. You need to break this into a series of smaller
patches. I would suggest something like this:

1 of n:  Make the minimum changes to the dwc2 header files needed to
         support s3c-hsotg as a standalone driver.
2 of n:  Make the spelling changes to s3c-hsotg.c needed to use the dwc2
         headers, and move it to the dwc2/ directory. Make the Kconfig
         and Makefile changes needed for the move. Delete s3c-hsotg.h.
3 of n:  Move the struct defines etc. from s3c-hsotg.c to the dwc2
         header files.
.. of n: Make the changes required to combine the functionality of
         both drivers into one. Preferably this would also be a series
         of patches instead of one big one.

At each step of the series, both drivers should still compile and work.

Also, please follow the patch style used on the linux lists. 
'git format-patch --cover-letter' should do most of this for you
automatically.

And you should probably trim the Cc list to something more reasonable.

-- 
Paul

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux