Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp981212pxp; Wed, 16 Mar 2022 23:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEWrqdScWSZmP7BlUu26YY+lLvKLLJJVxDnqi/ktQFaEMsMWRib171KSepCpr805y/c68m X-Received: by 2002:a17:902:7c94:b0:14d:77d2:a72e with SMTP id y20-20020a1709027c9400b0014d77d2a72emr3051466pll.153.1647498142114; Wed, 16 Mar 2022 23:22:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647498142; cv=pass; d=google.com; s=arc-20160816; b=J2FlV8TUEikAZFQx565O8ErSKuQ8bLNKZN/IMlatstHU2uGgosyWnkwAhG1yGfnQ3a O36RkMtg0oclqLsGuH2AWzeQfXcmrvSD5SFsvKHgBsN/IiLnpsR9NQ+0IPDP+jYD06X8 50Tot0SlMSsdkkL3FGRgn888aQ4slz4x6YSm0hC3uMtwtMNUl2A5Azxp6OD55POdzH1w 8DA7IKQoTVoHTbgWrIsYloEOrl8BNi4PtpuilJLbb5I495oOH6P3RvmVVk9rQJXpJ+9G EzB7CWON5yCLx7/4gNwOM9aGE9vy6EUlXPIF+G/O7PJxmlsVgV5PhZ22bLc4fukOO6CO lriQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ifnWG4ZEffCheMnglHhqzkawCorFCAJdUUv63KdXUzM=; b=VEAPaCci95unjVSl0hz4hcriK4jKRaIUqZ7U9sYDi1+wVItrIeMWL+647K74qaLp8P BQ4IUdEvvqfSxUXEcHInPnZWA1E/T8ULPxuhAhBVX873SIAZPRbA25XFdgcnSLAa1w4G 9ezFzQaOa4wZl4LSmODaT7n1jCXcLxiSdAHHMiJVbdYXfTwaV3oMkBL6JQPR/afpBeGf 45qxxh7sQBw1XfVGg4Zr7RpglFUP7msQ8blZjlbxZQidy40drNUXo4adI2lT7sXefdIu POxjySE6zL6A1l8SGotZNmbTr5GeMQiMhne1OmtxivAK7eGuVCno/a/dlU68DSjhekAV VjLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bp.renesas.com header.s=selector1 header.b=GKmhNYex; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dkim=pass dkdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f14-20020a63754e000000b00381facb2ec6si1290365pgn.728.2022.03.16.23.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bp.renesas.com header.s=selector1 header.b=GKmhNYex; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dkim=pass dkdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6901E1BBF4A; Wed, 16 Mar 2022 22:07:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348144AbiCPRz7 (ORCPT + 99 others); Wed, 16 Mar 2022 13:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236436AbiCPRz5 (ORCPT ); Wed, 16 Mar 2022 13:55:57 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2117.outbound.protection.outlook.com [40.107.113.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C4D6D956; Wed, 16 Mar 2022 10:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QdhUZ9QqzEElysz/rlBS+Pvj2b9XN/WznJL3qPM6TKwGqHdH+IjoOo2bKKxrhPMJNueZANQ51JScrUwOxt0pEXxqsq/P23MZJNC2yfKH0ZYgnH7PZfvUCleIFg/ud3gbJjbGaqrv9iYb2jeVRxA8vwov97eQEY7w9WFaYzBc/nOWTR+WL2mzHAviy++ZCG2oQ1ONJ5rJJDrIrScB+H015tueU6ajTbQmfuVtta3evp+v1INjcWNe1XvL5lFizapsYQuNV4DM1MSeNWJPLbYVBUt0ZUfVE+HSYRQhMb9hn9qsItafB+WOR/BiAXVpP0foroZLnVzTEwXdrCFIXm2V3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ifnWG4ZEffCheMnglHhqzkawCorFCAJdUUv63KdXUzM=; b=ZUymj7F0wCvdJ8rfSJPh13OX3ozeyviC06+ZZ4OUQeXRiVY8LooVaepsFZ49WDOjloKBD5sAJP5lbrP/YsBh+5rh0WU7/h+hf5P8ppjpYENiFXdpuaz8+CdRTBYpHghyuN2A1AEMztT+wiK9QAJEyBCzB8EIeslQmdJGicQ7MMwDEP3uYwgH1WbFLWRm6DsodXMg4mKNv5+NnIEYM5VQOrQLgU3RKWQxE8cD7WVt+NqTcqhtLy+IfYdTAjcuzAI8NcxNfEwPcatsOfCvzTwTdfS0xB1K/LLoZ1cOCbzzzrnZp14lNfDCt/GrjRdzUVF6nbQOdEoBaHJZrDOy1QTedw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bp.renesas.com; dmarc=pass action=none header.from=bp.renesas.com; dkim=pass header.d=bp.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bp.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ifnWG4ZEffCheMnglHhqzkawCorFCAJdUUv63KdXUzM=; b=GKmhNYexE4hOVEpAHyuPliuqq6autoW6hQJ3hlAdyThrh6m+dzzrhEvg1LnEbqJUowIu49WVN02Mq9v9aYiCZebYHMafmqI9V9XSyKhq4Kf+8gJsUSsfSX9DJ/HtlcBN1HPWVPAlvweZY/KGHGHhb/gHnI4EtpN552FVB1uq+gw= Received: from OS0PR01MB5922.jpnprd01.prod.outlook.com (2603:1096:604:bb::5) by TYWPR01MB10144.jpnprd01.prod.outlook.com (2603:1096:400:1e4::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.14; Wed, 16 Mar 2022 17:54:39 +0000 Received: from OS0PR01MB5922.jpnprd01.prod.outlook.com ([fe80::cc77:910b:66c1:524b]) by OS0PR01MB5922.jpnprd01.prod.outlook.com ([fe80::cc77:910b:66c1:524b%5]) with mapi id 15.20.5081.014; Wed, 16 Mar 2022 17:54:39 +0000 From: Biju Das To: Mark Brown , Geert Uytterhoeven CC: Linus Torvalds , linux-spi , Linux Kernel Mailing List Subject: RE: [GIT PULL] SPI fixes for v5.17-rc7 Thread-Topic: [GIT PULL] SPI fixes for v5.17-rc7 Thread-Index: AQHYOJ5hk/ihoi/AnE2OZXC63Y67wKzCNAMAgAAYRKA= Date: Wed, 16 Mar 2022 17:54:39 +0000 Message-ID: References: <20220310121327.63C6FC340E8@smtp.kernel.org> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bp.renesas.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 23cb76a4-1669-4b38-c9ac-08da07760adc x-ms-traffictypediagnostic: TYWPR01MB10144:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 39Jphg4auvUcZFbNCGek8N6cr7O+RafqFypBWoKPuVmPKu4Oke0qMF4/xmNoeTEpwrVZsbhmDLoZ8M2O8ZzsJ5nxYJT3JEkJ+KDLz2JpCSY1aDgsqKNRVBwDZYIBSb9XvhbI7yY5ESWndy1KhD1OMwgvkw/5yfw7KcMNyp6LwSQUn5JtQmYgJWNn7JiF2NTiJvY14NyRbIHbVdFZjDGog4oqE8KqeuBYO3kXmP6GP/oO3ZmSI8I2FLvcXZY819CGSQVpuzDeKnc0GtT2Y77ELiSrhFlFdJWNpdUHuHhkmTenHk6FoXLj2GktQ9BFtEV7aeVGmPOOlwHOPe4HFAcC3iMZMsPG/gZgCsEcb4tZ3wXw1VA6KBkxAXPtKgqTHEcngA7GDgccAz1HvzgPtLk3AEg+7GKOuYrt6GGU2Rtb6eL/noLf2StkMEwxq9V+wli41On+Myc4fkuHEgSgV5r24fhNKHbcEbszzw72E9s1MUi40PZARJTjy6brP3vz7mcSXqqSvqroocIAkyq6HlW2Bgv8VOmZQxdX8b6j6QvKb9atie+MenX8Ika1gUSfqrIwdRJrWTYVcp/gnc4k2oOh3Fy8qSJbPy6OCM2YnXtWbJesHWnvPdwQc1vj10Syr5RrpcvIVSpdAFZlJzrZjRF8QYJk5Qf2Puul/S/fFMAKBvCLzwJ24MPXx/Hm+XwEB1yjIaz5R4aDFU/BWC1RRRpYIrHd1h0ZU/2tFvuMyC3enDpmnUNEcsLUWpkGk9AQ9H4kdBXX+j49jXWWjxMgrxi6HG/yqUr7UYMcw5VLroh+AVs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS0PR01MB5922.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(86362001)(52536014)(6506007)(7696005)(2906002)(9686003)(508600001)(71200400001)(5660300002)(966005)(55016003)(110136005)(33656002)(8676002)(64756008)(26005)(186003)(66476007)(66446008)(66946007)(66556008)(8936002)(122000001)(38070700005)(54906003)(4744005)(316002)(4326008)(76116006)(38100700002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Y+dDumPiL0G6wLtS0AYG5wJW0I8bYPOPVXn2FvYDh+7yB8urDqA03jIzuBAi?= =?us-ascii?Q?WSBmj7M4pW0mujHeeEHYC7YjRUhag9enTAm9gklsC0DLDx3dAurisuUHeMus?= =?us-ascii?Q?ZaS1TvN82E7226NsS+fCs+aKH+Du5O2DJVbg2ETv9/dmftaRWW6CfGTcNKff?= =?us-ascii?Q?ocSF3Tad76bimjKhasgnndtMalAxJZ6OyQuLmHXyE4lQ+V1bdZtcXItBQ3Et?= =?us-ascii?Q?Gf7p7Yxi9tgQfar7pIIzUI5SKU3u86OCNOxZAqM858mWMAWRAQz+nI7yrJmy?= =?us-ascii?Q?CTZfkY5Md2n1V2e7/ORklYMBgRDIHvPW7prILGuYQPaZUG8F8CCnTqaJ1nnx?= =?us-ascii?Q?QFRiI0KPSHw1x1q1pbyHAIj2F8Q3JUowC2CYbW0e1z9AcyQApmJQ5k0NCevQ?= =?us-ascii?Q?EcPj+Gj2d3LjX0Cgf+oo3aWH+vu46JBwd6eThAuciEwLsJXadIjabY+09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MT+Hs/9XbA5++A4EsR9VhkkI6vpje67GuiY?= =?us-ascii?Q?vAaZDjpesFDCN0I+hR4wFK/7rvS652mJ6XELbLAaW7ynmyenCfLLRdhcIJGM?= =?us-ascii?Q?9jkoxvt1Kn8HGPWpYUAJvxYsLYIg3VLJ1kF0AXGOneOXqrSv9qm49Q=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: bp.renesas.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OS0PR01MB5922.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23cb76a4-1669-4b38-c9ac-08da07760adc X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2022 17:54:39.5354 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ODZm2Sbac1O8weBTiLBUSRxB3m9+inXSZSsWWjyMN5tHsBMgTlhhnju6tUFl8/jC0za612yYTL8wKTx1FxCTvR4RX5QkHjbl79i+BP6H0ds= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10144 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, > Subject: Re: [GIT PULL] SPI fixes for v5.17-rc7 >=20 > On Tue, Mar 15, 2022 at 07:56:13PM +0100, Geert Uytterhoeven wrote: >=20 > > You're absolutely right. So the code should be changed to: > > > > if (vmalloced_buf || kmap_buf) { > > - desc_len =3D min_t(unsigned int, max_seg_size, > PAGE_SIZE); > > + desc_len =3D min_t(unsigned long, max_seg_size, > PAGE_SIZE); > > sgs =3D DIV_ROUND_UP(len + offset_in_page(buf), desc_le= n); > > } else if (virt_addr_valid(buf)) { > > - desc_len =3D min_t(unsigned int, max_seg_size, ctlr- > >max_dma_len); > > + desc_len =3D min_t(size_t, max_seg_size, ctlr- > >max_dma_len); > > sgs =3D DIV_ROUND_UP(len, desc_len); > > } else { > > return -EINVAL; > > } >=20 > Can you send a patch please? I have send the patch[1] [1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/2022031617= 5317.465-1-biju.das.jz@bp.renesas.com/ Cheers, Biju