Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3889226pxu; Wed, 9 Dec 2020 03:17:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR0j2fCaZk88gAr3gvV6sIkA9RvrGBKGLNKQ3TJFWueFsjYzdL5e2wY8nC/uoHoommu71O X-Received: by 2002:aa7:d6c9:: with SMTP id x9mr1461280edr.96.1607512649881; Wed, 09 Dec 2020 03:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607512649; cv=none; d=google.com; s=arc-20160816; b=qSd6BSNZduBedwEPsjFfXYAJrpLQ+Vf61cSJHqj6Fffo4tAPwD43UIKEpEiWN2BDiI VkRB0nKbgKH5otbqFWjEo9oIPU2zXiTWd2IIWjfoKUArU1xvc6t8dKpufsGJRg2BByO9 pq6raosDLUtk+wzr8ly0gq6AIhcmF93sobhqDVJa7r6BC/mWtF9i1VSl1PsmG2XHXg0/ bwoPs6Gbm11a6QFB5OhT6cnFwvedIbGRmhey2oB/SUj9TlOTB3o/fW93FyFKDnfHAqxD JGYdgjAfOYIz6i6CRd6jcwo59ZvUOflFWfRJE0YVl5oPj6ZQieOjXFLHViIrutrLFPnA aZXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=GKBkBcM38sTIUocxoKYg1sx7dbbBTjxd6H0IWqIYH0A=; b=A5r1GfsSSqp8LZT+SxayMr9jLaljrX0U0GdvVK91NcOZ/MalQEe/ilVJMQqY7Hy8Ak +UsvJL26du09CdCiF9VNRn8TX+qGeN2w0nUp3evLZDgyGUM131BKpuS8tNKTPpyXzIjo xTXJ9hbyUFaLK2mJ5BqXVQ9tI2+YHjdysvxBaMn5RkwLYDH5ElMwSfZPa54jaLXMdMEB yZf0djGdlcbLKHtLDafQneIlTMuZsZKF8EJDztsr9ghFVQXjWQqJ6/V43/t18Az9l7p3 IrIZpbattZjpgeCCVc2johM1MmDPlnAuRpRlk9i2hXlZQMBM5ggpcVaaCnI5tayxrrSY sJZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si661664ejz.649.2020.12.09.03.17.06; Wed, 09 Dec 2020 03:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730521AbgLILOR (ORCPT + 99 others); Wed, 9 Dec 2020 06:14:17 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:38621 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729887AbgLILOR (ORCPT ); Wed, 9 Dec 2020 06:14:17 -0500 Received: from [192.168.1.155] ([77.2.91.93]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MLA6m-1kVyjB0KSg-00IGWK; Wed, 09 Dec 2020 12:11:39 +0100 Subject: Re: [PATCH] drivers: usb: gadget: prefer pr_*() functions over raw printk() To: Laurent Pinchart , "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, balbi@kernel.org, leoyang.li@nxp.com, linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20201208144403.22097-1-info@metux.net> From: "Enrico Weigelt, metux IT consult" Message-ID: <9aaa06ad-0bd8-486d-b16b-66927d57cf96@metux.net> Date: Wed, 9 Dec 2020 12:11:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: tl Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:TS1+oAY6AdC0UtwhrAetL+tFGsmfL2VfyybwOSaT75VKnrTnQRP +IsskL1kzQM9VxvORn/3q+2HI+37v7ZwZzAgdFcCtYyGKF2H12RAOoHm/AnxwZEfQfdTnAG riDnR9h5WKx005G0EBL3tnCOrA3A2kDwZoFjNwOeV9e+JMvdFNOPusk61sFmC0Blv/Vh2PP j1H0hZddMV8nXVQWrrzyw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:RM211oNVR54=:1XiRZHVIi19YQnFsm7XyvZ J8yJn8EPVUS+l4KRvyFYjOoysMsMTUUSmR5ly4TkYSj+HKFlWvFnACtU+qrg1mjdUGfg04CLB vXaZgfvNFwFK7lEroaK2e0YkqQEIrWOv6vHQXfQXtwo0VdInG3xO279w3eyt/T4UQZTUciKpK uCkQxlDMxYW8HrGoQqsNUip379n87iTHxVkuDsEnz0Q1x370MzRfUncMlfmDIbF/0jmFrEubV GMzOnzXenmF97iQKeIwVX9b4haZmsVLtVXWoytsoEtuACmBn0J+XbqWOlT4i8lLDszXGmH+h1 75P9mNi7z7FRFtGp38Pb+hkNFskuQrtfJM3KOn4w0fFcvpFLS3x5Eo+D8TqRTR4hmLIeNPuz7 t4lz6Lmk/RWJUE4JHACJUKzmb4ZibNft2dnWOOH3V6uhFP6KkIhPurHBQFa/q Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.12.20 16:54, Laurent Pinchart wrote: Hi, >> diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c >> index 2b893bceea45..4834fafb3f70 100644 >> --- a/drivers/usb/gadget/udc/atmel_usba_udc.c >> +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c >> @@ -1573,7 +1573,7 @@ static void usba_control_irq(struct usba_udc *udc, struct usba_ep *ep) >> * generate or receive a reply right away. */ >> usba_ep_writel(ep, CLR_STA, USBA_RX_SETUP); >> >> - /* printk(KERN_DEBUG "setup: %d: %02x.%02x\n", >> + /* pr_debug("setup: %d: %02x.%02x\n", >> ep->state, crq.crq.bRequestType, >> crq.crq.bRequest); */ > > I wonder if this shouldn't be dropped instead, commented-out code isn't > very useful. Indeed. Shall I send a separate patch for that ? > When a pointer to a struct device is available, dev_err() would be much > better. That's however out of scope for this patch, but it would be nice > to address it. This would become > > dev_err(&pdev->dev, "Check IRQ setup!\n"); > You're right. I didn't check for that yet. I'll do it in a separate patch. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287