Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1608415imm; Sun, 23 Sep 2018 07:45:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV62cEkV3DPq80I2wxc0Fj79lpfZyRO8T2YBv8hXO/NHNlrKygpymlYH0mY5f8UlMxptJKf/O X-Received: by 2002:a17:902:bc44:: with SMTP id t4-v6mr2072056plz.210.1537713938148; Sun, 23 Sep 2018 07:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537713938; cv=none; d=google.com; s=arc-20160816; b=LrQr3VmMRexSrAvs2pAwkbVDEATwTG/t8mXSJgOMXW1lIQjHXmOoRjTygTCiXONXaI UZEWYQeGJLLrpsmm0cgmDHRn9NhqT6oZ9O2ruBOYsrC+6kmt1LD7ilLfBuafFr+EUzCl ur8UbXh79/4ireRJEZ/Dc2wQAh946uT3hMhNraYjvnFclVqplm7QJtyl7+70CTg/0Atb BCNo9L2jNJt3CFYTzFG93XccMQa7oSGGORtfAesvTNRJ6u1H001Sjufbe65JndyK+Dww s9kJKDlpD7fqLpgUNVnInLcqHWRJ6/LoD+m7OIbpDxTBBMA4a/WOTcdqb+1+BXC/rwSz TVhA== 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:mime-version :message-id:date:subject:cc:to:from; bh=SLDG8rphxM/hez9r8L0tQTMHx8tFlMNqdru8YBhnHEo=; b=zzZR+wCvMUThnbu3Ke3sE+3Y1stUkcOjLdJMo3Px6tbXfr0zH+jLi6WcjjCSjtTQqb brfK72ycNqN207TlgrrZCbQRzL75Ixb4RBBqrH3FazCFjihMT6FObLTsrd1JqXb+HwYh +OXtbF8Wb/y7kR0Snf5LaHU10+kKFMesHG3TlnAcK4jvlVCVoIKrbYfeItyDpgmN6cLg eggnZy/Apvd/CGJbzmMmUF4D5608rVhid+V1F7sOcwfOuS7HDfEZwEAYHI+o4orNgv8E Qh4iB+NBTVW5Md+YBUfRQ046ZQPqy2ZjFuGwbSW7bHPn3eymL+Pqt4USdTd6Di+baWZK htQg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4-v6si9488783pgj.131.2018.09.23.07.45.22; Sun, 23 Sep 2018 07:45:38 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbeIWUm4 (ORCPT + 99 others); Sun, 23 Sep 2018 16:42:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33164 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbeIWUm4 (ORCPT ); Sun, 23 Sep 2018 16:42:56 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2B302C03D47F; Sun, 23 Sep 2018 14:45:14 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id B8ABF27088; Sun, 23 Sep 2018 14:45:11 +0000 (UTC) From: Hans de Goede To: Andy Shevchenko , Mika Westerberg , Jarkko Nikula , Wolfram Sang , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: Hans de Goede , linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] x86: baytrail/cherrytrail: Rework and move P-Unit PMIC semaphore handling Date: Sun, 23 Sep 2018 16:45:07 +0200 Message-Id: <20180923144510.4564-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sun, 23 Sep 2018 14:45:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, See the commit message of the first patch for the why and what of this series. Also the whole purpose of posting this series for now is just to get the first patch reviewed and merged. Once the first patch is merged we can look at using the new iosf_mbi_[un]block_punit_i2c_access() functions in various drivers for the AXP288 PMIC (and the TI dollarcove PMIC) to only take the P-Unit semaphore once around a group of i2c accesses to the PMIC. The second patch is an example of this. The third patch is some trivial cleanup to the i2c-designware driver which becomes possible after the first patch is merged. As mentioned in the commit message of the first patch, that patch deliberately saves that cleanup for later, so that it only touches i2c-designware-baytrail.c and not the main i2c-designware*.c files, so that it can be merged through the x86 tree without conflicts. Regards, Hans