Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp989201pxj; Fri, 4 Jun 2021 03:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+rrP6bzm+nbws6Xw0cRTeRQ+fcgTrmIi16NqOww7u0ZmV37q6CcfnA6TYGTuQg0H0VlcI X-Received: by 2002:a17:906:5407:: with SMTP id q7mr3606288ejo.158.1622802322663; Fri, 04 Jun 2021 03:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622802322; cv=none; d=google.com; s=arc-20160816; b=BXIIXUuwvyPCXufXEETZgQMeusleaV7iFQjcOyO/7rTpnSNE2GxLGMcG0OLXfCB9EU Aqf5JOl89v4BZF0GMVd3JCqjJoZCaQipXgdPYOgBP+Up77764VJd8F6BFgpvMmPZa2gj 0cFEqrqtVYIodc8pEwcb9kxQV03SO2JGbvylhu/f0z2MQSFYc8ENyG5fMXItv2o0kPgA 5iWWlFewndQhBklCO4w6zM2TnI5QkpPKmrmX6IOzF3QK9y5a87lPsi/EO0oVfC/r6gTx 814t/aAbNyCObM/XsconR5kZpsVa3p4WqdWi44F4EHGl71HcC6MNY6GDbXriJfptf5nH 038g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aUTAR6wf3YjHvE8+6bjBL3/E962RYRKJQK58myGqUmo=; b=n/a3fcUtyFhBgRXnsFG00rSmDterUBIzyvnFB8OXHLE8PX8IdpkzewQb9+oakg/jnd PX+NNA+eZg3t8Dbl18ZhO3YQ6KsBZFDuiBVV5AKN0qW/EX+mtSxI293B/ne07YyUN5T6 5s3U9y0fNq4QKOlBboyNQK+tNqGATyZ0rhyFGU0CRA5hEau2Ibaj+UiJka4WsIeAwPkt r5MUiq7FbXgCnwc069Q4cOsqI9X5fuyPvad9WzcAUxuyDE2aSaNBIq1KU8cb1v4w2+7j eArZyUxVWSCTQHo1exE1i0yr/wslxYouBmzBBE93YB3kmqwS7PXhGiSVDSR8Dg+m9HmK oe8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L30wT9Gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd3si4330256edb.307.2021.06.04.03.24.56; Fri, 04 Jun 2021 03:25:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L30wT9Gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbhFDKYq (ORCPT + 99 others); Fri, 4 Jun 2021 06:24:46 -0400 Received: from mail-pj1-f53.google.com ([209.85.216.53]:52844 "EHLO mail-pj1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbhFDKYq (ORCPT ); Fri, 4 Jun 2021 06:24:46 -0400 Received: by mail-pj1-f53.google.com with SMTP id h16so5309372pjv.2; Fri, 04 Jun 2021 03:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aUTAR6wf3YjHvE8+6bjBL3/E962RYRKJQK58myGqUmo=; b=L30wT9Gqzu4Awu7kONktI1IDMc9NsZdNoJ8lA7zfngTzBLSGNIdxGF27OrmMGpOes2 NCHhHQqIIvIuIrghRnAUcYJFwQkPv+bVNz28ZyWSkQnxBV/ySlmFlc/tNXEu1keHQKcU tOyJTfyocsBvW4COyd7jQyNEmqdxJ2TYsyEeLkmo+goJIEdTDkGRIiV06oxzN+mgSV0A cvBKAmYQ9iZ5h35JJmLAWsEVklfeTKWclOgJ9qnXC5fQmPut7pKgGjirxe6IZc9DDy53 lHsTUWh0L5vLGSj4IrUPGXAIvsbPpAKCf49KClLz+aSsX3snEKv6pBEdp40bkof5BySK nOrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aUTAR6wf3YjHvE8+6bjBL3/E962RYRKJQK58myGqUmo=; b=e5jMALYzshO2ciXGPEB0sI9UfhsbuaWMOF6U45+vqF98btd1r6jXUqixjXN/H7zySo WRUXZXT9A4ZeXcuLsT5D4pg4mvc+8vVyr97O5Uh9QQph1WkNtD0wAFXN4+424JqHJn3E mazOG15vm7AMSAMixNGhZqzY3G4UBiiXR9OXPO/S9L6wKra09EFtW0+awV2jkDp3rRpg ToCTYwXecoPt21w5D8vIwAJ2GTSugff1BABkbB6mwoCYvalnbEcnYpWKkhczSBhOETfw rhJNfbI6OawcB9k36v8CZKmC3Mg4wwdAtLvsbKyNQRZkgw0rTyXmWBzKmU/Q/hBZkn4h l5Cg== X-Gm-Message-State: AOAM5301LA/XkRPvgtzyxXuUBpU26rojzUqPlG9NCstpAKcWNSCNZ83h AVltw8/rJAh8qQTMyjRaVFWZtKo6+LJAulGJrrk= X-Received: by 2002:a17:90a:17ad:: with SMTP id q42mr16339993pja.181.1622802120096; Fri, 04 Jun 2021 03:22:00 -0700 (PDT) MIME-Version: 1.0 References: <20210603101822.9645-1-steven_lee@aspeedtech.com> <20210603101822.9645-4-steven_lee@aspeedtech.com> <20210604021422.GA25112@aspeedtech.com> In-Reply-To: <20210604021422.GA25112@aspeedtech.com> From: Andy Shevchenko Date: Fri, 4 Jun 2021 13:21:43 +0300 Message-ID: Subject: Re: [PATCH v3 3/5] gpio: gpio-aspeed-sgpio: Add AST2600 sgpio support To: Steven Lee Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Joel Stanley , Andrew Jeffery , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , "Hongweiz@ami.com" , Ryan Chen , Billy Tsai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 4, 2021 at 5:14 AM Steven Lee wrote: > The 06/03/2021 19:05, Andy Shevchenko wrote: > > On Thu, Jun 3, 2021 at 1:19 PM Steven Lee wrote: > > > +#define GPIO_OFFSET(x) ((x) & 0x1f) > > > > GENMASK() > > > > ... > > > > Do you mean the macro should be modified as follows? > #define GPIO_OFFSET(x) ((x) & GENMASK(4, 0)) Yes. -- With Best Regards, Andy Shevchenko