Re: kernel BUG at drivers/scsi/scsi_lib.c:1096!

2015-11-23 Thread Pratyush Anand
On 23/11/2015:02:57:19 PM, Laurent Dufour wrote: > On 23/11/2015 00:20, Mark Salter wrote: > > On Sun, 2015-11-22 at 00:56 +0800, Ming Lei wrote: > >> On Sat, 21 Nov 2015 12:30:14 +0100 > >> Laurent Dufour wrote: > >> > >>> On 20/11/2015 13:10, Michael Ellerman wrote:

Re: [PATCH v15 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2011-10-26 Thread Pratyush Anand
On Sun, Oct 23, 2011 at 2:00 AM, Olof Johansson o...@lixom.net wrote: Hi, On Fri, Oct 21, 2011 at 10:33 AM, Olof Johansson o...@lixom.net wrote: On Fri, Oct 14, 2011 at 03:08:34PM -0700, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com Overall this driver seems to be based on

Re: [PATCH v15 01/10] USB/ppc4xx: Add Synopsys DesignWare HS USB OTG Register definitions

2011-10-20 Thread Pratyush Anand
On Sat, Oct 15, 2011 at 3:38 AM, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com [...] +/* + * These Macros represents the bit fields in the FIFO Size Registers (HPTXFSIZ, + * GNPTXFSIZ, DPTXFSIZn). Read the register into the u32 element then + * read out the bits using the bit

Re: [PATCH v14 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer (CIL)

2011-10-20 Thread Pratyush Anand
On Fri, Oct 7, 2011 at 8:00 AM, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com [...] + * Do core a soft reset of the core. Be careful with this because it + * resets all the internal state machines of the core. + */ +static void dwc_otg_core_reset(struct core_if *core_if) +{

Re: [PATCH v15 04/10] USB/ppc4xx: Add Synopsys DWC OTG HCD function

2011-10-20 Thread Pratyush Anand
On Sat, Oct 15, 2011 at 3:38 AM, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com [...] Everything fine in this patch, except the defines of TX regs(DWC_RX_FIFO_DEPTH_WR) has been kept with RX. Regards Pratyush ___ Linuxppc-dev mailing

Re: [PATCH v15 06/10] USB/ppc4xx: Add Synopsys DWC OTG HCD queue function

2011-10-20 Thread Pratyush Anand
-- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html Reviewed-by: Pratyush Anand pratyush.an...@st.com ___ Linuxppc-dev

Re: [PATCH v15 07/10] USB/ppc4xx: Add Synopsys DWC OTG PCD function

2011-10-20 Thread Pratyush Anand
On Sat, Oct 15, 2011 at 3:39 AM, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com The PCD is responsible for translating requests from the gadget driver to appropriate actions on the DWC OTG controller. [...] +static int dwc_otg_pcd_ep_disable(struct usb_ep *_ep) +{ +

Re: [PATCH v15 08/10] USB ppc4xx: Add Synopsys DWC OTG PCD interrupt function

2011-10-20 Thread Pratyush Anand
On Sat, Oct 15, 2011 at 3:39 AM, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com [...] +static int write_empty_tx_fifo(struct dwc_pcd *pcd, u32 epnum) +{ + struct core_if *core_if = GET_CORE_IF(pcd); + ulong regs; + u32 txstatus = 0; + struct pcd_ep

Re: [PATCH v15 02/10] USB/ppc4xx: Add Synopsys DesignWare HS USB OTG driver framework

2011-10-20 Thread Pratyush Anand
On Sat, Oct 15, 2011 at 3:38 AM, tma...@apm.com wrote: From: Tirumala Marri tma...@apm.com Platform probing is in apmppc.c. Most if this file is common for other platform too. So, why not extract common part and put them here. All the platform specific whether PPC or ARM or else should move

Re: [PATCH v15 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2011-10-20 Thread Pratyush Anand
Hi Tirumala, I have reviwed all the patches. Thanks for taking my most of the diffs over your v13. There are few thing, which are really very important like, AHB disable check, EP Disable/Stall (have commented about them in respective patches). I am doubtful, that how does all of usbcv test cases

Re: [PATCH 14/14] arm/include/asm/io.h : added macros to read/write big/little endian register

2011-09-02 Thread Pratyush Anand
On Wed, Aug 31, 2011 at 1:05 PM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: * Pratyush Anand | 2011-08-30 17:28:01 [+0530]: diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 815efa2..32282b4 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h

Re: [PATCH 03/14] dwc/otg: Add driver framework

2011-09-02 Thread Pratyush Anand
On Wed, Aug 31, 2011 at 12:49 PM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: * Pratyush Anand | 2011-08-30 17:27:50 [+0530]: diff --git a/drivers/usb/dwc/apmppc.c b/drivers/usb/dwc/apmppc.c new file mode 100644 index 000..80ea274 --- /dev/null +++ b/drivers/usb/dwc/apmppc.c

Re: [PATCH 08/14] dwc/otg: Add PCD function

2011-09-02 Thread Pratyush Anand
On Wed, Aug 31, 2011 at 1:14 PM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: * Pratyush Anand | 2011-08-30 17:27:55 [+0530]: diff --git a/drivers/usb/dwc/pcd.c b/drivers/usb/dwc/pcd.c new file mode 100644 index 000..2ef6405 --- /dev/null +++ b/drivers/usb/dwc/pcd.c +static const

Re: [PATCH 01/14] dwc/otg: Add Register definitions

2011-09-02 Thread Pratyush Anand
On Thu, Sep 1, 2011 at 4:05 AM, Greg KH g...@kroah.com wrote: On Tue, Aug 30, 2011 at 05:27:48PM +0530, Pratyush Anand wrote: From: Tirumala Marri tma...@apm.com Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc

Re: [PATCH 02/14] dwc/otg: Structure declaration for shared data

2011-09-02 Thread Pratyush Anand
I will send you those patches. But, how to go about it? Will you send next revision of your patces soon, and will also include comments for current review? Or, I replly all the comments from community and get agreed about modifications first. Then I will release next revision with all these

Re: [PATCH 02/14] dwc/otg: Structure declaration for shared data

2011-09-02 Thread Pratyush Anand
On Thu, Sep 1, 2011 at 4:06 AM, Greg KH g...@kroah.com wrote: On Tue, Aug 30, 2011 at 05:27:49PM +0530, Pratyush Anand wrote: There are some DWC OTG parameters which might be passed by a platform. Declaration for structure of those parameters have been provided in this include file. Signed

Re: [PATCH 03/14] dwc/otg: Add driver framework

2011-09-02 Thread Pratyush Anand
On Fri, Sep 2, 2011 at 5:02 PM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: On 09/02/2011 01:17 PM, Pratyush Anand wrote: oh boy, oh boy. This is a huge number of module parameters. Do you actually expect someone setting all of them on modprobe? And if udev is faster you rmmod

Re: [PATCH 00/14] Modifications for DWC OTG since v13

2011-08-31 Thread Pratyush Anand
On Wed, Aug 31, 2011 at 6:48 AM, Kyungmin Park kmp...@infradead.org wrote: On Wed, Aug 31, 2011 at 12:46 AM, Pratyush Anand pratyush.an...@gmail.com wrote: On Tue, Aug 30, 2011 at 8:57 PM, Tirumala Marri tma...@apm.com wrote: -Original Message- From: Pratyush Anand [mailto:pratyush.an

[PATCH 13/14] usb/gadget/kconfig: added dwc otg as an option for peripheral controller

2011-08-30 Thread Pratyush Anand
When dwc otg is configured as either dual or device only mode, then it can also be used as a usb gadget. So added dwc otg as an option for peripheral controller. Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/gadget/Kconfig | 17 + 1 files changed, 17

[PATCH 07/14] dwc/otg: Add HCD queue function

2011-08-30 Thread Pratyush Anand
From: Tirumala Marri tma...@apm.com Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH 06/14] dwc/otg: Add HCD interrupt function

2011-08-30 Thread Pratyush Anand
From: Tirumala Marri tma...@apm.com Implements DWC OTG USB HCD interrupt service routine. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb

[PATCH 01/14] dwc/otg: Add Register definitions

2011-08-30 Thread Pratyush Anand
From: Tirumala Marri tma...@apm.com Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/dwc

[PATCH 14/14] arm/include/asm/io.h : added macros to read/write big/little endian register

2011-08-30 Thread Pratyush Anand
There are some peripheral(e.g dwc otg) whose registers can be configured to work in either little or big endian mode. Therefor macros like out_be32, in_be32, out_le32 and in_le32 have been added to support such peripherals. Signed-off-by: Pratyush Anand pratyush.an...@st.com --- arch/arm/include

[PATCH 12/14] include/linux/usb/gadget.h : include linux/device.h for successful compilation

2011-08-30 Thread Pratyush Anand
gadget.h uses struct device, which has been declared in linux/device.h. So it must be included. Signed-off-by: Pratyush Anand pratyush.an...@st.com --- include/linux/usb/gadget.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/usb/gadget.h b/include/linux

[PATCH 11/14] dwc/otg: Driver enable gadget support

2011-08-30 Thread Pratyush Anand
From: Tirumala Marri tma...@apm.com Enable gadget support Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/gadget/gadget_chips.h | 18

[PATCH 08/14] dwc/otg: Add PCD function

2011-08-30 Thread Pratyush Anand
Signed-off-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/dwc/pcd.c | 1818 + drivers/usb/dwc/pcd.h | 139 2 files changed, 1957 insertions(+), 0 deletions(-) create mode 100644 drivers/usb/dwc/pcd.c create mode 100644 drivers/usb/dwc

[PATCH 10/14] dwc/otg: Add driver kernel configuration and Makefile

2011-08-30 Thread Pratyush Anand
From: Tirumala Marri tma...@apm.com Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Tirumala R Marri

[PATCH 00/14] Modifications for DWC OTG since v13

2011-08-30 Thread Pratyush Anand
with this file. It has been removed by calling by proper functions. Pratyush Anand (4): dwc/otg: Structure declaration for shared data include/linux/usb/gadget.h : include linux/device.h for successful compilation usb/gadget/kconfig: added dwc otg as an option for peripheral

[PATCH 03/14] dwc/otg: Add driver framework

2011-08-30 Thread Pratyush Anand
-by: Pratyush Anand pratyush.an...@st.com --- drivers/usb/dwc/apmppc.c | 436 ++ drivers/usb/dwc/driver.h | 76 drivers/usb/dwc/param.c | 219 +++ 3 files changed, 731 insertions(+), 0 deletions(-) create mode 100644 drivers/usb

[PATCH 02/14] dwc/otg: Structure declaration for shared data

2011-08-30 Thread Pratyush Anand
There are some DWC OTG parameters which might be passed by a platform. Declaration for structure of those parameters have been provided in this include file. Signed-off-by: Pratyush Anand pratyush.an...@st.com --- include/linux/usb/dwc_otg.h | 274 +++ 1

Re: [PATCH 11/14] dwc/otg: Driver enable gadget support

2011-08-30 Thread Pratyush Anand
On Tue, Aug 30, 2011 at 6:31 PM, Sergei Shtylyov sshtyl...@mvista.com wrote: Hello. On 08/30/2011 03:57 PM, Pratyush Anand wrote: From: Tirumala Marritma...@apm.com Enable gadget support Signed-off-by: Tirumala R Marritma...@apm.com Signed-off-by: Fushen Chenfc...@apm.com Signed-off

Re: [PATCH 02/14] dwc/otg: Structure declaration for shared data

2011-08-30 Thread Pratyush Anand
On Tue, Aug 30, 2011 at 8:59 PM, Tirumala Marri tma...@apm.com wrote: -Original Message- From: Pratyush Anand [mailto:pratyush.an...@st.com] Sent: Tuesday, August 30, 2011 4:58 AM To: linux-...@vger.kernel.org Cc: tma...@apm.com; linuxppc-dev@lists.ozlabs.org; fc...@apm.com; mmiesf

Re: [PATCH 00/14] Modifications for DWC OTG since v13

2011-08-30 Thread Pratyush Anand
On Tue, Aug 30, 2011 at 8:57 PM, Tirumala Marri tma...@apm.com wrote: -Original Message- From: Pratyush Anand [mailto:pratyush.an...@st.com] Sent: Tuesday, August 30, 2011 4:58 AM To: linux-...@vger.kernel.org Cc: tma...@apm.com; linuxppc-dev@lists.ozlabs.org; fc...@apm.com; mmiesf

Re: [PATCH v11 08/10] USB ppc4xx: Add Synopsys DWC OTG PCD interrupt function

2011-08-01 Thread Pratyush Anand
Is somebody working on these patches? If not, then is it possible to share last modification, so that I can start work from there. If this v11 was the last modification, and noone is working further, then just confirm it. I will start working from here. Regards Pratyush

Re: [PATCH v11 08/10] USB ppc4xx: Add Synopsys DWC OTG PCD interrupt function

2011-08-01 Thread Pratyush Anand
I can see v13 as the last modifications at following link. http://patchwork.ozlabs.org/patch/89560/ Is there any work after it? Regards Pratyush On Tue, Aug 2, 2011 at 9:55 AM, Pratyush Anand pratyush.li...@gmail.com wrote: Is somebody working on these patches? If not, then is it possible