Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp299052rwd; Thu, 8 Jun 2023 00:22:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5v+6yIr/VJ+2zBJyKUrN2p6k39rC9y8Ezwhg7odqX7LfpxKypUrpOMQ3o1WKU1NpWHA+/Y X-Received: by 2002:a05:6a20:b797:b0:105:6d0e:c046 with SMTP id fh23-20020a056a20b79700b001056d0ec046mr5005198pzb.26.1686208937832; Thu, 08 Jun 2023 00:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686208937; cv=none; d=google.com; s=arc-20160816; b=NB6F1+bm70VzBbazbt1CpH9200r6H5iEth5qwuZR1ZzkBgC4HyihOV5eWHzPiIxvx/ jF39/T0q3e6kDbk/aXZnkB4qhAmOQroCYgvng2dSntMST91V8By8JcFEqWfCB4HjpUWw hN0mmOqzXUUfuc1yZ1EKHFkox7u3er8Acs4CS7QfI2MfMJwvMCT0/McLgEIfsbi8x2ew giATKGPdISlBzVrL1fggr2jSt3qJE1b67Ot6TmnVuCs/jnPcDiTFmT4kViOtRj6vWgQ+ ea9iAHaBXuLkSZWtKQLGu1Q6+ZDmung2w4/6lzMKMTkS42B+eqwH2xXp7y7Hs2H9rdG7 i76g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1sd05CLDYUSvBW3GOCX6CLVAicdJRZHkCzuK6EVK+t4=; b=LKH+G1W4KY8XcA1U6/agwOqd0SLXzjRXF8FyubLbGIJffcRRItH2Ed5LVpf5yRyZD5 At65tE8aYidIxZeUyt1gljLpAMN6c4Mir7zkhyA44BfTI0zTmT3j4f5C37M3kLoYdKab VbOV//g5V5Kkb843KX2hcQngOz6zoBdDH0bP/5VfprC8R8NLqp/qX/69oog8Ms8vHWAR 6WGEWa14OlRIWzYQmas719OjU+iAP6l7IYfa61IZIyI466+TpytHePkSrvHEjRsNzsec ZkbWygrfqF8XoBSOhIQl8Kfpp3DibIHiUU0ovvqw+6pIgzRkpeT8fEQVXpoT+y2/g0GR Duuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rsu5m2iE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k133-20020a62848b000000b0064d56036aeasi405376pfd.255.2023.06.08.00.22.06; Thu, 08 Jun 2023 00:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rsu5m2iE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234194AbjFHHPM (ORCPT + 99 others); Thu, 8 Jun 2023 03:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233900AbjFHHPK (ORCPT ); Thu, 8 Jun 2023 03:15:10 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0246B1BEA for ; Thu, 8 Jun 2023 00:15:08 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9786c67ec32so56426266b.1 for ; Thu, 08 Jun 2023 00:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686208506; x=1688800506; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1sd05CLDYUSvBW3GOCX6CLVAicdJRZHkCzuK6EVK+t4=; b=rsu5m2iEH34QOsXVOnjWvmLBFdKyQWc7ps8rhXGL7otj6DyrQPgK6OqmEZyPSctaPr 9jz74ROAyIx4pNRpN+76HajlmxElGqb+N6JREhMttjIChF+7qmtL3Mbw0FEkuITN7sGf Oz67H/s8Y5j5QPgQOsKUnveC1jBjjiozx1WPjhZ7qd5D4Y6L1PXYiH0zjZvnnlWvNcPd 71ll6RrJfzBFk3PrbXfV56kR1S0i3xiqJ7NSRp6RqiGNNC+O/i5qqsGu0CHoSKP0Pu2/ da4ZpHaKdWU48GBKpvWcv3CeUBrauB+MsiW+2dCt7lAmmodb4iAMVf0rxpcf/QqPlYPi I8GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686208506; x=1688800506; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1sd05CLDYUSvBW3GOCX6CLVAicdJRZHkCzuK6EVK+t4=; b=KecoUFXnh3LTC4dH3+cPmEQJaEDFQ245G6qtayHT0uDDLcdESvekkmg2arMkbXhz4v cNYCJpV10K+VoYYzDmTUkcJrUnMJCTPeXyIwcfkYydccYEfvXUeprOo82aucgEO6Rr/2 akY7irh0fj9aMDDo+YmC7AbcTXyLfxhxQ8bQEiUpny310Pqa3G157jKuPRkvsoOi82Ow O8VEFf2Euu5JnkZOAXXHdofC6QTM0h0STh2Fax7p9jkDkXBi7b7MD4Hp6DIm5K2Kk4B5 63jIUL5q9aB83RyPoMtHyv92Q+emT06lx8s3xrK1qT8O0a6ZPuoBw3AA2dD8lhhaQ/i0 3q7g== X-Gm-Message-State: AC+VfDwHzg5Q+O+ddPCaZ7OGEMvX9vhpJF6xkHVtmMCy0zXlflz2Xvqo xf4VCPI5iKShtoYmBVhjHdM54bPIunck0ThQ0As= X-Received: by 2002:a17:907:7da4:b0:974:1c98:d38e with SMTP id oz36-20020a1709077da400b009741c98d38emr8670170ejc.2.1686208506478; Thu, 08 Jun 2023 00:15:06 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id p10-20020a170906604a00b009545230e682sm305674ejj.91.2023.06.08.00.15.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 00:15:06 -0700 (PDT) Message-ID: Date: Thu, 8 Jun 2023 09:15:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v3 2/5] phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY Content-Language: en-US To: =?UTF-8?B?U3RhbmxleSBDaGFuZ1vmmIzogrLlvrdd?= , Greg Kroah-Hartman Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alan Stern , Michael Grzeschik , Mathias Nyman , Bagas Sanjaya , Matthias Kaehlcke , Ray Chi , Flavio Suligoi , "linux-phy@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" References: <20230607062500.24669-1-stanley_chang@realtek.com> <20230607062500.24669-2-stanley_chang@realtek.com> <79201bd6-6048-7013-aeb7-34d218139844@linaro.org> <8cb2d82c3b484262aa866c5e989fc8cd@realtek.com> From: Krzysztof Kozlowski In-Reply-To: <8cb2d82c3b484262aa866c5e989fc8cd@realtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/06/2023 08:59, Stanley Chang[昌育德] wrote: > Hi Krzysztof, > > >> I commented on your second patch, but everything is applicable here as well. >> You have many useless debug messages. Many incorrect or useless >> "if() return" which point to broken driver design (e.g. concurrent access to half >> initialized structures where you substitute lack of synchronization with >> incorrect "if() return"). Undocumented user interface is one more big trouble. >> >> I doubt you run checkpatch on this (be sure to run it with --strict and fix almost >> everything). >> >> > 1. I use checkpatch but without --strict. I will add it add and check again. Around 300 issues pointed out... > 2. Do the debugfs interfaces need to provide a document? > I don't find any reference about this. Not sure if we have it in docs, but it is discussed every now and then... https://lore.kernel.org/all/CAMuHMdUaugQ5+Zhmg=oe=X2wvhazMiT=K-su0EJYKzD4Hdyn3Q@mail.gmail.com/ https://lore.kernel.org/all/2023060209-scouts-affection-f54d@gregkh/ Best regards, Krzysztof