Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4141166imm; Mon, 20 Aug 2018 10:30:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzMFo0P9Ga1ILZfWujqfEgOXRieS19Pyi6Pgcsabz4h14h9Yuw5s4inAD7tPqyEpb0rvm0o X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr46571012plf.286.1534786200005; Mon, 20 Aug 2018 10:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534786199; cv=none; d=google.com; s=arc-20160816; b=Rt36ODzY5VlneqNxRWo8j/b2P6o627n97cKafgG7ocKCskT5kQYw2yfpj85M9ZjFCR 0XZv5kOVPMwDijUWT4ttu/a893ZnXMMEMEx8OBZzxlqWt8wGOCMjqbd9ONKTCITlnQoa nC6jvGi/DCJ3XV7kaJTYhh8Xk3SskdyDmpUXgeSNfE/Qd1I3eE4iEUcUMoqnBMBZre5m 9O/R8uNAE/RcLft+z21Q95mN20PbkT4W2jW4FiOxDL+Vy+iOJuiWJ5KC705Op2SC3gac HHYbpUMaVQqIMatFdKwuRXw+kezAsoIV6rv87ryYQsSg6xWh9aDCTxbDqdjgI1c8RsTp Xk8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=p+Pq1eK6qYfJYsT7pxlh3+TRCY1pCWSiumxu8jmrnsc=; b=Fg8MWMlYaS6fghRIEXxU3nysI4JEcdEe4HZx0Kt2X4pvlRDKsMy8Hk706kKsXZZ3MD wy0IjAAO5MSlftL4HrZva1Bo/qQnfIAU5nQ5CvYkqOzPDtc49JaFSZFzURVfizPnsa6u CVLAMeV7Z7QICH6pana0+WSguVt19oTAe716sAbvvc+F2z36cK1kLLtmVxeEFLgLpqoC ORqDNdvOd+dHeZRS3oY99Qjb6uTS82Jbj0OMV2rmWh5sztBMtTGWUL4APTs874Hi6TUT 24BIL/Beu1PddaKxTe1kuecuH/4KumA8UOjP390JUzYVtCfs8gOW//5JZmiWx8OPNQ0+ UD0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t30-v6si6396893pgm.66.2018.08.20.10.29.44; Mon, 20 Aug 2018 10:29:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbeHTU3r (ORCPT + 99 others); Mon, 20 Aug 2018 16:29:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52070 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbeHTU3r (ORCPT ); Mon, 20 Aug 2018 16:29:47 -0400 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1FB5B8A5; Mon, 20 Aug 2018 17:13:18 +0000 (UTC) Date: Mon, 20 Aug 2018 19:13:14 +0200 From: Greg KH To: Chuanhua Han Cc: broonie@kernel.org, boris.brezillon@bootlin.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, jiafei.pan@nxp.com, zhiqiang.hou@nxp.com Subject: Re: [PATCH] mtd: m25p80: consider max message size when use the spi_mem_xx() API Message-ID: <20180820171314.GB18339@kroah.com> References: <1534758206-24555-1-git-send-email-chuanhua.han@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1534758206-24555-1-git-send-email-chuanhua.han@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20, 2018 at 05:43:26PM +0800, Chuanhua Han wrote: > Signed-off-by: Chuanhua Han > --- > Changes in v2: > - Place the adjusted transfer bytes code in spi_mem_adjust_op_size() > and check spi_max_message_size(mem->spi) value before subtracting > opcode, addr and dummy bytes. > *fixes: > spi: Extend the core to ease integration of SPI memory controllers > --- > drivers/spi/spi-mem.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.