Received: by 10.223.185.116 with SMTP id b49csp3683186wrg; Tue, 13 Feb 2018 06:13:31 -0800 (PST) X-Google-Smtp-Source: AH8x227w0deBHd83Sb0vF7E4t9Jl4gZ7PURFiPMXzrlXekVIQge+8MwqrT2tgWuNXD3DMC9IbNRB X-Received: by 10.99.149.2 with SMTP id p2mr1115094pgd.122.1518531211627; Tue, 13 Feb 2018 06:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518531211; cv=none; d=google.com; s=arc-20160816; b=aO0gcIajg1klFOoniuqcBPssdpgbJYTRFsZhG2iFbsvCYp2s8q4Rv0PE227Y49wVkJ k0HFHtMlKLsPS+OM/Ws6jVbQHAhfL4Lu+bdoFKgOKifzlsmhxMnigSw9KUzLHfPMa8BM p2LuArA5uAgKJdMCrlriLk0HF5MqWNf1m6D6UrUGsVPIPm1xV3O0BL6iEYejijLbFR1d TSXkpvRIGb2X41yppkKYrEzg2XA4/0RXr1yiekmsA9DT6rfSI/BOvKRXmWezY0fbSaiC pSKGvT7TzDzIw4o5XgIPJpvEE8LZZSAJsBP3j9L+rh5u2QeriNygy4hQujkiAD3PPLCn ZrcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=eYAVZ6/3YjRypuDg2UmAsW7zYvfPVEqUNwPJQrPBIJw=; b=OiuXpes0bjPga7ij9WqyXPjvKVrxfzzIegzyn3cUb/tQsnFDOok7sIXdQwRJpS/Int qWRygzxqc66+T0rdy9QG4NU3hkakuHJKFIY9BYnmdgJl+OqfHctJxjZRkzSO1Cx5IJT/ RkS3ovRufGUM1uKwhjYMnsiLFAkeuXQJqUss0vz8fz5t5omVMjLM7AmtrwazdzDmrf9C DHMsdU4fbRNCUL0D7TmwBzvNIljbjx9vXHlO1Qo4bE7we2ScBBSWsUowjV4V00YP7xLQ Kf7OAlxoGoowBRN9TKZG42sKl25RvIjH9nrzsL2mSVT6RdrxPE5dnADQAdOUSi3xG3o+ lJ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tex4Y500; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si2746032pfn.81.2018.02.13.06.13.16; Tue, 13 Feb 2018 06:13:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tex4Y500; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965091AbeBMOLx (ORCPT + 99 others); Tue, 13 Feb 2018 09:11:53 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:39950 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964935AbeBMOLv (ORCPT ); Tue, 13 Feb 2018 09:11:51 -0500 Received: by mail-pl0-f65.google.com with SMTP id g18so6691604plo.7; Tue, 13 Feb 2018 06:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=eYAVZ6/3YjRypuDg2UmAsW7zYvfPVEqUNwPJQrPBIJw=; b=tex4Y500HbHoSHzZVdjXnbYe/fQ25O4CmJleX9XC0shEYN8A9LvfvRxwc016sdRpy0 P3SzGIV+IHdTt63K7SEiuxKeaRuM/jka05JvExrAeD7t1i07Cr+pdNflA8ZOtcxjKifM NxCwaxf5ux3ety5aO+7cj1vfXCB9uuseof5asjLiJFZ+KstCM3B/f5qGwPih+w89EBBd 9Hwccg+MQXFBNJlqLnG8tJUNCY52yg/2yEV/MQT530h+jjNRGb0Rdbkwkq9atro2B8cx KKY1Ioyy7pKuKvszpXCESQDr603/kKbsCAa6KCzRwyvdiKk2da+OeVwk/MF4Pdn6lTji EsOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=eYAVZ6/3YjRypuDg2UmAsW7zYvfPVEqUNwPJQrPBIJw=; b=gIW9o2wti+2hjrgNeEtO/0KJljcSz105a+CGDSKEN21RvIBIexuNdcL+v43dKcV0Se Xabb+CpwGQvWOzsUWq75P4fEw1z/5X/gc0vsQfdXqXnjcjlSVN8DwG38Uw7AQ7QgFtFv tUroJz+yqXGOzeyREPkSRS34eZsz2V4HWi1uI5jxq/7ifs4Ec+LygzR6mXREu2xRX9kO RSjf8ncxVSWYFZijoZOrQpvtdfJz63y6n5m/3/+YGYpDMIWsQS8O+YQo69Sak53E4gCt 4FsRMKngnZNOnLR4/Fca+cabkqWUeBYuKGNmlU4GLG/R10wVb0mkm+9YBr3bYWujUXEs vmHg== X-Gm-Message-State: APf1xPDLscgk3siZJ8vc1U352SRhBXLz0xtD6HKP95b6DyT0ENXIft5E 5Nv4Jkzgv2n+xhTScd9GY84q1g== X-Received: by 2002:a17:902:2803:: with SMTP id e3-v6mr1215681plb.447.1518531110860; Tue, 13 Feb 2018 06:11:50 -0800 (PST) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id 10sm15802080pfo.69.2018.02.13.06.11.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 06:11:49 -0800 (PST) Subject: Re: [PATCH 1/2] i2c: piix4: Use request_muxed_region To: =?UTF-8?B?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= , Jean Delvare Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <1514652658-6228-1-git-send-email-linux@roeck-us.net> <20180212111041.027edd85@endymion> <20180212185152.GA20877@roeck-us.net> From: Guenter Roeck Message-ID: Date: Tue, 13 Feb 2018 06:11:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2018 03:48 AM, B?sz?rm?nyi Zolt?n wrote: > 2018-02-12 19:51 keltez?ssel, Guenter Roeck ?rta: >> On Mon, Feb 12, 2018 at 11:10:41AM +0100, Jean Delvare wrote: >>> Hi Guneter, >>> >>> Sorry for the delay :( >>> >>> On Sat, 30 Dec 2017 08:50:57 -0800, Guenter Roeck wrote: >>>> Accesses to SB800_PIIX4_SMB_IDX can occur from multiple drivers. >>>> Use request_muxed_region() to ensure synchronization. >>> >>> Which ones? Documenting it, at least in the commit message, would seem >>> useful. Out of curiosity, have these other drivers been converted to >>> use request_muxed_region already? >>> >> Primarily watchdog, but there is also unprotected initialization code >> in several locations. > > There are three locations touching the same I/O ports: > the PCI-USB quirks code (still doesn't use locking AFAIK), i2c-piix4 and > the sp5100_tco watchdog drivers. > There are a few more in arch code, though probably not all of those (or maybe none ?) are relevant. arch/x86/kernel/quirks.c arch/x86/kernel/early-quirks.c arch/x86/pci/fixup.c arch/mips/loongson64/loongson-3/acpi_init.c drivers/usb/host/pci-quirks.c drivers/watchdog/sp5100_tco.[ch] drivers/i2c/busses/i2c-piix4.c Guenter