Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A395AC678D4 for ; Mon, 6 Mar 2023 09:23:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbjCFJXv (ORCPT ); Mon, 6 Mar 2023 04:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjCFJXo (ORCPT ); Mon, 6 Mar 2023 04:23:44 -0500 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7298619A2 for ; Mon, 6 Mar 2023 01:23:42 -0800 (PST) Received: by mail-ua1-x92c.google.com with SMTP id d12so5936489uak.10 for ; Mon, 06 Mar 2023 01:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678094621; 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=5WmGxT0R5eR6v2aBCU3TSlvNxSxXuWeZonOf78HDRp4=; b=8D9OdtC0F3+qBtaRxlHN5TzQD7LjvXLkrOb8yKPcyBoovFP8tpDM+IVRgfF+6qHvtM k+eFUsPiNabWwFNVL9TSHbwFue5eoLFhJLLScOCUqanj8PPN4i93JewoBBGBST7N550t u4fItJsgo/GFJadt7wzYP5sEfR9z0i8i6h1bddExu6Z6vQJZFbnmQMvFujcsnYTg8VJ4 tRtDFRWGZQVCnXS2hna4JeeWob2M/wv47h+IF8K8c0IzXP0P25FKJL+UCQWDejjhMMZ+ E+BcIHAKmRsKqjx8N1TygfqKiOazvn8sKSK6Wi14/6rBKGm14+I87FbBZURmITdnY6lh athQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678094621; 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=5WmGxT0R5eR6v2aBCU3TSlvNxSxXuWeZonOf78HDRp4=; b=xr6dXzqnk+XnTPevaCXWDR7ZEKkWPeRxY5CDQVxLSyyoJQRmFjdAF1Ep3WDLgUkZgK FTywa0WHrE+63zy82kRezIQXoBqx4z/8tZJQ2nsIKk7e2rGDF1CoT2IOAjIvWnfbsC1c bDWahxSxd2mCZ1Oxj4ByCjt/QqkOb0v/+3O5of/A/AGfDBQHv81kyx8TX3pPXtOqWhmZ k9U4Xshjs+4rbl/pOrnBqsew0+xm2SEvIkIBZpI/JHX3CfH1+kAr3aIrdLWkcWD4qbJ4 9BH7cEOh0cqxK5TO8wNejhK5FnF8NQh9zHlunvo92vKNPxd3O3FOg4oCHvtkwg7CNplc 294A== X-Gm-Message-State: AO0yUKXO/An1yZEqN/q5iwAKYjDh59C3qN1KOju2B4buTTbIIqFVxy/1 Z1G+IpNJ+EFdyzLOyDVxxzOZyABFC6qVzy7Pud6yeN1w0ZNXN36u X-Google-Smtp-Source: AK7set8oYDvhH0jruOqfFFa3967LzAHy0bKz/fypuAmQi3CfC0FCoHeoohwCVjB1fMyL2eyMANPOK7bSZOz33o8mPgk= X-Received: by 2002:a1f:914a:0:b0:401:4007:10c4 with SMTP id t71-20020a1f914a000000b00401400710c4mr6472309vkd.1.1678094621540; Mon, 06 Mar 2023 01:23:41 -0800 (PST) MIME-Version: 1.0 References: <20230228081724.94786-1-william.gray@linaro.org> In-Reply-To: <20230228081724.94786-1-william.gray@linaro.org> From: Bartosz Golaszewski Date: Mon, 6 Mar 2023 10:23:30 +0100 Message-ID: Subject: Re: [RESEND] gpio: ws16c48: Fix off-by-one error in WS16C48 resource region extent To: William Breathitt Gray Cc: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, techsupport@winsystems.com, stable@vger.kernel.org, Paul Demetrotion Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 2, 2023 at 11:30=E2=80=AFPM William Breathitt Gray wrote: > > The WinSystems WS16C48 I/O address region spans offsets 0x0 through 0xA, > which is a total of 11 bytes. Fix the WS16C48_EXTENT define to the > correct value of 11 so that access to necessary device registers is > properly requested in the ws16c48_probe() callback by the > devm_request_region() function call. > > Fixes: 2c05a0f29f41 ("gpio: ws16c48: Implement and utilize register struc= tures") > Cc: stable@vger.kernel.org > Cc: Paul Demetrotion > Signed-off-by: William Breathitt Gray > --- Why did you need to resend this? Anything changed? Bart