All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@kernel.org>
To: Roger Quadros <rogerq@ti.com>,
	Pawel Laszczak <pawell@cadence.com>,
	devicetree@vger.kernel.org
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, adouglas@cadence.com,
	jbergsagel@ti.com, nsekhar@ti.com, nm@ti.com,
	sureshp@cadence.com, peter.chen@nxp.com, pjez@cadence.com,
	kurahul@cadence.com
Subject: [RFC,v2,07/15] usb:cdns3: Adds Device mode support - initialization.
Date: Wed, 28 Nov 2018 13:40:34 +0200	[thread overview]
Message-ID: <87pnupzaz1.fsf@linux.intel.com> (raw)

Hi,

Roger Quadros <rogerq@ti.com> writes:
>> +static void cdns3_gadget_config(struct cdns3_device *priv_dev)
>> +{
>> +	struct cdns3_usb_regs __iomem *regs = priv_dev->regs;
>> +
>> +	cdns3_ep0_config(priv_dev);
>> +
>> +	/* enable interrupts for endpoint 0 (in and out) */
>> +	writel(EP_IEN_EP_OUT0 | EP_IEN_EP_IN0, &regs->ep_ien);
>> +
>> +	/* enable generic interrupt*/
>> +	writel(USB_IEN_INIT, &regs->usb_ien);
>> +	writel(USB_CONF_CLK2OFFDS | USB_CONF_L1DS, &regs->usb_conf);
>> +	writel(USB_CONF_DMULT, &regs->usb_conf);
>> +	writel(USB_CONF_DEVEN, &regs->usb_conf);
>
> If you are enabling interrupts in this patch you should handle them in the ISR.

Frankly, I don't understand why this is a series. It's a single driver
and splitting it into a series just makes it more difficult to review,
actually.

Sure, a single patch will be large, but there's no way to have a
functional driver until all patches are applied, anyway.

WARNING: multiple messages have this Message-ID (diff)
From: Felipe Balbi <balbi@kernel.org>
To: Roger Quadros <rogerq@ti.com>,
	Pawel Laszczak <pawell@cadence.com>,
	devicetree@vger.kernel.org
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, adouglas@cadence.com,
	jbergsagel@ti.com, nsekhar@ti.com, nm@ti.com,
	sureshp@cadence.com, peter.chen@nxp.com, pjez@cadence.com,
	kurahul@cadence.com
Subject: Re: [RFC PATCH v2 07/15] usb:cdns3: Adds Device mode support - initialization.
Date: Wed, 28 Nov 2018 13:40:34 +0200	[thread overview]
Message-ID: <87pnupzaz1.fsf@linux.intel.com> (raw)
In-Reply-To: <5BFE7D2E.7030702@ti.com>

[-- Attachment #1: Type: text/plain, Size: 978 bytes --]


Hi,

Roger Quadros <rogerq@ti.com> writes:
>> +static void cdns3_gadget_config(struct cdns3_device *priv_dev)
>> +{
>> +	struct cdns3_usb_regs __iomem *regs = priv_dev->regs;
>> +
>> +	cdns3_ep0_config(priv_dev);
>> +
>> +	/* enable interrupts for endpoint 0 (in and out) */
>> +	writel(EP_IEN_EP_OUT0 | EP_IEN_EP_IN0, &regs->ep_ien);
>> +
>> +	/* enable generic interrupt*/
>> +	writel(USB_IEN_INIT, &regs->usb_ien);
>> +	writel(USB_CONF_CLK2OFFDS | USB_CONF_L1DS, &regs->usb_conf);
>> +	writel(USB_CONF_DMULT, &regs->usb_conf);
>> +	writel(USB_CONF_DEVEN, &regs->usb_conf);
>
> If you are enabling interrupts in this patch you should handle them in the ISR.

Frankly, I don't understand why this is a series. It's a single driver
and splitting it into a series just makes it more difficult to review,
actually.

Sure, a single patch will be large, but there's no way to have a
functional driver until all patches are applied, anyway.

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

             reply	other threads:[~2018-11-28 11:40 UTC|newest]

Thread overview: 202+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 11:40 Felipe Balbi [this message]
2018-11-28 11:40 ` [RFC PATCH v2 07/15] usb:cdns3: Adds Device mode support - initialization Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2018-12-16 13:31 [RFC,v2,08/15] usb:cdns3: Implements device operations part of the API Pawel Laszczak
2018-12-16 13:31 ` [RFC PATCH v2 08/15] " Pawel Laszczak
2018-12-14 12:30 [RFC,v2,08/15] " Felipe Balbi
2018-12-14 12:30 ` [RFC PATCH v2 08/15] " Felipe Balbi
2018-12-14 12:20 [RFC,v2,08/15] " Sekhar Nori
2018-12-14 12:20 ` [RFC PATCH v2 08/15] " Sekhar Nori
2018-12-14 12:20 ` Sekhar Nori
2018-12-14 11:26 [RFC,v2,08/15] " Felipe Balbi
2018-12-14 11:26 ` [RFC PATCH v2 08/15] " Felipe Balbi
2018-12-14 11:13 [RFC,v2,08/15] " Sekhar Nori
2018-12-14 11:13 ` [RFC PATCH v2 08/15] " Sekhar Nori
2018-12-14 11:13 ` Sekhar Nori
2018-12-14 10:47 [RFC,v2,08/15] " Felipe Balbi
2018-12-14 10:47 ` [RFC PATCH v2 08/15] " Felipe Balbi
2018-12-14 10:39 [RFC,v2,08/15] " Sekhar Nori
2018-12-14 10:39 ` [RFC PATCH v2 08/15] " Sekhar Nori
2018-12-14 10:39 ` Sekhar Nori
2018-12-14  6:49 [RFC,v2,08/15] " Pawel Laszczak
2018-12-14  6:49 ` [RFC PATCH v2 08/15] " Pawel Laszczak
2018-12-14  1:34 [RFC,v2,08/15] " Peter Chen
2018-12-14  1:34 ` [RFC PATCH v2 08/15] " Peter Chen
2018-12-11 19:49 [RFC,v2,08/15] " Pawel Laszczak
2018-12-11 19:49 ` [RFC PATCH v2 08/15] " Pawel Laszczak
2018-12-11 11:26 [RFC,v2,08/15] " Sekhar Nori
2018-12-11 11:26 ` [RFC PATCH v2 08/15] " Sekhar Nori
2018-12-11 11:26 ` Sekhar Nori
2018-12-10  2:12 [RFC,v2,08/15] " Peter Chen
2018-12-10  2:12 ` [RFC PATCH v2 08/15] " Peter Chen
2018-12-06 10:26 [RFC,v2,03/15] dt-bindings: add binding for USBSS-DRD controller Pawel Laszczak
2018-12-06 10:26 ` [RFC PATCH v2 03/15] " Pawel Laszczak
2018-12-06 10:02 [RFC,v2,04/15] usb:cdns3: Driver initialization code Pawel Laszczak
2018-12-06 10:02 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-06  9:31 [RFC,v2,04/15] " Pawel Laszczak
2018-12-06  9:31 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-06  7:25 [RFC,v2,05/15] usb:cdns3: Added DRD support Pawel Laszczak
2018-12-06  7:25 ` [RFC PATCH v2 05/15] " Pawel Laszczak
2018-12-06  7:00 [RFC,v2,04/15] usb:cdns3: Driver initialization code Pawel Laszczak
2018-12-06  7:00 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-05 19:42 [RFC,v2,04/15] " Pawel Laszczak
2018-12-05 19:42 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-05 19:24 [RFC,v2,04/15] " Pawel Laszczak
2018-12-05 19:24 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-05  9:07 [RFC,v2,04/15] " Peter Chen
2018-12-05  9:07 ` [RFC PATCH v2 04/15] " Peter Chen
2018-12-05  8:57 [RFC,v2,04/15] " Peter Chen
2018-12-05  8:57 ` [RFC PATCH v2 04/15] " Peter Chen
2018-12-05  8:55 [RFC,v2,04/15] " Alan Douglas
2018-12-05  8:55 ` [RFC PATCH v2 04/15] " Alan Douglas
2018-12-05  8:41 [RFC,v2,06/15] usb:cdns3: Adds Host support Peter Chen
2018-12-05  8:41 ` [RFC PATCH v2 06/15] " Peter Chen
2018-12-05  7:19 [RFC,v2,04/15] usb:cdns3: Driver initialization code Pawel Laszczak
2018-12-05  7:19 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-04 22:41 [RFC,v2,03/15] dt-bindings: add binding for USBSS-DRD controller Rob Herring
2018-12-04 22:41 ` [RFC PATCH v2 03/15] " Rob Herring
2018-12-04 10:46 [RFC,v2,04/15] usb:cdns3: Driver initialization code Roger Quadros
2018-12-04 10:46 ` [RFC PATCH v2 04/15] " Roger Quadros
2018-12-04 10:46 ` Roger Quadros
2018-12-04  9:18 [RFC,v2,05/15] usb:cdns3: Added DRD support Peter Chen
2018-12-04  9:18 ` [RFC PATCH v2 05/15] " Peter Chen
2018-12-04  9:09 [RFC,v2,04/15] usb:cdns3: Driver initialization code Peter Chen
2018-12-04  9:09 ` [RFC PATCH v2 04/15] " Peter Chen
2018-12-04  8:50 [RFC,v2,04/15] " Peter Chen
2018-12-04  8:50 ` [RFC PATCH v2 04/15] " Peter Chen
2018-12-04  7:11 [RFC,v2,04/15] " Peter Chen
2018-12-04  7:11 ` [RFC PATCH v2 04/15] " Peter Chen
2018-12-03 10:19 [RFC,v2,08/15] usb:cdns3: Implements device operations part of the API Pawel Laszczak
2018-12-03 10:19 ` [RFC PATCH v2 08/15] " Pawel Laszczak
2018-12-02 20:34 [RFC,v2,04/15] usb:cdns3: Driver initialization code Pawel Laszczak
2018-12-02 20:34 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-12-02 19:27 [RFC,v2,02/15] usb:cdns3: Device side header file Pawel Laszczak
2018-12-02 19:27 ` [RFC PATCH v2 02/15] " Pawel Laszczak
2018-12-02 16:39 [RFC,v2,12/15] usb:cdns3: Adds enumeration related function Pawel Laszczak
2018-12-02 16:39 ` [RFC PATCH v2 12/15] " Pawel Laszczak
2018-12-02 12:52 [RFC,v2,11/15] usb:cdns3: Implements ISR functionality Pawel Laszczak
2018-12-02 12:52 ` [RFC PATCH v2 11/15] " Pawel Laszczak
2018-12-02 11:49 [RFC,v2,11/15] " Pawel Laszczak
2018-12-02 11:49 ` [RFC PATCH v2 11/15] " Pawel Laszczak
2018-12-02 10:34 [RFC,v2,10/15] usb:cdns3: Ep0 operations part of the API Pawel Laszczak
2018-12-02 10:34 ` [RFC PATCH v2 10/15] " Pawel Laszczak
2018-12-02 10:34 ` Pawel Laszczak
2018-12-01 13:30 [RFC,v2,09/15] usb:cdns3: EpX " Pawel Laszczak
2018-12-01 13:30 ` [RFC PATCH v2 09/15] " Pawel Laszczak
2018-12-01 11:11 [RFC,v2,08/15] usb:cdns3: Implements device " Pawel Laszczak
2018-12-01 11:11 ` [RFC PATCH v2 08/15] " Pawel Laszczak
2018-11-30 14:36 [RFC,v2,07/15] usb:cdns3: Adds Device mode support - initialization Pawel Laszczak
2018-11-30 14:36 ` [RFC PATCH v2 07/15] " Pawel Laszczak
2018-11-30  7:32 [RFC,v2,04/15] usb:cdns3: Driver initialization code Peter Chen
2018-11-30  7:32 ` [RFC PATCH v2 04/15] " Peter Chen
2018-11-30  6:48 [RFC,v2,02/15] usb:cdns3: Device side header file Peter Chen
2018-11-30  6:48 ` [RFC PATCH v2 02/15] " PETER CHEN
2018-11-30  6:29 [RFC,v2,07/15] usb:cdns3: Adds Device mode support - initialization Pawel Laszczak
2018-11-30  6:29 ` [RFC PATCH v2 07/15] " Pawel Laszczak
2018-11-30  4:20 [RFC,v2,07/15] " Peter Chen
2018-11-30  4:20 ` [RFC PATCH v2 07/15] " PETER CHEN
2018-11-28 15:50 [RFC,v2,12/15] usb:cdns3: Adds enumeration related function Roger Quadros
2018-11-28 15:50 ` [RFC PATCH v2 12/15] " Roger Quadros
2018-11-28 15:50 ` Roger Quadros
2018-11-28 14:54 [RFC,v2,11/15] usb:cdns3: Implements ISR functionality Roger Quadros
2018-11-28 14:54 ` [RFC PATCH v2 11/15] " Roger Quadros
2018-11-28 14:54 ` Roger Quadros
2018-11-28 14:31 [RFC,v2,10/15] usb:cdns3: Ep0 operations part of the API Roger Quadros
2018-11-28 14:31 ` [RFC PATCH v2 10/15] " Roger Quadros
2018-11-28 14:31 ` Roger Quadros
2018-11-28 12:46 [RFC,v2,09/15] usb:cdns3: EpX " Roger Quadros
2018-11-28 12:46 ` [RFC PATCH v2 09/15] " Roger Quadros
2018-11-28 12:46 ` Roger Quadros
2018-11-28 12:22 [RFC,v2,08/15] usb:cdns3: Implements device " Roger Quadros
2018-11-28 12:22 ` [RFC PATCH v2 08/15] " Roger Quadros
2018-11-28 12:22 ` Roger Quadros
2018-11-28 11:34 [RFC,v2,07/15] usb:cdns3: Adds Device mode support - initialization Roger Quadros
2018-11-28 11:34 ` [RFC PATCH v2 07/15] " Roger Quadros
2018-11-28 11:34 ` Roger Quadros
2018-11-27 12:10 [RFC,v2,05/15] usb:cdns3: Added DRD support Roger Quadros
2018-11-27 12:10 ` [RFC PATCH v2 05/15] " Roger Quadros
2018-11-27 11:29 [RFC,v2,05/15] " Pawel Laszczak
2018-11-27 11:29 ` [RFC PATCH v2 05/15] " Pawel Laszczak
2018-11-26 10:17 [RFC,v2,06/15] usb:cdns3: Adds Host support Pawel Laszczak
2018-11-26 10:17 ` [RFC PATCH v2 06/15] " Pawel Laszczak
2018-11-26 10:15 [RFC,v2,05/15] usb:cdns3: Added DRD support Roger Quadros
2018-11-26 10:15 ` [RFC PATCH v2 05/15] " Roger Quadros
2018-11-26 10:09 [RFC,v2,05/15] " Pawel Laszczak
2018-11-26 10:09 ` [RFC PATCH v2 05/15] " Pawel Laszczak
2018-11-26  9:50 [RFC,v2,06/15] usb:cdns3: Adds Host support Roger Quadros
2018-11-26  9:50 ` [RFC PATCH v2 06/15] " Roger Quadros
2018-11-26  9:39 [RFC,v2,05/15] usb:cdns3: Added DRD support Roger Quadros
2018-11-26  9:39 ` [RFC PATCH v2 05/15] " Roger Quadros
2018-11-26  8:39 [RFC,v2,05/15] " Pawel Laszczak
2018-11-26  8:39 ` [RFC PATCH v2 05/15] " Pawel Laszczak
2018-11-26  8:24 [RFC,v2,06/15] usb:cdns3: Adds Host support Pawel Laszczak
2018-11-26  8:24 ` [RFC PATCH v2 06/15] " Pawel Laszczak
2018-11-26  8:07 [RFC,v2,05/15] usb:cdns3: Added DRD support Roger Quadros
2018-11-26  8:07 ` [RFC PATCH v2 05/15] " Roger Quadros
2018-11-26  7:23 [RFC,v2,05/15] " Pawel Laszczak
2018-11-26  7:23 ` [RFC PATCH v2 05/15] " Pawel Laszczak
2018-11-25 12:35 [RFC,v2,04/15] usb:cdns3: Driver initialization code Pawel Laszczak
2018-11-25 12:35 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-11-25  7:33 [RFC,v2,03/15] dt-bindings: add binding for USBSS-DRD controller Pawel Laszczak
2018-11-25  7:33 ` [RFC PATCH v2 03/15] " Pawel Laszczak
2018-11-23 14:51 [RFC,v2,05/15] usb:cdns3: Added DRD support Roger Quadros
2018-11-23 14:51 ` [RFC PATCH v2 05/15] " Roger Quadros
2018-11-23 14:51 ` Roger Quadros
2018-11-23 14:23 [RFC,v2,06/15] usb:cdns3: Adds Host support Roger Quadros
2018-11-23 14:23 ` [RFC PATCH v2 06/15] " Roger Quadros
2018-11-23 14:23 ` Roger Quadros
2018-11-23 11:35 [RFC,v2,04/15] usb:cdns3: Driver initialization code Roger Quadros
2018-11-23 11:35 ` [RFC PATCH v2 04/15] " Roger Quadros
2018-11-23 11:35 ` Roger Quadros
2018-11-23 10:53 [RFC,v2,03/15] dt-bindings: add binding for USBSS-DRD controller Roger Quadros
2018-11-23 10:53 ` [RFC PATCH v2 03/15] " Roger Quadros
2018-11-23 10:53 ` Roger Quadros
2018-11-23 10:44 [RFC,v2,01/15] usb:cdns3: add pci to platform driver wrapper Roger Quadros
2018-11-23 10:44 ` [RFC PATCH v2 01/15] " Roger Quadros
2018-11-23 10:44 ` Roger Quadros
2018-11-18 10:09 [RFC,v2,15/15] usb:cdns3: Feature for changing role Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 15/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,14/15] usb:cdns3: Adds debugging function Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 14/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,13/15] usb:cdns3: Adds transfer related function Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 13/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,12/15] usb:cdns3: Adds enumeration " Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 12/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,11/15] usb:cdns3: Implements ISR functionality Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 11/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,10/15] usb:cdns3: Ep0 operations part of the API Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 10/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,09/15] usb:cdns3: EpX " Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 09/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,08/15] usb:cdns3: Implements device " Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 08/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,07/15] usb:cdns3: Adds Device mode support - initialization Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 07/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,06/15] usb:cdns3: Adds Host support Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 06/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,05/15] usb:cdns3: Added DRD support Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 05/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:09 [RFC,v2,04/15] usb:cdns3: Driver initialization code Pawel Laszczak
2018-11-18 10:09 ` [RFC PATCH v2 04/15] " Pawel Laszczak
2018-11-18 10:09 ` Pawel Laszczak
2018-11-18 10:08 [RFC,v2,03/15] dt-bindings: add binding for USBSS-DRD controller Pawel Laszczak
2018-11-18 10:08 ` [RFC PATCH v2 03/15] " Pawel Laszczak
2018-11-18 10:08 ` Pawel Laszczak
2018-11-18 10:08 [RFC,v2,02/15] usb:cdns3: Device side header file Pawel Laszczak
2018-11-18 10:08 ` [RFC PATCH v2 02/15] " Pawel Laszczak
2018-11-18 10:08 ` Pawel Laszczak
2018-11-18 10:08 [RFC,v2,01/15] usb:cdns3: add pci to platform driver wrapper Pawel Laszczak
2018-11-18 10:08 ` [RFC PATCH v2 01/15] " Pawel Laszczak
2018-11-18 10:08 ` Pawel Laszczak
2018-11-18 10:08 [RFC PATCH v2 00/15] Introduced new Cadence USBSS DRD Driver Pawel Laszczak
2018-11-18 10:08 ` Pawel Laszczak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pnupzaz1.fsf@linux.intel.com \
    --to=balbi@kernel.org \
    --cc=adouglas@cadence.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbergsagel@ti.com \
    --cc=kurahul@cadence.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=nsekhar@ti.com \
    --cc=pawell@cadence.com \
    --cc=peter.chen@nxp.com \
    --cc=pjez@cadence.com \
    --cc=rogerq@ti.com \
    --cc=sureshp@cadence.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.