Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2002852rda; Tue, 24 Oct 2023 09:21:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRfdkBqFQeel37GWayqZT4Y8thXSZjToHj2ViQu+zDphxz5aTw5OGqrOwFSsG3VT1ITFnQ X-Received: by 2002:a17:90a:359:b0:27e:277:3014 with SMTP id 25-20020a17090a035900b0027e02773014mr10189428pjf.11.1698164492303; Tue, 24 Oct 2023 09:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698164492; cv=none; d=google.com; s=arc-20160816; b=adR/y1JbR2wGvuGDuOnKiDIYtLDpgvXiQ256kXEETpbb1ieZIu/y1dmI+yZqJpAUBM D4cJus+u93JwKm9HZYgczHLGJ9WHbevZPS5uYrV8qA/Hclf8D+C/w+W9l5J9XKj3LdHT AmEKvIkq/lQWJze3H3Kmyd90xrdKdRUyk6PzmXrnRjLGAExrg9EkxE3SchphOfBE4Jwf mgT4ycd5d5u2K4y0yAah4J5W/93cXozK6zMYrQ3PN7tyP+Iw8WvCTlkGymqrmlFU8c8X TOcLZUoY7snetcYaTeJfvLbconklDRNMXXcZoRqY1MEuyL6pKtiKE3YvoM+CnhmNblyP IbsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fbYtCM6OwLlWi4gEUo7/v3mG0dhe/3QcNxe/e1DbvYc=; fh=JJ/Q/jsHRrE9OZxVN/ZtzyL6fpoacsJSdIiEV5TsEXk=; b=aZLWM/tfF1Ufg+mdWgbrTdZzmGHrWoOFAOA8/DgtH3dmU0vz4PVsTYlxv99OIwll8p oWiqaQNkndnXgIgnlwWl4W4ellAfNXo0kLcOSf74x1wscxNr+WcZeVqbcfF9tZFr+6aM 4UXv7qd04330WtV/XSCxQtVuTdxNgRgxmxYjLb+5CsOpr4S1RnNe7vOBB1u4q2+UEThv CRabm3yLN5dAoxcHa5HgPCqUIhuM9jrJIKqqIo6qjT653J3XW5BsdKLbdx5kBA/fT68U FeCEnt+oKeuLPdJwjb3WMM3JhHv/mQDx71FO58kwfgx0chcDYEWa5F+KGUOHBnW6eryM xX1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YK0oXkQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g21-20020a17090ace9500b002790c6760dbsi10784760pju.70.2023.10.24.09.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 09:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YK0oXkQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8C14980BA69C; Tue, 24 Oct 2023 09:21:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343880AbjJXQVQ (ORCPT + 99 others); Tue, 24 Oct 2023 12:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343859AbjJXQU4 (ORCPT ); Tue, 24 Oct 2023 12:20:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBB3710DD for ; Tue, 24 Oct 2023 09:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698164452; x=1729700452; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=stAV+c+m6ur0U0ftL1kJBRBWT7RqDc7NNlJHBqfAKF0=; b=YK0oXkQl8WBRqt0t/slZ68JEj2N9oqXls3Luok4XsWUuR39RgjTlezq4 Fm7gPQEpAPhP647OEaZ1pmqiNcINEFME7gOaodpuUSnzR4n6ueoxWXPwv Ss2zt4SFF1Bz891rfUAoD4MN3slEYlHnBHd/fR7pm2pag+BhmebdLsZbF vmel7gy9StMqKCC/gptX5P7R3zMAuVMTpMdR14ZFeT/hVT4cWTTrBdyjm YtUyIeAtgZlPH050taSX92UGNZ2oarW5N2Bi6k2g192aEZvxql65qJkNw 5Y/2DFeMtJl7+ZAEMW5hxzOe/5VL+RW+KOQSyzL1ArKKWMQfgHEOW67qX A==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="473333359" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="473333359" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 09:11:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="828906405" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="828906405" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 09:11:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qvK0B-00000008KRg-2l0V; Tue, 24 Oct 2023 19:11:31 +0300 Date: Tue, 24 Oct 2023 19:11:31 +0300 From: Andy Shevchenko To: Jani Nikula , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Hans de Goede Subject: Re: [PATCH v2 6/7] drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back Message-ID: References: <20231024155739.3861342-1-andriy.shevchenko@linux.intel.com> <20231024155739.3861342-7-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231024155739.3861342-7-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 09:21:29 -0700 (PDT) On Tue, Oct 24, 2023 at 06:57:38PM +0300, Andy Shevchenko wrote: > It's a dirty hack in the driver that pokes GPIO registers behind > the driver's back. Moreoever it might be problematic as simultaneous > I/O may hang the system, see the commit 0bd50d719b00 ("pinctrl: > cherryview: prevent concurrent access to GPIO controllers") for > the details. Taking all this into consideration replace the hack > with proper GPIO APIs being used. Ah, just realised that this won't work if it happens to request to GPIOs with the same index but different communities. I will fix that in v3, but will wait for Hans to test VLV and it might even work in most of the cases on CHV as it seems quite unlikely that the above mentioned assertion is going to happen in real life. -- With Best Regards, Andy Shevchenko