Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2209319lqt; Mon, 22 Apr 2024 05:00:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWR8ie/qs+Qoe79368X9czRuJ9WcWIPKkExgdaSilENeJ1o/oFPSxclex6UBRutYWQ+1wUgw79Z1Lo8mMHEqOiwe2GYxQl3g1aAC5QsXg== X-Google-Smtp-Source: AGHT+IEWQhDTc4d6lKfVkjiIxXPuiRn8RWUgjW2rn6yBx8JWNmbSInDZyOI4WjapN0xXY0i5Vl6C X-Received: by 2002:a05:622a:353:b0:439:d0c8:f890 with SMTP id r19-20020a05622a035300b00439d0c8f890mr1187984qtw.37.1713787230659; Mon, 22 Apr 2024 05:00:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713787230; cv=pass; d=google.com; s=arc-20160816; b=qmbzLJwu4WDElEqFV7G6OGf0rjHdgiSFtPi4FrbOk4UqamNhOR4sQsN87P+AGiL7pG WmmapP5r9hKwED3lco+vS+1bJm/m0TvGuz++q6uIwcKBydyF9Om24MDtlLRd+gGn8L3s i0LBXbow/DmQjH4merzhkKH1gxk8V58J7ec+Z9ogCKMeClYiDax7nKgtd81zEkbjQpsm UyGeJPDzrikX9vZO5wq4VRDbJJvIBIaCPlDOXXWnQD9mROjtJ11yQ/U5vtHCd+XjShaP FAG9/bRV/nTkKpmhnSX3i3j0Rx+Qxg4y2xJkcg4co/CiTcsc7Gt9Acm+41AdzXEhNVQ4 IGYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=urxXw+V78rgcW1lZLXZyUF//DNEOBPjNxOQ6gmq3Soo=; fh=ZKqEEYtfF/YmOBUhvsZL+9TRm1i1uqUsTSdCCWQ22qA=; b=RIfviR9xLzT8tiExm7vwYWRGOS1D3A43sIKy9iT70IZHZeU0y4ItBfxKYK0/nS+pol JBYoM2EbkRFOZ1ELIPbxgPhoOiKMxt/uU/+Rlz/NP1sFrPEUHijFaH6SmU6PijTzPF7d DHpzgYAM9d4yDrQ26mrfSmknbYQMkaKMMMOnzABTjl6LKXC/1b851Bw/QYR3EGeyhk3S U+J+SEydIFqnjMLaZ5W8tmPoq/lubd74PcaBbVoxIXU+VPFW6d0UcEeKu0t39xK7tL6j yw45Fksm4tzbtzyiEL2tUxR9lDxAxAptlj2UD6WLcepUE/5Cj3yaRwD7h7zH+2586ATE EVUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="hs/ADaL5"; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-153317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153317-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c20-20020a05622a059400b00436f9b838adsi10398420qtb.302.2024.04.22.05.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="hs/ADaL5"; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-153317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153317-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D0351C213AF for ; Mon, 22 Apr 2024 12:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37BF7146D63; Mon, 22 Apr 2024 12:00:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="hs/ADaL5" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A79671465A7 for ; Mon, 22 Apr 2024 12:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713787222; cv=none; b=WG+n5uqpzUAKFen85Y631zCZKyQifKgX6fWSVGQNRUWDKpfGk80Wqu8BoFLJP0/BiM2Aqqh92zbAYnSd9rz/61zojWthITM3/7At38Iv5ToBLYvPkcqmzSoJgPKxLKxSry7IuUT67peY6DWJTWJyaXP1FKTV825ew8nzk9OJmNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713787222; c=relaxed/simple; bh=aUeq+9HkfsVjUgeuRNmXM/3pB1Vpk83CSga7MypB6ao=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=uc3QW0R+YfGAY5CRH1PDvTI0yIFyF9i5qWiepdznjZIR2pIvJ+V3VTxffS94Pg3ErT6TguRyr+tI4Z9Rq0LIYOwwm90BkeXEs4iCHGCv5J8kpwpQHa/nT9nW2+yzvbrlhkmSJnsN7ctACxcLJr9AFV+AkyDc6K381bgLX0VpDIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=hs/ADaL5; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-34b3ef55a86so373462f8f.0 for ; Mon, 22 Apr 2024 05:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1713787219; x=1714392019; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=urxXw+V78rgcW1lZLXZyUF//DNEOBPjNxOQ6gmq3Soo=; b=hs/ADaL5XQflub4PnfAXm6i4tO46XfgwfaROOopWEOB5nLsMmGD9OKSJDlCNN2y55X 6iRNJ3iij7neS5y30wVQ01jHjBhUOsAycORfm72NKkCqjCBg3NkuqmICdhwDBlRCOlg1 CG1P749vKjBYHVTK9De3mlgzZ7q+XRTTNT4xdjefCFRfor1KNAa7Fw8kuPVRouimG9C8 wNfcNCNtMDvYJ8rXYBnsu9MMRek02zv20Q7vGcbANhhjSgxoIWaXOlMJfH7jjSkA5ebZ lNWoLykxt7jfZrHXNSZ7yVWsPdTDHDJUB505Kwm40Es+uQ9syRQ/QHwDXtR9Jo7AIPW1 0ciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713787219; x=1714392019; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=urxXw+V78rgcW1lZLXZyUF//DNEOBPjNxOQ6gmq3Soo=; b=jz2IZGilhJDc1ySoYOFhup9N8WzXU1yf4HKxOYtQigqXZv+tZHuvJYbituQ2oNT0ib EjOGk7zBG3f8hV7xq/ZFhJjK4lEqCf6Zaqb65LO64JJw2EiL5CAv+rhzYWMXf+na1o5Z suimIZxFPBjkLspdKg51Tr+XF0W4jDWHfFHbbn+SYnEiK5cAxoMWZG+LWuBmInXGho/1 x+N19uMfMKJcuKUmsICHcPLZvYwxh5/7hbhOPXfJBgKguMd2/ZgT5ZcQrcAbHoDcUELR GHjh0MNSvtSZTVxiYieFLAyMjkgtLOOfxU2kWXmlCGzC645CJktlGoSmASEDeDYZNdy6 wbXg== X-Forwarded-Encrypted: i=1; AJvYcCUT+Is0pMslqnWGzfqidUOEZdSEGOW/JxMlTUauxpKQCfdbARSr8q6P+wkD2vuyhSNq9rUHbDiVE7MqCig+TGcZf886gns80oEn3H3l X-Gm-Message-State: AOJu0Yyg1D1++38wYvcgdu/og3XE9I9yk57iYLsAI41lH7atX9octBXI IMI9oudQPtuhO6getLulzFrGtaVzfz0PI7k2l7lOdoLlXdcUegyKszUhpE8ZDkK4GeuEyoFvYrZ v X-Received: by 2002:adf:eed0:0:b0:33e:c410:a1cd with SMTP id a16-20020adfeed0000000b0033ec410a1cdmr5903847wrp.69.1713787218679; Mon, 22 Apr 2024 05:00:18 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:75a:e000:6981:a121:4529:6e42]) by smtp.gmail.com with ESMTPSA id p3-20020a5d6383000000b00341b451a31asm11831720wru.36.2024.04.22.05.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:00:18 -0700 (PDT) From: Bartosz Golaszewski To: linus.walleij@linaro.org, brgl@bgdev.pl, jonathanh@nvidia.com, treding@nvidia.com, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Prathamesh Shete Cc: Bartosz Golaszewski , mochs@nvidia.com, csoto@nvidia.com, jamien@nvidia.com, smangipudi@nvidia.com Subject: Re: [PATCH] gpio: tegra186: Fix tegra186_gpio_is_accessible() check Date: Mon, 22 Apr 2024 14:00:06 +0200 Message-Id: <171378189683.23616.223081945525265669.b4-ty@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240416123501.12916-1-pshete@nvidia.com> References: <20240416123501.12916-1-pshete@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit From: Bartosz Golaszewski On Tue, 16 Apr 2024 18:05:01 +0530, Prathamesh Shete wrote: > The controller has several register bits describing access control > information for a given GPIO pin. When SCR_SEC_[R|W]EN is unset, it > means we have full read/write access to all the registers for given GPIO > pin. When SCR_SEC[R|W]EN is set, it means we need to further check the > accompanying SCR_SEC_G1[R|W] bit to determine read/write access to all > the registers for given GPIO pin. > > [...] Applied, thanks! [1/1] gpio: tegra186: Fix tegra186_gpio_is_accessible() check commit: 62326f7cefc21b4a7e8a1b413bf1e8bc07df1115 Best regards, -- Bartosz Golaszewski