Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1253474pxb; Fri, 21 Jan 2022 13:28:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwriyJfwqGRhvRJKRx1329Kpdsm/HQbqgI9NVEN2WU7mpg0t4qAsx+Wdohs4sHDAtuiqKY X-Received: by 2002:a05:6a00:2389:b0:4c5:a842:f54 with SMTP id f9-20020a056a00238900b004c5a8420f54mr5128764pfc.47.1642800505344; Fri, 21 Jan 2022 13:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642800505; cv=none; d=google.com; s=arc-20160816; b=zf4nYMJcVflSNz85HMpRyk5RAPxnEAZzbgMvarG4VV6e964BSi64GEGjAERkeeGlOd dvNQTdyxo7gH7CJtTscP7g7SOaopm7EVyGZtMblZ7MUk2HksRgMeRDEuINFx7yXv5PdR I/6ZEiEPWvUuI3pgV/iqDcW1g4dkyVXEz8xSQrXpdEQj2QuyYNYKpQezr6ZE6er48Mhc /Yx3JwonyrgqZ4Uu3hfoSxX+DqlKlk7OZx+uJllxxRUV03g0VkxZ20t/mXj6wV3z/ORQ 9qaZfShU7JhvmdfJGX93nIMufnmGPHs9rFCSBeOEsNrdWe1hHq9i1YFNCwrbcwTSyAuN btZw== 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=wSZuENnQtvpSb9XtNjDDtEDFI7SfngDO55OTaUOdmw4=; b=OovrGMlUYtc4xlhpKqJtE6cxhQoH7qD+cT2mhjUsz51unuPpFouAzVYq3Hx+pS5aej JnhduyrXNeBQLtZDhdFovaOzwX57KSm2omwMl3cA7bjhWdVQLXMLkvyRkYwyqVSGuWOu ysTIsDqfuxrlW9m8Xs5nW/81qiuc65v4bEbUWwrMs1Elhkz0MbVwGsSdMl4zwciKDKX4 NeMDu0uY5lsWDLJy/skfhGMMNjqH6l1OVSH5HY7/sh6EB+q3a+FK/RBOfN9wI3x3jKJm QrQmpO9AVnb5nmOakcTxn7i5hTSED5dOJ15A+DAyAkwXDxJlMf1PUDxK58PbUwG8ctX4 gXZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g7OIi0Gt; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl7si4288896pjb.5.2022.01.21.13.28.13; Fri, 21 Jan 2022 13:28:25 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g7OIi0Gt; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230315AbiATLJl (ORCPT + 99 others); Thu, 20 Jan 2022 06:09:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbiATLJh (ORCPT ); Thu, 20 Jan 2022 06:09:37 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10E82C061574; Thu, 20 Jan 2022 03:09:36 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id c24so24739331edy.4; Thu, 20 Jan 2022 03:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wSZuENnQtvpSb9XtNjDDtEDFI7SfngDO55OTaUOdmw4=; b=g7OIi0GtebZGboMXAanw7y/VpJ/1Ulx94qe38Ts36dUTPuIus4WUyOQzORpupDgwTr JLWdlRiF6LCXYRTxAxfujua7EynlrZN3tyfhlzDkusqbsv20lFibq62IcEBO+AVukAQc n1rABmd78KdBSe3rh1URZiWlxYAG0129Ke7IFn5omYXK7YAB3Pc8K5yCwJ7MBg53Z0S1 WbhjWP2wzmUkIZbjgT3yBNy1ewGhXRbkt3gFd0H95ErBGpGItazyBb+fD4ohByxtQAyB XRyaXryUF+SlvGD2eI9I7bSum7iNa6Gb3OBiGoJAn8enpv9NNKZM2aHEL8xWbKyYWlKm Qnuw== 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=wSZuENnQtvpSb9XtNjDDtEDFI7SfngDO55OTaUOdmw4=; b=MPgCDhsL4v6sqkb7XVfFj2ik5qe0Bwg2BpcyUI2gQTLkjfQiUSWgrGzN9Kex9VAOov /HkUaKNsC3TcNKSt5CTC+NbrMQius08qCVw+bdSj+eJGqTI+N4NvQN4WuPU2GIV7agmy PnsfS5GDkqcp1miKWxj6I5VAh1VpgaddDHlmGxZk2Rjen8jJ04fXy0gJ55sPqNoGFaXb XdCITuQI3bsek7RAbkN6ZCsVGENaZlA87/CdROvP0Yy29O/Ci/Czm/W7mxFRMmnKyi++ 9K/Uw1ofOAPZgtPHMAF5XDk/81RMBeOXHyu6XOMYeVBkavpMZzqdLGr44XY2bUBE5Wfc RBsA== X-Gm-Message-State: AOAM5335zqdnkIvywkDkt1HtN3QKIqzJe0sEWW5qvlT/zud3+NTT8fcr 76OJ7lveMSQWDIqiAgbTqxU1HjgnEL+2A1LHkP8= X-Received: by 2002:aa7:cf0e:: with SMTP id a14mr2624400edy.296.1642676974640; Thu, 20 Jan 2022 03:09:34 -0800 (PST) MIME-Version: 1.0 References: <20220118202234.410555-1-terry.bowman@amd.com> <20220118202234.410555-3-terry.bowman@amd.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 20 Jan 2022 13:07:52 +0200 Message-ID: Subject: Re: [PATCH v3 2/4] Watchdog: sp5100_tco: Refactor MMIO base address initialization To: Terry Bowman Cc: Guenter Roeck , linux-watchdog@vger.kernel.org, Jean Delvare , linux-i2c , Wolfram Sang , "Rafael J. Wysocki" , Linux Kernel Mailing List , Wim Van Sebroeck , Robert Richter , Tom Lendacky , "Shah, Nehal-bakulchandra" , Basavaraj Natikar , Shyam Sundar S K , Mario Limonciello Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 6:57 PM Terry Bowman wrote: > On 1/19/22 5:53 AM, Andy Shevchenko wrote: > > On Tue, Jan 18, 2022 at 10:23 PM Terry Bowman wrote: > Ok. I'll reduce the patches' to/cc list to only contain maintainers owning > the current patch. I prefer to leave the lengthy list in the cover letter > if that is ok because it will not be added to the tree but will provide > context this series has multiple systems and may need communication > between maintainers. I'll use the -to & -cc commandline as you mentioned to > send to the longer list of recipients without cluttering the patch. Let me > know if you prefer otherwise. My point is that: supply the list implicitly. For the help of choosing the right people I have written a script [1] that shows a very good heuristics approach to me. [1]: https://github.com/andy-shev/home-bin-tools/blob/master/ge2maintainer.sh ... > >> + if (!devm_request_mem_region(dev, mmio_addr, > >> + SP5100_WDT_MEM_MAP_SIZE, > >> + dev_name)) { > >> + dev_dbg(dev, "MMIO address 0x%08x already in use\n", > >> + mmio_addr); > >> + return -EBUSY; > >> + } > >> + > >> + tco->tcobase = devm_ioremap(dev, mmio_addr, > >> + SP5100_WDT_MEM_MAP_SIZE); > >> + if (!tco->tcobase) { > >> + dev_dbg(dev, "MMIO address 0x%08x failed mapping.\n", > >> + mmio_addr); > > On top of above it's a NIH devm_ioremap_resource(). > > I'm not familiar with NIH term. My friends google and grep weren't much help. [2]: https://en.wikipedia.org/wiki/Not_invented_here Means that you could very well simplify the code by using existing functions. ... > > Okay, I see this is the original code like this... Perhaps it makes > > sense to reshuffle them (indentation-wise) at the same time and > > mention this in the changelog. Here is the explanation that I noticed that the code you move is original, and not written by you. -- With Best Regards, Andy Shevchenko