Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp964110lqb; Wed, 17 Apr 2024 16:52:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHx3Z1ykyFenMEbRBXX07UhRWTtYRy/6YGZkhzpJGymE4MaMpfMhGkBw3Yd/OLs9+ifvAZtrW9sno8/EIv641lashHdVdnSGha3f1psw== X-Google-Smtp-Source: AGHT+IHNSEadPuF1pvPI2ON4xka+ydXcBcdZtZekTCx3UmrkDjJPrrxCnas6B6bqIUIsG2trJNUN X-Received: by 2002:a17:902:f70d:b0:1e4:4125:806f with SMTP id h13-20020a170902f70d00b001e44125806fmr1442538plo.11.1713397942693; Wed, 17 Apr 2024 16:52:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713397941; cv=pass; d=google.com; s=arc-20160816; b=IiGewi7+Btfl383ebuL9B2V4YOWcGQ7NAGxFJrjGHzQP0UBYMFscx4+34YsmfCddsj r3/exDl2KYOn7VV3ZVksOkg2XtZp0/9ShvGPybjs4TT0mmZHSIOI1JS0Rbw3OjsUkISg q4lSJ2z1tl95LsPyDXThwQXFhKeST7FGZOB6rtJO3jV5PN8YP68/MTX2V8Da9CWqXjAf p2uVe6Pw0N5XdZlFKAjjIsdn94GFtEZFou8W1pi66V4o3TeYrl2RFO6jzYdJYo6t8fWx 2GfyUkQTXGq9bQy8AV0kXijywBCflASsL/FQOIxYHgL0GXC9qUGI+eu8/8gyVhaaDXfO AYyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=WDdRomGwYIj9LAM5YN6npSc5eONnLOEwIE5znWDSutU=; fh=tj5d69GzYkMGZ1mzJwyILD47n+545eWu1YkUsCwwdVE=; b=zguMtTDP+bdJfJ0fq9ruMDK2fUyR459KZaEEB31abePiGzcO7QcYKPyFCjGHhMnsbv E2kDJlt0fzxu5Yzl+sfovMabfcYTxwDmGF73xshnRxkkAHBBl/6FPOMWiYGly6hAHDm5 Ns77jH15qFPL08d3PeunRNOg37roaJ4kP/yUaztfPf2phOlXhAPTiHYpJAdmuYMuamEc /3Wfz34NzymR0ssuU5aszZO+21cyuUs+Ta7bW3K1jO65OkfTTV0kdwz1jjJccIBaKD+s lHJFNP78YmSyT0Ay9zpMNstanzlrWclr6YLZuYusPh6dPrBbHE+9OwZzqxsDQzLRhKYn 8FYg==; 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=aQ94PS7H; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-149212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149212-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e11-20020a170902784b00b001e84ad9651asi275886pln.506.2024.04.17.16.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 16:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=aQ94PS7H; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-149212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149212-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 87441284D4E for ; Wed, 17 Apr 2024 20:47:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6637A47F63; Wed, 17 Apr 2024 20:47:38 +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="aQ94PS7H" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 2358D2C859 for ; Wed, 17 Apr 2024 20:47:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713386857; cv=none; b=kiqVc2HsFTemPb6GOLk1goXXodFP/wLfkag39wA7ayAU2kdc4CwXBSrgz4y08Q7c+nw/F+ZhzuqE00Vh5TGu5ekhAMKR5ou58bti2GjlN6+v8+GhRTdbIX5WABH4XQneUUH3x+DabZ10KRtQQXS2jAoAnIu2AV5d1pj9qc5Rdao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713386857; c=relaxed/simple; bh=WDdRomGwYIj9LAM5YN6npSc5eONnLOEwIE5znWDSutU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CCx27iWQnWzr7Ulpooh9GTzAdxmp9ZzR9w2gB4STBbXJFC0jRMt9g7B+v5R8X7WyEPr9NNwo1wYh3ELbg3mIjJ3u0wE4AdyP6Q0YAmZRYIWyt9eMHnxFoQlxgXTh8KpVsEOv4sLLHKdizJCOxQqxzgLaKcS9eJzfV5/VriJmHoo= 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=aQ94PS7H; arc=none smtp.client-ip=209.85.167.43 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-lf1-f43.google.com with SMTP id 2adb3069b0e04-51967f75763so92345e87.2 for ; Wed, 17 Apr 2024 13:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1713386854; x=1713991654; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=WDdRomGwYIj9LAM5YN6npSc5eONnLOEwIE5znWDSutU=; b=aQ94PS7Hlq72H2jimONDaLrmFvoGNwMzNezPgigXjoHjEImsMafYALMRuR8GKvQjTk O9f9ErJz0SCUF2kq/rPxXY2K0yAas2vPfEfL0AIZZYI4SurgHKIYO5o/h0SI+fRcrVZ7 wZ4JUmsNVKF+LJuQuLsDwbAlu9qity5IHXi+pm7s9dTJp5itrTVQc+lcW66mzfv8ysLd 4Y8MygcE48nRaS/oYlg0gEZSqnuz2YTZUK+J3vAjRCK1H44YanpD6Aj/mG+ySblUAFt2 4QGQ/q21pmGi/c2OdMy4Ydfa15K9OPobbgcnT0u8KlxocIx9Z18TGpYC6LgSeM7DGdOG LDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713386854; x=1713991654; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WDdRomGwYIj9LAM5YN6npSc5eONnLOEwIE5znWDSutU=; b=nl8x8gEAcqtjTG0Hcx1YG9IwOXbw1pO95vTIGxEvEIG5amV+8012cC8MTd2BkNFpYW y5k+cShkYzC6wtJ3+HyGl5Lo87lerPlwqUBR3GvHin0M5fYZA/M5aJuxBtpEhlzoZ1RQ wr82U6GbjY27wUGfdet5GEmnZ+ehO4sTp73Y9VWByOCeXBhqidzRT/Ls+3aKsF4KF4Yq Ej5BDNAzpr9oUQlgqmosIAeFTNQ8+nhBlg170V0v3NDhSqvuLtCNzCnua6WLZGwbCU0d 4cUQ8/LparfKaBEm0FMkIr7IesJIhynlyBDelABDDJYbcX/lI/1U+FXcqtYrHYeo+TxD 7mhg== X-Forwarded-Encrypted: i=1; AJvYcCXnBujhqjxwMLQ3yD7aRKj27bpy0LVER+4l6JnEgbOKIX531sVCaQ2cj82RVcBwES6e1Ro4OjypGLMPoEFS/2lTReQ9nwYpXDyu4alM X-Gm-Message-State: AOJu0YxZwDehY1fqzypj1VPOBOcZXJF4kvu3qMOI86S2wSDnaOHrzY0J qELlZ7TscbSHaKknmsRvxHbu1OKNKvZnbULvEMlnqiK5yWVdH/WmogbScpRGHjPE4I6OHzJ0zg7 eZrBtbHqZe6PaCMMPHT3hx/74CEOdVpBLt/Nq1Q== X-Received: by 2002:a19:4310:0:b0:518:6f95:1a37 with SMTP id q16-20020a194310000000b005186f951a37mr239045lfa.33.1713386854355; Wed, 17 Apr 2024 13:47:34 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240221213208.17914-1-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 17 Apr 2024 22:47:23 +0200 Message-ID: Subject: Re: [rfc, PATCH v1 1/1] gpiolib: Get rid of never false gpio_is_valid() calls To: Andy Shevchenko Cc: Bartosz Golaszewski , Linus Walleij , Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 17, 2024 at 12:46=E2=80=AFPM Andy Shevchenko wrote: > > On Tue, Feb 27, 2024 at 02:06:05PM +0100, Bartosz Golaszewski wrote: > > On Wed, Feb 21, 2024 at 10:32=E2=80=AFPM Andy Shevchenko > > wrote: > > > > > > In the cases when gpio_is_valid() is called with unsigned parameter > > > the result is always true in the GPIO library code, hence the check > > > for false won't ever be true. Get rid of such calls. > > > > > > While at it, move GPIO device base to be unsigned to clearly show > > > it won't ever be negative. This requires a new definition for the > > > maximum GPIO number in the system. > > > > --- > > > > It looks like a risky change that late in the release cycle. I want to > > avoid some CI problems at rc6. Please resend it once v6.9-rc1 is > > tagged. > > Not sure why resend, but I missed that somehow. Can you consider applying= it? > Applied, thanks! Bart