Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1997168pxj; Fri, 18 Jun 2021 23:30:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa3J4UCoInBDi9y12V97W5CM5YVa0JMCppGqK1T5CgtTty9LuCfCRSUBB8i2Ebi//49T0r X-Received: by 2002:a17:906:a20b:: with SMTP id r11mr14393871ejy.221.1624084236025; Fri, 18 Jun 2021 23:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624084236; cv=none; d=google.com; s=arc-20160816; b=EZd3HYcvBOp8K/Q+fcg2oHryrInzAS/K5AHL8l/Cc/vEiy3+vmAsPqN4fjG4NSWXGM xogMnQdZuFvUWA9/dtReYnqu3Lx6kCB4mUsoVvFzM1T0vZe7NF6+dbVAkftCRRpGH54r EkHtca8npiR/jGkQtD9ZiiFSzJzha1DgSp/yRC5vtAyXsZRg8OniTookIIj0wMNhGF7U QYAr4M8ocw0tDIPafQs0AFDAccBhHL3voLhYPf3XTOb4R3IvTbMvPm3TT94OTp+YQvRk /ssircTGXCnxRrITIz/7oYsOxprv/bAeWY7EQhMcRe0rk4jBubipuhk6PzVUU4mqYPgn 40zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jd6Y9FdRbI8WadsWZ8AlDZHBohYqsQzy8vJ8yBRlmjY=; b=kF7CpTyNorNmyZb12RKQujmvvfZ0YDuufnNdcuNbfXVA2/SnXa9UPiYg43PV9kFLbt VW8Uwc6COapwYanM+ec4VMB6SpOgY1Kji9Y4k6IU6+51GKxb9xcvNpbv5ZG+XJmvXyiW dvaipcYhpUJegGCYEBlWk1XV2lj3lyChjitXWwuDYej4P/uQqImgvv1Ajt0CdZDXwOOK 5pVswEtxZSM8im2jP4Ka3r3rS9UQvgTKvph2W1CvE65Y0hZmeo56Op830H9Owb+YPiRP LnuK2wyTiz7VxXFtGwJSvSnBm2KZdIgG9y8sl01CXWJzQ3IyrEf3VIU10CQehWcLV23I tTww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=NkcH1LO5; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay24si11359862edb.162.2021.06.18.23.29.36; Fri, 18 Jun 2021 23:30:36 -0700 (PDT) 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; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=NkcH1LO5; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbhFRUJH (ORCPT + 99 others); Fri, 18 Jun 2021 16:09:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbhFRUJG (ORCPT ); Fri, 18 Jun 2021 16:09:06 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E059DC061574 for ; Fri, 18 Jun 2021 13:06:56 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id t7so10162086edd.5 for ; Fri, 18 Jun 2021 13:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jd6Y9FdRbI8WadsWZ8AlDZHBohYqsQzy8vJ8yBRlmjY=; b=NkcH1LO5w4su6nqdC6W+7rrRp4CL85LjmCG4Xm9yjd68m/9Qu+lZD/z92BsQP8JIFT rnQNsTX5bLt9tO05Yg5lD58qMlFRQe0oFo0EXj81q5Y1UAXZ8vVNN+ZKY/7o0JumIp4g m6laKU+RGHL626SDXA0pPxO3WwVGtR55PmY3gLFLazY0NmL4tompZZnpUNvpZQitC/ac EIhxE/KEfCAzsZFF3hazazsBGqFPLd0qJTK5NZv8mQUXil25YRSS0XdtC1zjE1q/3ioh GzibQePBbyWvj3biOHS9oVhvWi0R6eXe0AgFA+CkVdTr80uIpkFzzpkpOlXCTf2mH66g UtUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jd6Y9FdRbI8WadsWZ8AlDZHBohYqsQzy8vJ8yBRlmjY=; b=lnz+gtcpoHHPmkTCU+VGjrUu+D8IUdJ36tpKgHCBm4XQ7SCe0+H3xlJd6LZ4FoCwuN ZyS0ZpkV3JgJCoxVHtw69yl6U53Sm0FzU+8vCVA+XTS4WB+cx4JbDQGQtZMexuruqWo/ nsvQ56j4kkL6TgSam91T/SyLw7Ga2PsN38+R+h3BOaeQ7Rrbg8YQTy3L8doKrRpNUv68 2dThzAYTRydmXwLq4ijKAGr+vplOVBfdt6ZWM7ia4EsfAU79cVTB65MTkIoB7ObGoUSY ldGae5R8kirRdVSnPQd3ytt0ODhxsiGMY7eK+7oxDNcOK4EFDgLoWC5qazG+3v0rXVn8 1fPQ== X-Gm-Message-State: AOAM530x1kYMnEIjbgJmXhXbf3yt3IdwCr7fS7AXLMBJvsales/t6JD4 MlGzNUqwVJWMwVTCNX/T6qjPpYwv7cN7W0pRlaE= X-Received: by 2002:aa7:c790:: with SMTP id n16mr7323619eds.98.1624046815446; Fri, 18 Jun 2021 13:06:55 -0700 (PDT) MIME-Version: 1.0 References: <20210617194154.2397-1-linux.amoon@gmail.com> <20210617194154.2397-7-linux.amoon@gmail.com> In-Reply-To: From: Martin Blumenstingl Date: Fri, 18 Jun 2021 22:06:44 +0200 Message-ID: Subject: Re: [RFCv1 6/8] phy: amlogic: meson8b-usb2: Use phy reset callback function To: Anand Moon Cc: Kishon Vijay Abraham I , Vinod Koul , Neil Armstrong , Kevin Hilman , Jerome Brunet , Philipp Zabel , linux-phy@lists.infradead.org, linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anand, On Fri, Jun 18, 2021 at 5:33 PM Anand Moon wrote: [...] > > For shared resets (like the one we have here) reset_control_reset will > > only trigger the reset line once until all drivers using that reset > > line are unloaded. > > So effectively this new phy_ops.reset callback will be a no-op. > > I know his register is shared between two USB IPs, > but I have not observed any issues. have you checked at which point we're then actually triggering the reset? I assume that you will find that the reset is only triggered for the very first power_on/init call - which makes this patch effectively a no-op (yes, we're calling reset_control_reset then, but that doesn't mean that a reset is triggered on hardware level - see drivers/reset/core.c at around line 346). [...] > > > - priv->reset = devm_reset_control_get_optional_shared(&pdev->dev, NULL); > > > + priv->reset = devm_reset_control_get_optional_shared(&pdev->dev, "phy"); > > I think this breaks compatibility with existing .dtbs and our > > dt-bindings (as we're not documenting a "reset-names" property). > > What is the goal of this one? > > > > OK, If we pass NULL over here there is the possibility > USB phy will not get registered. I don't understand why - with NULL everything is working fine for me. Also no matter which name you give to the reset line (in reset-names), it will be the same reset line in all cases. If it's the same reset line before and after: why is this needed? Best regards, Martin