Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3052252pxb; Fri, 5 Nov 2021 09:00:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/z/HpY9RLitnUf4xsoUgdLah1vZokoTCXryAyEKmyH77hfpQ4fjpDf/MUoEyidEIeaUvq X-Received: by 2002:a6b:e00a:: with SMTP id z10mr24008iog.148.1636128043647; Fri, 05 Nov 2021 09:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636128043; cv=none; d=google.com; s=arc-20160816; b=tBGFUIg2tCvb37zp/G0t2euxNNNh+NIShqQxP8rIy9+w/IndDPWsfDjXULS8ICqmYa Ye1Ax2jeq8QRdO3phQEUemQwiDZrLEgs9pvizejOTu111N+1M106iXmDQUYK1/OTPtET nCP/B0uxfomGEP+plObeTURrODrIY8jvUiXM+PfoA53YOGc+rlrvfuKsq+eKJFdt+vka gV/P69JBVRQKJlueQe2bZmYmwQqEe8H0/TYLjZvjK28OCc5GU33AOwfQBQ4yJOARXQvw 5yukHh9zGxhmFl/gaKXIrPzRlSicn2LzoY8t9cDgDu1+sApz6pa8gDSusBw0DCvctDoJ tp/w== 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=QpRU87aczKNt8pCnpW5GQbPMrLgRV+FWXIAVVwm+1ks=; b=SjX+m/Co/4W/x6RSqENPeA5CEgnUikhI4TShTkz7TDbYzu6bGic1xfIY58xclQ3MB1 BbCXiZ980NQ4dBtmnm6JiCDjGxTfMUrLEpmsmbxisJaDtwfVm39U6LQM7Q6egqcu3Doe cY4rEfotcNN6l6HcVyXBenStQEGyxK4TotAZAZANdgypgGLVR0ayhrKqW8QpMUDPBAnH 5yjpoTwlrbvrNKeXQqolmgQ0zLD8PoaUiiRzmv0jOSHpkaIDbxMizLtnplPFe/25Unp3 dW5ahi641LYvXthL78EOeGjU5NEtbNnk0a0jnvVc5Gycgrnw32GuDQfe6+E7Bh7/Aact mCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=bT9B1fIT; 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 g7si10561608ilf.124.2021.11.05.09.00.06; Fri, 05 Nov 2021 09:00:43 -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=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=bT9B1fIT; 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 S233103AbhKEK1S (ORCPT + 99 others); Fri, 5 Nov 2021 06:27:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233066AbhKEK1R (ORCPT ); Fri, 5 Nov 2021 06:27:17 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45A13C061205 for ; Fri, 5 Nov 2021 03:24:38 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id y73so10126354iof.4 for ; Fri, 05 Nov 2021 03:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QpRU87aczKNt8pCnpW5GQbPMrLgRV+FWXIAVVwm+1ks=; b=bT9B1fITwmYV+PY51N96GYVFaPX1+Ee8OXYGq3NGAzRwfxbvfVtiKEhsTuCxhaNa26 DAesW421GTbjotZLvw9sFznn3tBe3sdlDCthVOw4xfzhbtAbcLIEQAXwnMkiRB82Wkv8 v8+jYchHaNGnC1LMcCaRQsvDK7gprwpoJdFT/YfNrrCPjFY0neNLSIR11MiUJVERzYDI 8AvdPPOIWLjgR/+NGSAYO4HCpvOBTRIoLJ6mqex2svUQPUjFrmth4TLBmO3/GrHNXhxu o3wM7xPf+8Q3KjT3DmTnrx4ln6ZAiGGHVoYBsRlz2RLsUegGSt4192axrycJ/X7cDpbl S+2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QpRU87aczKNt8pCnpW5GQbPMrLgRV+FWXIAVVwm+1ks=; b=Usl3ZqLmgW1S9/8kJy0P7KKcgQnW4RdKRPfADrKHd9ARdw8bp2hH0/ngZxPZ5JBqRt mzrxQLMFRV1E01GGnDm/j9xBc4k+7pb6+IhsgYT0HdBqKuu00x0lCpcW1kr28jiM/HNL 9oH9a/UQqqoLqlePKnMdQvinLkxt/43rTMp6K29BOIJ7A6fxFfIktVzoYGKu/OMuRauO 3KMb6J2UqBYzzLEw0VUmkqajD2454tDO4Mshs/avQyLO0jeixJ45/VyumXi8mSRhY8nB v2xYcg/S67V3QwIuRgmz/QkAstyOmpjYxyNBXLz1FBMFIdqOCEzJsMPmrb6n8c5y8R1Q N7Pg== X-Gm-Message-State: AOAM530BwHVAJuUo/RR4wkIK71ZiZRRCoiOu9m1e6BNhSLVJlmxNTka8 xqR5YqB9PyXdLqV0uW5aB7HRXXFexY7lsf8n6YT/Cw== X-Received: by 2002:a05:6602:3350:: with SMTP id c16mr12909576ioz.43.1636107877555; Fri, 05 Nov 2021 03:24:37 -0700 (PDT) MIME-Version: 1.0 References: <20211102165657.3428995-1-robert.marko@sartura.hr> <20211102165657.3428995-4-robert.marko@sartura.hr> In-Reply-To: From: Robert Marko Date: Fri, 5 Nov 2021 11:24:27 +0100 Message-ID: Subject: Re: [PATCH v7 4/6] reset: Add Delta TN48M CPLD reset controller To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Lee Jones , Philipp Zabel , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , Andrew Lunn Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 2, 2021 at 8:31 PM Andy Shevchenko wrote: > > On Tue, Nov 2, 2021 at 6:57 PM Robert Marko wrote: > > > > Delta TN48M CPLD exposes resets for the following: > > * 88F7040 SoC > > * 88F6820 SoC > > * 98DX3265 switch MAC-s > > * 88E1680 PHY-s > > * 88E1512 PHY > > * PoE PSE controller > > > > Controller supports only self clearing resets. > > ... > > > +#include > > +#include > > +#include > > > +#include > > I haven't found any user of this header, but mod_devicetable.h is missing. Hi, thanks will fix up in v8. > > > +#include > > +#include > > +#include > > > +#include > > Shouldn't this go before linux/* as it provides more generic definitions? I have looked at other drivers and I would say that almost all of them do it this way, putting it after other includes. I also personally prefer it this way. > > ... > > > +#define TN48M_RESET_TIMEOUT 125000 > > +#define TN48M_RESET_SLEEP 10 > > In which units? (both) Its microseconds, will make it clear in v8. Regards, Robert > > -- > With Best Regards, > Andy Shevchenko -- Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: robert.marko@sartura.hr Web: www.sartura.hr