From patchwork Sun Mar 21 03:18:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1456226 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Z656vC/l; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F32tF3g9zz9sS8 for ; Sun, 21 Mar 2021 14:19:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B995829C5; Sun, 21 Mar 2021 04:19:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Z656vC/l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 73687829C5; Sun, 21 Mar 2021 04:18:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2A216829BF for ; Sun, 21 Mar 2021 04:18:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-pj1-x1032.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so6786712pjv.1 for ; Sat, 20 Mar 2021 20:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O97Gisp7gX67ohdPu2BRwuUo42JdFY2a9JJLlHYmqm0=; b=Z656vC/lhrKHlRuADOqm9fJ4DIYNbFS+V4kVaI8zTyLRYcPyu0NzL/YujbXbx/boa1 scGhILA1eofhMcVBZAF8ETxR0BKglOMHHMd9Xdbe1Tn9rjL4DavQeOPWjNL+I4T1ufu4 hNLXpJY5cSL52Qyg3D+wGqtVYO5lFCgS33y00= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O97Gisp7gX67ohdPu2BRwuUo42JdFY2a9JJLlHYmqm0=; b=KywwaFrrKWBrwMJED332sjl8oo5GOMICWsXqeMBj/+gPJfUD08fHiZbTHdakK/YD6w y+yH9dc+svHZysoOpDqNqZ1yRqFjdMMAifnGNpSv6T417veSYmBK3Md259NZfdAHNcsq 6rRVJWwhwLVRSNPr2ejGU0CneXB8t1H4pJ3YOgmbsgEcLIBisHCv3sk+j2zKZeupQuFW jCcpswT4rJU/ic2YGyjdTIHimHVaWzqMwXPKuoTxK5xd29fN8u1pcKhh0NrEuwAdWQA0 mXNHf8kqPI6jewhGDnUClRCmYgsxbwVt1EU8L4maRVhQ38DnAbspylbdSqjyvB82NL/+ w/Yw== X-Gm-Message-State: AOAM532wFByKaCYVz9XwmL9cemDwTzF47hYQrYep9g3sszwhkTKdVp48 S4su8xNt7lEn8Wzuw2o0yC3e7oJAO6UFuw== X-Google-Smtp-Source: ABdhPJy6CJZc5vZbOfI7Quymjx3LvMNVa9cJ7th1kG1wgczzqh9Nqihr76zttqbIdWyzaAcrwUFU8g== X-Received: by 2002:a17:90b:809:: with SMTP id bk9mr6214175pjb.83.1616296718553; Sat, 20 Mar 2021 20:18:38 -0700 (PDT) Received: from sjg1.roam.corp.google.com (85.72.69.111.dynamic.snap.net.nz. [111.69.72.85]) by smtp.gmail.com with ESMTPSA id o13sm9357902pgv.40.2021.03.20.20.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Mar 2021 20:18:38 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Jagan Teki , Jagannadha Sutradharudu Teki Subject: [PATCH 2/6] spi: Return -ENOSYS when system call is not available Date: Sun, 21 Mar 2021 16:18:20 +1300 Message-Id: <20210321031824.2170848-3-sjg@chromium.org> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog In-Reply-To: <20210321031824.2170848-1-sjg@chromium.org> References: <20210321031824.2170848-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Update spi_controller_dma_map_mem_op_data() to use -ENOSYS, which is the correct error code for U-Boot. Signed-off-by: Simon Glass --- include/spi-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spi-mem.h b/include/spi-mem.h index 8be3e2bf6b5..e354c388979 100644 --- a/include/spi-mem.h +++ b/include/spi-mem.h @@ -222,7 +222,7 @@ spi_controller_dma_map_mem_op_data(struct spi_controller *ctlr, const struct spi_mem_op *op, struct sg_table *sg) { - return -ENOTSUPP; + return -ENOSYS; } static inline void