Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1184051iog; Thu, 30 Jun 2022 19:35:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKHaMRRJae1Th0lAMshJRlidyDBFpY6EF7vKIp/vKOzBjMSH93c0uqDVwiTfZW9WBhyYC4 X-Received: by 2002:a05:6402:3707:b0:437:61f9:57a9 with SMTP id ek7-20020a056402370700b0043761f957a9mr15286385edb.1.1656642923033; Thu, 30 Jun 2022 19:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656642923; cv=none; d=google.com; s=arc-20160816; b=f/XO5XylVqu6Y+QP4hU1ohEQHHHHkHhvAVvtiuTHykhSI4J4cWGVBH21a7BE2Jc1VF uQzIKcVB362BK04J8s6HaJ4c9V2P9c1GHPShMQ1l/UKSasg2UEA0Lt1PWckBk6NX/T+O xiSipR0Ebt0NV9ASuWi6rn7B0Jb7ghddIAQvFYNvJFgbv5SOJoQJ3peAbbREkfIwrVQT S1QZ5NpJPQ3qo6OZcGj7GVCtVrrNQEuvZ9ZsOgDJAm9VSlo1iEd8Aq+um8NYa9ugOYTr ciEBjToL/5r2qwVZwIlLTKEME6I8wsEqhzVhVAoWPUQ7cI69in1FWFKETYNzY45YQUXK DvRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PgSC/zXgeYwB16OHWIUUkEsMtqD5sdchassQ/vked7s=; b=IWqegtY17d1/CfXacl4FB+81tyhQbtEjcRIznEdNZuOoGQ6CpFaHPTGO9lfFSJ9Ohr MJIwfLCs1Cais3fWap1eKJcl108egDux8mxQ8oI42o7po9kr3T0a1HKWyYpEc2xRgC6I yTTQhZYJlc6oak0fAQaITWNItPC/mHouAZo+VrzQVTsSn25bbzSoXiHGRxsq2jAGX82r x1rkTNY4FrDoFHStnJKoFS9h+K7RZudAlfC0AsiG54Rrcc14c2slJGC0AqB1g4nYNnzn 48w77Ky/IRy5ozDr53ZbYsdXqgi8YY8waxOnC4HEYZUx4T0GiwVvRVviUv4up/mtE1J8 3oWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=f3vBUG4n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056402424c00b004357558a248si31046163edb.153.2022.06.30.19.34.58; Thu, 30 Jun 2022 19:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=f3vBUG4n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233321AbiGACdB (ORCPT + 99 others); Thu, 30 Jun 2022 22:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232870AbiGACdA (ORCPT ); Thu, 30 Jun 2022 22:33:00 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0480599FE for ; Thu, 30 Jun 2022 19:32:59 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id a7so595738ilj.2 for ; Thu, 30 Jun 2022 19:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PgSC/zXgeYwB16OHWIUUkEsMtqD5sdchassQ/vked7s=; b=f3vBUG4n4h1bDzqHUkFPeKLYEY9gdaJ1R2X3GTVyeaAiOLK4JKJxCwZ0zyEkAOodye z7vA8E/9NZ5aMTRwKWJnyP8U0F5LuWOmISazYfAaFNjbbE+hnq6Obmziu4F//ViPtJnG naxgV2FGqw4fsagiomQbG0nzSAcZP5kCjpkq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PgSC/zXgeYwB16OHWIUUkEsMtqD5sdchassQ/vked7s=; b=yf619zchweNtu3ShG01QdVbqokYB5mMhwqcdWG29yxlvElQQBG0xviWmlYD03tTM1K kp+VAeQXK2X3xwhjRubfxb4vWuLUxT32HX/HPgg8efgVNgFiEzXtvqNdKUeW6jrm7dgl bVbTFFpTcRtikYZDEVuq71zE1KD/QJ67eylagyBM0bju2BnBJsbgPEIX6Hye45D9Ic41 pgyM84M6G2ESjpsASEJ9Hys1yRXpX0+ZvUI5wcq/6DpMECqt9Y79gpQMuajPjh9J72ZS zsRgpLit847G9QAZQzyc6p7ynIimmSVUrJ32cC7kEcrUIuoa1SRSODfbqgnmnQpPGRbt nLCg== X-Gm-Message-State: AJIora8vVgLohuPr0rA1sVvBygpy1gmVi+xtlp7mU4RoVlz7o+zpEboC Va5zc9scKdJjQAmIScTdbzqcppdRBv1uAQ== X-Received: by 2002:a92:b10e:0:b0:2d8:d8a7:8b29 with SMTP id t14-20020a92b10e000000b002d8d8a78b29mr7132883ilh.233.1656642779374; Thu, 30 Jun 2022 19:32:59 -0700 (PDT) Received: from shuah-tx13.internal ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id a22-20020a027356000000b00331cfbce17csm9367869jae.100.2022.06.30.19.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 19:32:58 -0700 (PDT) From: Shuah Khan To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: Shuah Khan , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] rtsx_usb fixes Date: Thu, 30 Jun 2022 20:32:54 -0600 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This two patch series consists of: -- fix to "rejecting DMA map of vmalloc memory" dma mapping error due to passing dma mapped buffer to usb_bulk_msg(). This results in an attempt to map it again and fail. -- a second fix to use separate command and response buffers to avoid potential conflicts. Shuah Khan (2): misc: rtsx_usb: fix use of dma mapped buffer for usb bulk transfer misc: rtsx_usb: use separate command and response buffers drivers/misc/cardreader/rtsx_usb.c | 25 +++++++++++++++++-------- include/linux/rtsx_usb.h | 2 -- 2 files changed, 17 insertions(+), 10 deletions(-) -- 2.34.1