From mboxrd@z Thu Jan 1 00:00:00 1970 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 4CEE0CCA479 for ; Thu, 21 Jul 2022 09:43:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232582AbiGUJnM (ORCPT ); Thu, 21 Jul 2022 05:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232529AbiGUJnL (ORCPT ); Thu, 21 Jul 2022 05:43:11 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BB6580F6C for ; Thu, 21 Jul 2022 02:43:10 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id EC82122175; Thu, 21 Jul 2022 11:43:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1658396586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mNJ/p8jstTxRfpudoG/DkUzSGNs3GG/SV5IaUBqPKco=; b=oChbOp8IDGLYp+le+G8yPLjmys+doZglgTbQSSXwBYM3+slfcXilJbDVwSB6gSQ4jg2qbF vM1l9Bp3Z5oTq4AaKmZUxvNbbHbPpZQ+MTyGkLqP781GQ8xayg+ijNBgchJsfPYZen9Amq sMH9sFmjL8evbIGuem1J+tVt+GAykKM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Jul 2022 11:43:04 +0200 From: Michael Walle To: Tudor.Ambarus@microchip.com Cc: biju.das.jz@bp.renesas.com, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Claudiu.Beznea@microchip.com, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, geert+renesas@glider.be, Chris.Paterson2@renesas.com, biju.das@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2 2/2] mtd: spi-nor: Add Renesas AT25QL128A serial nor flash In-Reply-To: <785e50c4-3c8c-a1a6-de60-4587aef820a8@microchip.com> References: <20220715105716.2415068-1-biju.das.jz@bp.renesas.com> <20220715105716.2415068-3-biju.das.jz@bp.renesas.com> <7aa7de93-23f0-c94a-bfc3-e79321cdc1f9@microchip.com> <785e50c4-3c8c-a1a6-de60-4587aef820a8@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <2335e23aff8406e959d1d14cecb2d6a1@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Am 2022-07-21 11:39, schrieb Tudor.Ambarus@microchip.com: >> cat >> /sys/devices/platform/soc/10060000.spi/rpc-if-spi/spi_master/spi1/spi1.0/spi-nor/jedec_id >> 1f42181f4218 >> >> This result is not matching 1f4218->1f42181f4218 > > here it looks like the ID is sent twice. That is expected. We don't know how long the id is so SPI_NOR_MAX_ID_LEN bytes are read for now. Some flashes will send additional information, some don't and just repeat the pattern. It's up to the userspace to interpret that. -michael From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D476DC43334 for ; Thu, 21 Jul 2022 09:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RbSibhghkKruCxLNj5Atgm6y3UUtxT6/V35u596Ex9E=; b=xIUtpCD1DcU7rlB+lPusIzol/1 lQdy25ZGWMAe3KRvZh95LSGw7IW93sr2pwZA6HfpGybAZQniiO21oNre/onq63iCDTN58K4XjawxN V6zJmgrb7taTNuAKeecaloZV2nXzjFeZRbYuxzhpM0QL/LQGa1aGwrVtauj++DxwFIXJC6vT0S21H NhfOZ2JljNZovZIsEihyAbOIZrzjNuuKh3FlR3CY3ruwckdzLcn1D6sxeVpmskbJFxdyT3ggoTjXe xQ7F9VxCwNmGMaLrCYuBBLauGbRbUwn14IOFt2rSPFHch48RU6zmuibTaLR7x0QzONyhlf+ClQGsP 3ZG6ozVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oESih-003Sdg-Ql; Thu, 21 Jul 2022 09:43:48 +0000 Received: from ssl.serverraum.org ([2a01:4f8:151:8464::1:2]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oESi8-003SN7-96; Thu, 21 Jul 2022 09:43:13 +0000 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id EC82122175; Thu, 21 Jul 2022 11:43:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1658396586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mNJ/p8jstTxRfpudoG/DkUzSGNs3GG/SV5IaUBqPKco=; b=oChbOp8IDGLYp+le+G8yPLjmys+doZglgTbQSSXwBYM3+slfcXilJbDVwSB6gSQ4jg2qbF vM1l9Bp3Z5oTq4AaKmZUxvNbbHbPpZQ+MTyGkLqP781GQ8xayg+ijNBgchJsfPYZen9Amq sMH9sFmjL8evbIGuem1J+tVt+GAykKM= MIME-Version: 1.0 Date: Thu, 21 Jul 2022 11:43:04 +0200 From: Michael Walle To: Tudor.Ambarus@microchip.com Cc: biju.das.jz@bp.renesas.com, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Claudiu.Beznea@microchip.com, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, geert+renesas@glider.be, Chris.Paterson2@renesas.com, biju.das@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2 2/2] mtd: spi-nor: Add Renesas AT25QL128A serial nor flash In-Reply-To: <785e50c4-3c8c-a1a6-de60-4587aef820a8@microchip.com> References: <20220715105716.2415068-1-biju.das.jz@bp.renesas.com> <20220715105716.2415068-3-biju.das.jz@bp.renesas.com> <7aa7de93-23f0-c94a-bfc3-e79321cdc1f9@microchip.com> <785e50c4-3c8c-a1a6-de60-4587aef820a8@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <2335e23aff8406e959d1d14cecb2d6a1@walle.cc> X-Sender: michael@walle.cc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_024312_519174_411ECA48 X-CRM114-Status: UNSURE ( 6.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Am 2022-07-21 11:39, schrieb Tudor.Ambarus@microchip.com: >> cat >> /sys/devices/platform/soc/10060000.spi/rpc-if-spi/spi_master/spi1/spi1.0/spi-nor/jedec_id >> 1f42181f4218 >> >> This result is not matching 1f4218->1f42181f4218 > > here it looks like the ID is sent twice. That is expected. We don't know how long the id is so SPI_NOR_MAX_ID_LEN bytes are read for now. Some flashes will send additional information, some don't and just repeat the pattern. It's up to the userspace to interpret that. -michael ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14676C433EF for ; Thu, 21 Jul 2022 09:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YX4fjNhiHWOhhl468CxBFSx7SMUeVCAKRDqoA2JdusE=; b=aPToqIlODfgQkNh6WpHrRbRbJe ki0gaWEnLtQykxPpQw/s5VoHc2y8dv6AEuQVKwEQMPrIbm+/89dN8XSCp8/oKaiUN3kdgVk/KKS8T exmFzfBRdbT0jY37xRBobNwr88VUps/lxq0+hegbMvMJsm+QFXyKR4/XoUJQU/5rInBqf3rAYh49F 255CDxP57I7/5FNMaG9GnJS3mohUTc3l1nFy/8vuG4Bb6m5iOk/xroP03eXBsnJA8ou++7/jxze54 BGWfKiqt96gwijW6tbDvHl1ROnWFdj0khUFTFoMyoYBZM2D7hwA1BtfesoFhkJgtoPE+SVQ5qi0QB D8WE3T9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oESiT-003SXB-EF; Thu, 21 Jul 2022 09:43:33 +0000 Received: from ssl.serverraum.org ([2a01:4f8:151:8464::1:2]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oESi8-003SN7-96; Thu, 21 Jul 2022 09:43:13 +0000 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id EC82122175; Thu, 21 Jul 2022 11:43:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1658396586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mNJ/p8jstTxRfpudoG/DkUzSGNs3GG/SV5IaUBqPKco=; b=oChbOp8IDGLYp+le+G8yPLjmys+doZglgTbQSSXwBYM3+slfcXilJbDVwSB6gSQ4jg2qbF vM1l9Bp3Z5oTq4AaKmZUxvNbbHbPpZQ+MTyGkLqP781GQ8xayg+ijNBgchJsfPYZen9Amq sMH9sFmjL8evbIGuem1J+tVt+GAykKM= MIME-Version: 1.0 Date: Thu, 21 Jul 2022 11:43:04 +0200 From: Michael Walle To: Tudor.Ambarus@microchip.com Subject: Re: [PATCH v2 2/2] mtd: spi-nor: Add Renesas AT25QL128A serial nor flash In-Reply-To: <785e50c4-3c8c-a1a6-de60-4587aef820a8@microchip.com> References: <20220715105716.2415068-1-biju.das.jz@bp.renesas.com> <20220715105716.2415068-3-biju.das.jz@bp.renesas.com> <7aa7de93-23f0-c94a-bfc3-e79321cdc1f9@microchip.com> <785e50c4-3c8c-a1a6-de60-4587aef820a8@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <2335e23aff8406e959d1d14cecb2d6a1@walle.cc> X-Sender: michael@walle.cc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_024312_519174_411ECA48 X-CRM114-Status: UNSURE ( 6.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, Chris.Paterson2@renesas.com, vigneshr@ti.com, geert+renesas@glider.be, richard@nod.at, prabhakar.mahadev-lad.rj@bp.renesas.com, Claudiu.Beznea@microchip.com, linux-renesas-soc@vger.kernel.org, linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com, biju.das.jz@bp.renesas.com, biju.das@bp.renesas.com, p.yadav@ti.com, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am 2022-07-21 11:39, schrieb Tudor.Ambarus@microchip.com: >> cat >> /sys/devices/platform/soc/10060000.spi/rpc-if-spi/spi_master/spi1/spi1.0/spi-nor/jedec_id >> 1f42181f4218 >> >> This result is not matching 1f4218->1f42181f4218 > > here it looks like the ID is sent twice. That is expected. We don't know how long the id is so SPI_NOR_MAX_ID_LEN bytes are read for now. Some flashes will send additional information, some don't and just repeat the pattern. It's up to the userspace to interpret that. -michael _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel