Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp289949rwd; Thu, 8 Jun 2023 00:12:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LpEWn8uazbu+QFSJF6XVv9++lI8/BnO1l9vr+lmvCIvZJyykHIqLagxzD25xhR+mlcwFi X-Received: by 2002:a17:903:2305:b0:1b0:4a37:9ccc with SMTP id d5-20020a170903230500b001b04a379cccmr8762286plh.62.1686208333701; Thu, 08 Jun 2023 00:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686208333; cv=none; d=google.com; s=arc-20160816; b=BlQHOWomWN9SIwl1J01nOF5oieH/BaHjyhD1uXgaKsv4xVTTb5d1pYPyS+Ud0wgogJ ZsD/JCCaM6pzzIiRTtYz2DqtWddlDy3k2V+L8zZ3cPOPqneND3ZBYnHzvybM4vmF1U9d Y1LsUkIx1m5ZT8MRP9kFVDbgeD+tzI6lUjq4d717+LA3q5TdGVQS98jvmMYJSanqFd7B RSvSoBiSIkJ+gUcnvO0cpWA+EwICDN5BPC40yiQmKiRECHw4SGUp0NAEtvkYzVyNJz9v u9/aF3Kx83ZcS27aGLVfPwhzjDaTUUQq8lW5S4dR3aKF7hdTC0kDDK7Cn2rfxnr0Rxpd hbkw== 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=+VCYQ0Vq8Rf6ius+6VmSoJHA+8MpI2G4Z5DYwrvA2w0=; b=VVE5OXYNMB5iPa0wB+EiqiKIpsz9CHRYgiEUFaggBFa0HHvcpNzQ2TGskW9IZGuaIK S1lLlWsBjxRlVe4Rg1qDMtzHGBWNINpwmb3GPDJ7CWpD+JJTYuRTQq17B9wMBpJKHkEW UDOQCKGC7VIyYK3pO0JWNDyYn5r3MsnuR/KIIe1nKqJvQaXFl3PG7yxi/+GiBiqmQ/nL NwoyZvhN5hhUrV9AO21F+yPfN5ZvfruejJ1kETqIdAcPU6B8msjFgRGbeUXPVNUxeIv/ ivc5fv2YwYj4WEsRnZSSjSPOSCAJI1ch9nKS1xGcxk3Zhbz/SXzVEjNUVdJbrQPPv7NJ ETBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gT5J/WnK"; 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 d20-20020a170902e15400b001ae5fb1436asi626032pla.184.2023.06.08.00.11.57; Thu, 08 Jun 2023 00:12:13 -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="gT5J/WnK"; 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 S235147AbjFHHAa (ORCPT + 99 others); Thu, 8 Jun 2023 03:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235108AbjFHHAU (ORCPT ); Thu, 8 Jun 2023 03:00:20 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0A126B9 for ; Thu, 8 Jun 2023 00:00:18 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-977ed383b8aso52327466b.3 for ; Thu, 08 Jun 2023 00:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686207617; x=1688799617; 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=+VCYQ0Vq8Rf6ius+6VmSoJHA+8MpI2G4Z5DYwrvA2w0=; b=gT5J/WnKL6bPKZtMDM0WF70NGnKhfxOX30KwqIV0lfYTwjVng5Ke0xgwxOEJULD6MK Lgf0teDYptJs0TaXdNmSJN+dKsZoFd8JUcfWVBob+KeGJ7oQeqMJ9WcfSmq7oGFsGLxr 4irYaNprpTOLvFtGPVOkL14vE0pPVRE0QMW2JdRjVAQ29zp7L7dNg3eIULwYODZoqPoo GTrW7VMuyM9kV67sLILcPNqzlyqWQmbWdHhNuSE2U4474CmVf+2yYbzzXQb0Oma/7OhB wwGcFkw8+ZnXmyw9fA8WmDxJP4UHC5lLEdRR64KaXXqLuv1FVBugpbu7zcHPEAspxzN4 c3iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686207617; x=1688799617; 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=+VCYQ0Vq8Rf6ius+6VmSoJHA+8MpI2G4Z5DYwrvA2w0=; b=cJOYWHnCi+ZrCcd/+sen46QxVP3IsIxtuoHZa0qYgto44eKpYy4iIugRbvq8D3mgyB OmYdtk7ooo/1zEMdNPsbTKgelabSEgtl3Zav6cHM50xqmt1FkTcaIQhtAraTISLYYPlv atJjhnFe2l3R+6JtOlQFLVQbpTUQ9gXIlQ7ZQmBMlTCIN0TYRS4O1YMQpVdgYhZCXMAm w2c7hHCabIoFJ2uaDb8BQiyykPKrg90BxKtgq5zalOAdQfCVHCNBzv+QMwo0A8KQRbcl qtFZw+cZeS5KUXGvBmBodV+wChkt8k4hEIWujlgapbUKCkCAjR3Lxiuelf5qqsG4oGG7 hpRA== X-Gm-Message-State: AC+VfDzr7oYOF50s7R4LEcC8o5Cv66YprhK5i6YNOL0S01s/yYPaZR/3 SluaH4tGOIrHvpi0z5ikPxXjDg== X-Received: by 2002:a17:906:9753:b0:968:1e8:a754 with SMTP id o19-20020a170906975300b0096801e8a754mr7610497ejy.72.1686207617176; Thu, 08 Jun 2023 00:00:17 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id w8-20020a170906b18800b00965a56f82absm281860ejy.212.2023.06.08.00.00.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 00:00:16 -0700 (PDT) Message-ID: <0d4d77db-3d09-a5ab-b3e6-93da771b4b2d@linaro.org> Date: Thu, 8 Jun 2023 09:00:14 +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=ham 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. > 2. Do the debugfs interfaces need to provide a document? > I don't find any reference about this. debugfs interface is for debug but in your case you don't use it that way. Best regards, Krzysztof