Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2171017pxb; Fri, 5 Mar 2021 08:49:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqY1vC8XcdBDs8+omfE4KjjKJmIqKdpY9QTdrxOx+9a8yRuXVQUhraam5BiOr1XE3+Mcee X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr9998372edd.327.1614962972183; Fri, 05 Mar 2021 08:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614962972; cv=none; d=google.com; s=arc-20160816; b=qUEvCQsdCjRiW9ojdCDRXCSprvCCdxrkSJElczPmybMQeqCfeVtvjbmuWPno+qAGvl aGyEv+UkBD67CgiVgWC9792CLNcOUyOSPAipjyleJ+NzhAut3tndtW2oE88HWmpOYtHa u/Sy683rhprFjRSCcBONfPu2nw7NRqyHgPFdE8EQye4HpscnKvWmf//P5YrMyocCXlex Xqgj5vk8VBygtJhc00uZsH4XmffuAzZCMTbkt8BBNKd9D7KQHAeJpWswYYqJ74Hz7zFX jKj9dEkMeEZrKzzRxFhNu/S8+7MqR64jPDdD/PywuDkP2ToOlbKgKoYZLi1lk9iZPrAR nIBA== 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=k5xqbrsDkEYC8468nekBoK7XfIXAxgMNfVZRCXqVWVE=; b=UnyP1YjyzZJbxYCGLUQVnnAettPsyfI9GLHGxDGRbRdG+FWZ3VSK+1Oo5Xla6hq/tN lOQqIvRrPJKDy7KJrTMnHQbwE9EFfSnavBd9cE4IOOEEAcNb1S2UZ8EnADJ7f2Cvswt1 ve5vcMyKZx/0/IIqjhI7LxYkJJfVJ8lIq5XCk2i7my0ZC2XixstkBe5gTsKoB4CGn304 Xh+J8lehiq9VWzzNLDMAfxZpHkqCO5npcC2dLmYyYe7mNNY5tNlerWED8RuwYz+wU/mE 71j7PN22/WUc0BrFeoyCE2nbV9Zx9n7Bc8BOfC39zQNK2qTWqG6F0QjoOWCnkIVj8la/ Sy+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=trg3WbAa; 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 ko24si1563615ejc.407.2021.03.05.08.49.07; Fri, 05 Mar 2021 08:49:32 -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=20161025 header.b=trg3WbAa; 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 S231327AbhCEQrt (ORCPT + 99 others); Fri, 5 Mar 2021 11:47:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbhCEQrW (ORCPT ); Fri, 5 Mar 2021 11:47:22 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C087C061574; Fri, 5 Mar 2021 08:47:22 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id z7so1686566plk.7; Fri, 05 Mar 2021 08:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k5xqbrsDkEYC8468nekBoK7XfIXAxgMNfVZRCXqVWVE=; b=trg3WbAajekfPYGSpCrsc1TK/6aPLzlfwVN3ZUg1PWg+q3i8HxsdQ9oZPe7QAdWOrH PjMzrRFkIB7Y5mu2dNkOHMUuTY1bT9ehxeuFkgmg5JJRI/v6D5DJPbqBQTtKJQ55HFli NaPwcqHA00eeusp9FNDf4N7OQDo3CeqQut+9AzvzAbyGAYl/+sk+TNfxD4LlsdRhTsd1 Jc9sarM3DB5WkbykqBaJ3pmr6cQ18DPLVHVUkWti5slRKPF/L8cF2W4dL1B8L7j2GYNN U7QqFEXxsWLpP/V4E9tFd1j6YgxOIyIFKAMkHt9aggm/j2sUB6T80Ut3SNNZPnyhL2g0 QW2A== 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=k5xqbrsDkEYC8468nekBoK7XfIXAxgMNfVZRCXqVWVE=; b=NA5t+Kzet+q1vZ5SzF+r7+IlIzr1a87g5FlfhvMleS12dVATnvOBwecDk/cKqRICCb TLqJaBwOLVztjDXMR0MH8YWm4XdJ23INxZZ0HrRNuKSLhlAz49w2vLDZVG59FHRU4fbn DnTDlhMfJTJi//9pc3oY8QIUbv2T7R5ZOsUN9RSJ3BI8OfY3ptj3mCSQ+qQKxAKS1tIa 07pZ0ZDnxGFZVf/Bvo2pqdTi+7NT+hafmaJQ06mJfJp4DJVyKsQ7d9ktfFoBAlnaY/HP n1cRwVNGUNWZz80G8AZdjzKfCIcDu8INTil+Z19Gc7Wutx6T4zLohRLnZQ/uzcPQr4/u I/sQ== X-Gm-Message-State: AOAM533uUElgZjPzFeiTIcfNDWZK47cwaZgbMHJXfjeVp/7ALmqswhkt PCoi+2VDy0DHzVCu5BfBThRzhC3MOVkBt7UeEB0= X-Received: by 2002:a17:902:d2c1:b029:e5:ccfe:1e93 with SMTP id n1-20020a170902d2c1b02900e5ccfe1e93mr9384438plc.0.1614962842042; Fri, 05 Mar 2021 08:47:22 -0800 (PST) MIME-Version: 1.0 References: <20210302163309.25528-1-henning.schild@siemens.com> <20210302163309.25528-2-henning.schild@siemens.com> <2fad304a-9e1e-c83d-7a9e-02b35ed22418@redhat.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 5 Mar 2021 18:47:05 +0200 Message-ID: Subject: Re: [PATCH 1/4] platform/x86: simatic-ipc: add main driver for Siemens devices To: Hans de Goede Cc: Henning Schild , Linux Kernel Mailing List , Linux LED Subsystem , Platform Driver , linux-watchdog@vger.kernel.org, Srikanth Krishnakar , Jan Kiszka , Gerd Haeussler , Guenter Roeck , Wim Van Sebroeck , Mark Gross , Pavel Machek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 5, 2021 at 6:41 PM Andy Shevchenko wrote: > > On Fri, Mar 5, 2021 at 6:25 PM Andy Shevchenko > wrote: > > On Fri, Mar 5, 2021 at 6:14 PM Hans de Goede wrote: > > > On 3/5/21 4:42 PM, Andy Shevchenko wrote: > > ... > > > > So I took a quick look at the following 2 commits: > > > > (One of the latter commits moves the code to drivers/pci/pci-p2sb.c, > > do you think it's better like that? The idea is to deduplicate > > __pci_bus_read_base() call) > > > > > "platform/x86: p2sb: New Primary to Sideband bridge support library" > > > "mfd: lpc_ich: Switch to generic p2sb_bar()" > > > > > > And this looks good to me, although compared to the code from this > > > patch-set you are missing the pci_lock_rescan_remove(); and > > > pci_unlock_rescan_remove(); calls. > > > > Oh, indeed. > > Correction here, I'm using pci_bus_sem in the latest version. Okay, it seems that semaphore is not what I need and PCI rescan lock is what is mandatory to take here. -- With Best Regards, Andy Shevchenko