Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1709999pxu; Tue, 24 Nov 2020 07:09:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5tiTDIfAgd5noIv4TB6lz+o3gWN9Gmk473PdGHrtjRRBpT1bXN867HTOMdRFXyg3Fmmb5 X-Received: by 2002:a50:99da:: with SMTP id n26mr4312256edb.284.1606230569641; Tue, 24 Nov 2020 07:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606230569; cv=none; d=google.com; s=arc-20160816; b=jMlLGb+P/+1RIgRYnE9LDVGRnADPjEBVh/zlHt7PH7WMyzEKo8jZ7/e5sZJBV7j919 WkdLRuU42P55rJc2yA1IBQ5K7HCzjsuim1OxJ4PbnFSu9sPexddV/e5+G7Vyg7ZP5q3O ZlksJPoIAaRyrhD7zETMbHArow74adbmU90V4uBzBbSvfZhDEn0aVnUHsslicoaz2i6N F14DmmJhMbGG+7wtuG8UpNeScl2iy2hxZpKQOWrgZ5us1DT7naJNjQUJ3De3/iVTcq7m cZr9AKehxP+5eXUIIXEpfQd2v+uwsw6ugv132rmSyyNRMyzfWNte0hlyvFvkWH/Rv8v7 IDLA== 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=zAY25/RXmwYOWVJe8+TIllMxJtvaiO5QFeFRuqe7sfA=; b=bkawFEpqn2Hp2f48j6ZBzCojDGDDZF0cHu0wf5vL5qEZhJcUTd5WwJXazddYlNRCSA 6th6Bgzxwyq1zly5FmkjUsEs0OC86AwXZsSLkZOXmyta1MGz9Kn1BDf+TfX9Bj28DM+M 4H7oXzoSwSaxnHKR9r/0FSsKraOpnHEi+m0EL2qJqBcwxCuUYaaKo5Yyp/CWRUPRPU4q Cnw1ujo5qhdxeoylowU5/LItsTVBcRwKuCCDFhDRHAVB6YBSi7lOYk1uGQvteP0XQyUq fShetrcWx80ZCsCEtxr1rtSijkwnkKZIPfPNAMUdX62viZlnhF05I1WfXwsgXtddXCMW bEWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hPKPVezZ; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb25si2699097ejb.638.2020.11.24.07.09.04; Tue, 24 Nov 2020 07:09:29 -0800 (PST) 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=@linaro.org header.s=google header.b=hPKPVezZ; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389517AbgKXPEr (ORCPT + 99 others); Tue, 24 Nov 2020 10:04:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389223AbgKXPEr (ORCPT ); Tue, 24 Nov 2020 10:04:47 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1224C0613D6 for ; Tue, 24 Nov 2020 07:04:46 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id a9so29333718lfh.2 for ; Tue, 24 Nov 2020 07:04:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zAY25/RXmwYOWVJe8+TIllMxJtvaiO5QFeFRuqe7sfA=; b=hPKPVezZkmNZvQMBW9tIArcm7h9+ipvHX9B+BNe47GB4NXdjfvBbVw9odWhcuNZlE6 lMwPnkbpOpFF6/4IX+8OhZR+sCLS5AgnRwQeOefwyxxTwiIOoBk7M33Y/x+x4FGXSenB G41UR0DZGAAN0tuj7x5J/XsVx/qcPbebgVWq4aCiS8qfBdJskgrlIzryqdcc8CnN7D9Z afb7Gfj1I6okPFVtiZaaNkWNbtE1yX8+TSeTbBe3tcENiIVYF/Ev473wj6Byj3RqsY5z +Cfyu6/RbZ4TMFwDeHsrB/v+hyuJ4ZDG/4Ybfw2Ks3drVFxJSp1y08heLA2FcP61/ZYy qPlA== 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=zAY25/RXmwYOWVJe8+TIllMxJtvaiO5QFeFRuqe7sfA=; b=T7Ftfxb1P1Op/VEGLpWy8fMnNIaEAXJ6Sp+EvBIokr5mLB2vFAYyf9g37TC/29I3BO R3JGlOcBZTQCowfArZ9CkhEGBMU0kBhbexBePCJVGB3upiPivB7ijyWDLGPTOBzQv94Q 0xPaq2PzoCm1lCI3xWPui0zNj7BxHsyhvKTeYwlTxt5qKBCcorlxnsHqiz2pS7Ki6e8O DYp78V2aeQAz42XQ2XNVZZ2maspok6CNcXwmUYzvZsWD9kVgsD5VJ421l5KaC1BRwvA8 FfXBzdKIRpTmk0SZT6AjICsMgwRmzPBafhJEM2hH0qCXqoNFfmr06KVvdsgeoTL0tti0 5Emw== X-Gm-Message-State: AOAM533844M7yYNyk3zzU/KoHmhO0F6aCSAbM5DmqUq2tR23Qmiq45o4 2ZQcy8m7OmW+IQzN6dBzoPLp2yZe18wAYw1PdhtzCFfafZQLRA== X-Received: by 2002:a19:8686:: with SMTP id i128mr1817194lfd.333.1606230285308; Tue, 24 Nov 2020 07:04:45 -0800 (PST) MIME-Version: 1.0 References: <20201113132429.420940-1-eugen.hristev@microchip.com> <20201124090322.cjugamri37yxcqy7@sekiro> In-Reply-To: <20201124090322.cjugamri37yxcqy7@sekiro> From: Linus Walleij Date: Tue, 24 Nov 2020 16:04:34 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: at91-pio4: add support for fewer lines on last PIO bank To: Ludovic Desroches Cc: Eugen Hristev , Nicolas Ferre , Linux ARM , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24, 2020 at 10:03 AM Ludovic Desroches wrote: > On Tue, Nov 24, 2020 at 09:31:36AM +0100, Linus Walleij wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On Fri, Nov 13, 2020 at 2:25 PM Eugen Hristev > > wrote: > > > > > Some products, like sama7g5, do not have a full last bank of PIO lines. > > > In this case for example, sama7g5 only has 8 lines for the PE bank. > > > PA0-31, PB0-31, PC0-31, PD0-31, PE0-7, in total 136 lines. > > > To cope with this situation, added a data attribute that is product dependent, > > > to specify the number of lines of the last bank. > > > In case this number is different from the macro ATMEL_PIO_NPINS_PER_BANK, > > > adjust the total number of lines accordingly. > > > This will avoid advertising 160 lines instead of the actual 136, as this > > > product supports, and to avoid reading/writing to invalid register addresses. > > > > > > Signed-off-by: Eugen Hristev > > > > Nico/Ludovic: can you please look at this patch? > > I acked it one week ago but I get some nasty behaviors with my emails. Maybe you > didn't receive the answer. > https://lore.kernel.org/linux-gpio/20201116061549.ks6hfonyplwhknmq@sekiro/ No I didn't! Weird. b4 found your ACK anyways, so the patch is applied now! Yours, Linus Walleij